- 论坛徽章:
- 0
|
之前在编译内核的时候出现这样的问题
我在make modules的时候出现以下错误
Building modules, stage 2.
MODPOST 1490 modules
ERROR: "__bad_udelay" [drivers/video/savage/savagefb.ko] undefined!
ERROR: "__bad_udelay" [drivers/scsi/nsp32.ko] undefined!
ERROR: "__bad_udelay" [drivers/scsi/atp870u.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/sungem.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/irda/donauboe.ko] undefined!
ERROR: "media_device_unregister_entity" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_entity_get" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_device_register_entity" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_entity_put" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_entity_init" [drivers/media/video/mt9p031.ko] undefined!
ERROR: "media_entity_cleanup" [drivers/media/video/mt9p031.ko] undefined!
ERROR: "__bad_udelay" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: "__bad_udelay" [drivers/atm/he.ko] undefined!
WARNING: modpost: Found 10 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
刚开始是因为交叉编译工具不是自己安装,而是直接解压的,所以怀疑是交叉编译工具的问题,自己重新装了之后还是不行,
后来在网上查找资料,都没有具体的解决办法,今天上班偷懒,弄了一下,只要把相应的模块在make menuconfig 中关掉就行,
就是不需要编程动态模块,但是这么做很麻烦,你可以直接编辑.config文件,比用make menuconfig 快很多,但是最后还是有
ERROR: "__bad_udelay" [drivers/scsi/atp870u.ko] undefined!
ERROR: "cmpxchg" [drivers/net/cxgb3/cxgb3.ko] undefined!
没找到,没办法,既然找不到我就直接去makefile把这些禁止,我不编译了,大家去相应的目录下的makefile,把编成.o 的哪一行给注释掉,然后再
编译,OK啦!生成的镜像可以使用啦!!!初次发帖,请多包含。。。。 |
|