出现了这样的错误:
test: version magic '2.6.25 mod_unload ' should be '2.6.25-mux1222-svn62-dirty28 mod_unload '
insmod: cannot insert `./test.ko': Invalid module format (-1): Exec format error
...全文
365335打赏收藏
insmod加载模块的错误
使用insmod命令在嵌入式板子上加载驱动,命令如下: insmod ./test.ko 出现了这样的错误: test: version magic '2.6.25 mod_unload ' should be '2.6.25-mux1222-svn62-dirty28 mod_unload ' insmod: cannot insert `./test.ko': Invalid module format (-1): Exec format error
出现了这样的错误:
test: version magic '2.6.25 mod_unload ' should be '2.6.25-mux1222-svn62-dirty28 mod_unload '
insmod: cannot insert `./test.ko': Invalid module format (-1): Exec format error
"test: version magic '2.6.25-mux1222-svn62-dirty31 mod_unload ' should be '2.6.25-mux1222-svn62-dirty28 mod_unload '
insmod: cannot insert `test.ko': Invalid module format (-1): Exec format error"
这是新编译的时候出现的错误提示:版本数字的差异是 dirty31和dirty28,我自己的程序是2.6.25-mux1222-svn62-dirty31,目标板上的是2.6.25-mux1222-svn62-dirty28,有没有办法不让linux自动加载最后的那一截版本号,或者有没有办法,在insmod的时候,让这个版本检查不起作用。