u-boot 编译

arm-linux-gcc 3.4.1

u-boot-2009.03

 

出现错误

lib_arm/libarm.a(_udivsi3.o)(.text+0x8c):/usr/src/source/u-boot-1.1.6/lib_arm/_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
lib_arm/libarm.a(_udivsi3.o)(.text+0xa:/usr/src/source/u-boot-1.1.6/lib_arm/_umodsi3.S:79: relocation truncated to fit: R_ARM_PLT32 __div0
make: *** [u-boot] Error 1

--------------

把那两行注释掉

或者

1、继续用3.4.1,如下修改lib_arm/_umodsi3.S、lib_arm/_udivsi3.S即可编译通过:
bl __div0 (PLT) ===> bl __div0
2、改用2.95.3,不过要留意其目录问题,/usr/local/arm/2.95.3

 

继续编译

 会出现

u-boot/net/net.c:149: undefined reference to `eth_halt'
u-boot/net/net.c:150: undefined reference to `eth_init'
u-boot/net/net.c:252: undefined reference to `eth_rx' /usr/local/arm-elf/u-boot/net/net.c:258: undefined reference to `eth_halt'
u-boot/net/net.c:294: undefined reference to `eth_halt'

 

这个是和网络配置有关的,出现这个错误是因为我把include/configs/smdk2410.h里面的

   #define CONFIG_DRIVER_CS8900    1
改成了
   #define CONFIG_DRIVER_CS8900    0

 

把它改回去再编译就OK了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值