| 
 
| 本人有一款freesclae i.mx6系列(Cortex-A9 MPCORE)的开发板,以SMP模式运行了一个linux系统,现在自己写了一个驱动模块,打算以模块的形式加载进内核,但在使用insmod ./hello.ko时,出现以下错误: disagree about version of symbol module_layout
 can not insert "hello.ko",invalid module format
 网上查资料说是编译模块使用的内核版本与开发板上运行的内核版本不一致,但我用的是同一个版本的内核啊,通过命令查看了版本内核
 # uname – r
 3.0.35 -ts-armv7l
 查看自己编译的模块的信息
 # modinfo ./hello/hello.ko
 filename:       ./hello/hello.ko
 license:        GPL
 depends:
 vermagic:       3.0.35 -ts-armv7l SMP preempt mod_unload modversions ARMv7
 发现自己模块中的vermagic中多了些内容(SMP preempt mod_unload modversions ARMv7)
 但是通过modprob -l同样查看了开发板上内核自带的其他模块的信息,发现 vermagic: 3.0.35 -ts-armv7l SMP preempt mod_unload modversions ARMv7,和我自己的模块信息一致啊,为什么我的模块加载不进去呢,请高手指点啊,等待中。。。。
 | 
 |