我是新手,编译内核时遇到不少问题,请教高手

[复制链接]
查看11 | 回复1 | 2004-11-25 09:51:00 | 显示全部楼层 |阅读模式
问题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

问题3:
有时用insmod时,系统报错找不到一些符号

望高手赐教
回复

使用道具 举报

千问 | 2004-11-25 09:51:00 | 显示全部楼层
/*
* 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&quot

;
/*
* 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&quot

;
}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行