问题1:
编译完后我用命令#insmod3c501.o后出现以下错误:
insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
You may find more information in syslog or the output from dmesg
3c501.c我没有改过,
问题2:
我自己编写的一个test.c,编译完后我用#insmod test.o出现以下
错误:
warning:loading test.o will taint the kernel :no license
/*
* hello.1.c . The simplest kernel module.
*/
#include/* Needed by all modules */
#include/* Needed for KERN_ALERT */
int init_module(void)
{
printk("Hello world 1.\n"
;
/*
* A non 0 return means init_module failed; module can't be loaded.
*/
return 0;
}
void cleanup_module(void)
{
printk(KERN_ALERT "Goodbye world 1.\n"