WARNING: vmlinux(.text+0xc040116f): Section mismatch: reference to .init.text:starween 'is386' and 'check_x87')
WARNING: vmlinux(.text+0xc0600434): Section mismatch: reference to .init.text: (benit' and 'alloc_node_mem_map')
WARNING: vmlinux(.text+0xc0604f65): Section mismatch: reference to .init.text: (bexc' and '_etext')
WARNING: vmlinux(.text+0xc0604f71): Section mismatch: reference to .init.text: (bexc' and '_etext')
WARNING: vmlinux(.text+0xc0604f7d): Section mismatch: reference to .init.text: (bexc' and '_etext')
WARNING: vmlinux(.text+0xc0604f89): Section mismatch: reference to .init.text: (bexc' and '_etext')
WARNING: vmlinux(.text+0xc06004b4): Section mismatch: reference to .init.text:__alode (between 'alloc_node_mem_map' and 'zone_wait_table_init')
WARNING: vmlinux(.text+0xc060055a): Section mismatch: reference to .init.text:__alode (between 'zone_wait_table_init' and 'setup_cpu_cache')
WARNING: vmlinux(.text+0xc06005d5): Section mismatch: reference to .init.text: (becpu_cache' and 'schedule')
WARNING: vmlinux(.text+0xc060060f): Section mismatch: reference to .init.text: (becpu_cache' and 'schedule')
WARNING: vmlinux(.text+0xc04ee4de): Section mismatch: reference to .init.text:__albetween 'vgacon_startup' and 'vgacon_scrolldelta')
WARNING: vmlinux(.text+0xc06056e1): Section mismatch: reference to .init.text: (bexc' and '_etext')
make: Leaving directory `/usr/src/linux-2.6.22.11'
-----------------------------------------------------------------------------------
我编译模块的时候出现这个 这是什么原因呢?
insmod: error inserting 'hello.ko': -1 Invalid module format
加载的时候 出现这个是什么原因呢?
suowenair 于 2010-04-28 09:17:06发表:
呵呵
谢谢 我编译成功模块 比如hello 和globalmem等
只是换个系统就出问题了
。。
恩
一起努力啊!
power1952 于 2010-04-27 23:29:49发表:
首先声明,我也是初学者。前不久才编译成功了hello.ko的模块,现在正在学习scull模块
警告里面很多的不匹配!
最后是模块格式不对!
我觉得很可能是你的模块和你的系统内核不匹配。
你建立了完整的内核树没?如果没有,先建立内核树,然后在新建的内核上编译、装载模块,试试看。
如果这些你都做了,那么我们一起期待高手解答吧!
关于建立内核树:http://www.linuxdiyf.com/bbs/thread-178811-1-1.html