免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5877 | 回复: 7
打印 上一主题 下一主题

这是我在make 时候出的错。。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-21 12:17 |只看该作者 |倒序浏览
我在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
ema@ema3530:~/Source/linux-2.6.39-rc7$ make menuconfig
scripts/kconfig/mconf Kconfig


Your configuration changes were NOT saved.

ema@ema3530:~/Source/linux-2.6.39-rc7$ make menuconfig
scripts/kconfig/mconf Kconfig


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

ema@ema3530:~/Source/linux-2.6.39-rc7$
不太明白,我是我的make menuconfig哪里需要设置吗?

论坛徽章:
0
2 [报告]
发表于 2011-12-13 11:25 |只看该作者
我现在也遇到这个问题,因为没有资料,所以只能自己摸索,经过查看,这些模块在板子上一般是用不到的,所以你只需要把这些模块关掉就行,你可以 make menuconfig 在图形界面关掉,也可以直接编译文件.config,我刚刚弄完了一部分,还剩这两个错误
WARNING: arch/arm/mach-versatile/built-in.o(.data+0x44): Section mismatch: reference to .init.text: (between 'versatile_timer' and 'timer0_clockevent')
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  Building modules, stage 2.
  MODPOST 1353 modules
ERROR: "__bad_udelay" [drivers/scsi/atp870u.ko] undefined!
ERROR: "cmpxchg" [drivers/net/cxgb3/cxgb3.ko] undefined!
make[1]: *** [__modpost] 错误 1
make: *** [modules] 错误 2
再找找看。。。我下的是2.6.22.6的内核版本。

论坛徽章:
0
3 [报告]
发表于 2011-12-13 11:33 |只看该作者
现在问题是解决了,剩下的两个模块在.config中没有找到,我去相应的makefile里关掉就没事了

论坛徽章:
0
4 [报告]
发表于 2012-03-07 10:44 |只看该作者
我怎么找不到.config文件啊?

论坛徽章:
0
5 [报告]
发表于 2012-03-07 11:43 |只看该作者
回复 4# yb1018



两个可能
1.你没产生出来,先用make menuconfig或找个适合的config吧
2.你不知道.config是隐藏档 ,用ls –a

论坛徽章:
0
6 [报告]
发表于 2012-03-07 13:29 |只看该作者
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/wireless/ipw2200.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/sungem.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/irda/donauboe.ko] undefined!
ERROR: "wrong_size_cmpxchg" [drivers/net/cxgb3/cxgb3.ko] undefined!
ERROR: "wrong_size_cmpxchg" [drivers/gpu/drm/drm.ko] undefined!
ERROR: "__bad_udelay" [drivers/atm/he.ko] undefined!
make[1]: *** [__modpost] 错误 1
make: *** [modules] 错误 2
我出现了这些错误,怎么该.config文件啊,我不知道怎么跟它的配置选项对应起来

论坛徽章:
0
7 [报告]
发表于 2012-03-07 14:09 |只看该作者
回复 5# wayling


    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/wireless/ipw2200.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/sungem.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/irda/donauboe.ko] undefined!
ERROR: "wrong_size_cmpxchg" [drivers/net/cxgb3/cxgb3.ko] undefined!
ERROR: "wrong_size_cmpxchg" [drivers/gpu/drm/drm.ko] undefined!
ERROR: "__bad_udelay" [drivers/atm/he.ko] undefined!
make[1]: *** [__modpost] 错误 1
make: *** [modules] 错误 2
我出现了这些错误,怎么该.config文件啊,我不知道怎么跟它的配置选项对应起来

论坛徽章:
0
8 [报告]
发表于 2012-03-07 14:10 |只看该作者
回复 3# luyuan89


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/wireless/ipw2200.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/sungem.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/irda/donauboe.ko] undefined!
ERROR: "wrong_size_cmpxchg" [drivers/net/cxgb3/cxgb3.ko] undefined!
ERROR: "wrong_size_cmpxchg" [drivers/gpu/drm/drm.ko] undefined!
ERROR: "__bad_udelay" [drivers/atm/he.ko] undefined!
make[1]: *** [__modpost] 错误 1
make: *** [modules] 错误 2
我出现了这些错误,怎么该.config文件啊,我不知道怎么跟它的配置选项对应起来   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP