主题 : insmod出现version magic错误,如何解决? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 5780
精华: 0
发帖: 3
金钱: 20 两
威望: 12 点
综合积分: 6 分
注册时间: 2009-05-08
最后登录: 2011-06-20
楼主  发表于: 2009-07-09 08:46

 insmod出现version magic错误,如何解决?

在开发板上用insmod命令加载模块himodule-driver.ko时出现以下问题:

himodule_driver: version magic '2.6.29-FriendlyARM mod_unload ARMv5 ' should be '2.6.29-FriendlyARM mod_unload ARMv4 '        
insmod: cannot insert 'himodule-driver.ko': invalid module format

使用modinfo命令查看himodule-driver.ko时信息如下:
[root@localhost himodule]# modinfo himodule-driver.ko
filename:       himodule-driver.ko
license:        $LICENSE$
author:         root (root@localhost.localdomain)
description:    My kernel module
srcversion:     87D41FDA2C071ED9B1C6F78
depends:        
vermagic:       2.6.29-FriendlyARM mod_unload ARMv5  

生成himodule-driver.ko时使用的是友善提供的linux-2.6.29压缩包。


请问是压缩包版本的问题吗?如果要解决以下问题应该怎么做?类似的问题挖过老帖,但是解释不是很明白,错误也不尽相同,请高手给一些帮助和指点?
谢谢!