主题 : 编译uboot出错了,请高手看看 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 30028
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-10-10
最后登录: 2011-05-31
楼主  发表于: 2010-11-24 11:47

 编译uboot出错了,请高手看看

我的操作步聚是这样的,1,make distclean    2.make smdk2410   3.make CROSS_COMPILE=arm-linux-
编译器是arm-linux-gcc 3.4.1
uboot版本是1.1.6
下面是截取了最后一部分log
我是才开始学编译uboot,不太懂


a - s_record.o
a - serial.o
a - soft_i2c.o
a - soft_spi.o
a - spartan2.o
a - spartan3.o
a - usb.o
a - usb_kbd.o
a - usb_storage.o
a - virtex2.o
a - xilinx.o
a - crc16.o
a - xyzModem.o
a - cmd_mac.o
make[1]:正在离开目录 `/home/zhousm/mini2440/U-boot/u-boot-1.2.0/common'
UNDEF_SYM=`arm-linux-objdump -x lib_generic/libgeneric.a board/smdk2410/libsmdk2410.a cpu/arm920t/libarm920t.a cpu/arm920t/s3c24x0/libs3c24x0.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
        cd /home/zhousm/mini2440/U-boot/u-boot-1.2.0 && arm-linux-ld -Bstatic -T /home/zhousm/mini2440/U-boot/u-boot-1.2.0/board/smdk2410/u-boot.lds -Ttext 0x33F80000  $UNDEF_SYM cpu/arm920t/start.o \
            --start-group lib_generic/libgeneric.a board/smdk2410/libsmdk2410.a cpu/arm920t/libarm920t.a cpu/arm920t/s3c24x0/libs3c24x0.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1 -lgcc \
            -Map u-boot.map -o u-boot
lib_arm/libarm.a(_udivsi3.o)(.text+0x8c):/home/zhousm/mini2440/U-boot/u-boot-1.2.0/lib_arm/_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
lib_arm/libarm.a(_umodsi3.o)(.text+0xa8):/home/zhousm/mini2440/U-boot/u-boot-1.2.0/lib_arm/_umodsi3.S:79: relocation truncated to fit: R_ARM_PLT32 __div0
make: *** [u-boot] 错误 1

也就是一念之差,让我赶了这趟混水
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-11-24 17:00
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 30028
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-10-10
最后登录: 2011-05-31
2楼  发表于: 2010-11-25 08:28
谢谢楼上,我换了个编译器就好了,我用3.3.2编译就没有问题了,你的贴子让我学会了怎么制作crosstool,谢谢
也就是一念之差,让我赶了这趟混水