用gcc-4.1.0编译器好像可以,但在最后出现如下错误:
--start-group lib_generic/libgeneric.a board/pcy2410/libpcy2410.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 /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0 -lgcc \
-Map u-boot.map -o u-boot
arm-linux-ld: ERROR: /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_udivdi3.o) uses hardware FP, whereas u-boot uses software FP
arm-linux-ld: failed to merge target specific data of file /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_udivdi3.o)
arm-linux-ld: ERROR: /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_clz.o) uses hardware FP, whereas u-boot uses software FP
arm-linux-ld: failed to merge target specific data of file /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_clz.o)
make: *** [u-boot] 错误 1
用山哥的编译器,出现如下错误:
[root@localhost u-boot-1.1.6]# make pcy2410_config
Configuring for pcy2410 board...
[root@localhost u-boot-1.1.6]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/tools'
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/tools'
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/examples'
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/examples'
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/examples'
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/post'
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/post'
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/post'
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/post/cpu'
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/post/cpu'
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/usr/local/arm/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O
-o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O
-o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g
-idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O
-o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter /usr/local/arm/u-boot-1.1.6/include -idirafter /usr/local/arm/u-boot-1.1.6/include2 -idirafter /usr/local/arm/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O
-o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/usr/local/arm/u-boot-1.1.6/include/bmp_logo.h
/bin/sh: ./bmp_logo: cannot execute binary file
make[1]: *** [/usr/local/arm/u-boot-1.1.6/include/bmp_logo.h] 错误 126
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.6/tools'
make: *** [tools] 错误 2
[root@localhost u-boot-1.1.6]#
函请各位帮忙解决……
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |