主题 : bash: insmo:command not found. 怎么解决??? 复制链接 | 浏览器收藏 | 打印
保护自己的梦想
级别: 新手上路
UID: 7883
精华: 1
发帖: 22
金钱: 250 两
威望: 240 点
综合积分: 64 分
注册时间: 2009-08-01
最后登录: 2009-11-02
楼主  发表于: 2009-08-28 22:27

 bash: insmo:command not found. 怎么解决???

我的内核是Linux2.6的,make clean ;make后,有了gpio_drv.ko,但是

运行# insmod gpio_drv.ko后出现

bash: insmo:command not found.

后看论坛输入:

# /sbin/insmod  -f  gpio_drv.ko

出现提示:insmod: error inserting 'gpio_drv.ko': -1 Invalid module format

我的redhat 9.0在安装的时候是完全安装,应该装的东西很完整吧,不知道是什么原因,望各位指点!!谢谢
有梦想就要去追逐,只管风雨兼程!!
http://hi.baidu.com/kissky2009/blog
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-08-28 23:30
确保你用的内核镜像和模块是从同一份内核源代码根据同一个内核配置用同一个交叉编译器编译出来的。
这个问题已经提过很多次,发贴之前先搜索老贴,否则问题可能会无人问津
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."