免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 877 | 回复: 2
打印 上一主题 下一主题

Help! I used insmod command in RH9,but mismatch,WHY? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-08-27 16:50 |只看该作者 |倒序浏览
I want to run a module program hello.c and
complie it by gcc.
#gcc  -c -o hello.o hello.c
I used insmod command by root in RH9:
#insmod -f hello.o
but the system show:
Warning: kernel-module version mismatch
        hello.o was compiled for kernel version 2.4.20
        while this kernel is version 2.4.20-8
Question:
how to recompile insmod module to version 2.4.20-8?

thank you!!!

the hello.c is :
#define MODULE
#include<linux/module.h>;
int init_module(void)
{
printk("<1>; Hello, World\n";
return 0;
}
void cleanup_module(void)
{
printk("<1>;Goodbye cruel world\n";
}

论坛徽章:
0
2 [报告]
发表于 2004-08-27 19:02 |只看该作者

Help! I used insmod command in RH9,but mismatch,WHY?

tsinghua bbs kernel版精华去里面有
原帖由 "javabuginsun" 发表:
I want to run a module program hello.c and
complie it by gcc.
#gcc  -c -o hello.o hello.c
I used insmod command by root in RH9:
#insmod -f hello.o
but the system show:
Warning: kernel-module ve..........

论坛徽章:
0
3 [报告]
发表于 2004-08-27 19:08 |只看该作者

Help! I used insmod command in RH9,but mismatch,WHY?

我靠,你是中国人还是老外
英文厉害你就牛了阿
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP