linux下解决u-boot编译遇到的下列问题

[root@localhost u-boot-1.1.6-dm9000]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/tools'
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/examples'
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post'
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/tools'
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/tools'
make -C examples all
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/examples'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/examples'
make -C post all
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post'
make -C post/cpu all
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post/cpu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/post/cpu'
make -C lib_generic/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/lib_generic'
make[1]: `libgeneric.a' is up to date.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/lib_generic'
make -C board/TQ2440/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/board/TQ2440'
/usr/local/arm/2.95.3/bin/arm-linux-gcc  -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -c -o lowlevel_init.o lowlevel_init.S
/usr/local/arm/2.95.3/bin/arm-linux-ar crv libTQ2440.a TQ2440.o flash.o boot_init.o lowlevel_init.o
r - TQ2440.o
r - flash.o
r - boot_init.o
r - lowlevel_init.o
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/board/TQ2440'
make -C cpu/arm920t/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/cpu/arm920t'
/usr/local/arm/2.95.3/bin/arm-linux-gcc  -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -c -o start.o start.S
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/cpu/arm920t'
make -C cpu/arm920t/s3c24x0/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/cpu/arm920t/s3c24x0'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/cpu/arm920t/s3c24x0'
make -C lib_arm/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/lib_arm'
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o board.o board.c
/usr/local/arm/2.95.3/bin/arm-linux-ar crv libarm.a _ashldi3.o _ashrdi3.o _divsi3.o _modsi3.o _udivsi3.o _umodsi3.o armlinux.o board.o boot_zImage.o cache.o div0.o
r - _ashldi3.o
r - _ashrdi3.o
r - _divsi3.o
r - _modsi3.o
r - _udivsi3.o
r - _umodsi3.o
r - armlinux.o
r - board.o
r - boot_zImage.o
r - cache.o
r - div0.o
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/lib_arm'
make -C fs/cramfs/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/cramfs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/cramfs'
make -C fs/fat/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/fat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/fat'
make -C fs/fdos/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/fdos'
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o fat.o fat.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o vfat.o vfat.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o dev.o dev.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o fdos.o fdos.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o fs.o fs.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/opt/EmbedSkdy/u-boot-1.1.6-dm9000/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o subdir.o subdir.c
/usr/local/arm/2.95.3/bin/arm-linux-ar crv libfdos.a fat.o vfat.o dev.o fdos.o fs.o subdir.o
a - fat.o
a - vfat.o
a - dev.o
a - fdos.o
a - fs.o
a - subdir.o
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/fdos'
make -C fs/jffs2/
make[1]: Entering directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/jffs2'
arm-linux-gcc: jffs2_1pass.o: No such file or directory
arm-linux-gcc: unrecognized option `-MQ'
arm-linux-gcc: compr_rtime.o: No such file or directory
arm-linux-gcc: unrecognized option `-MQ'
arm-linux-gcc: compr_rubin.o: No such file or directory
arm-linux-gcc: unrecognized option `-MQ'
arm-linux-gcc: compr_zlib.o: No such file or directory
arm-linux-gcc: unrecognized option `-MQ'
arm-linux-gcc: mini_inflate.o: No such file or directory
arm-linux-gcc: unrecognized option `-MQ'
arm-linux-gcc: compr_lzo.o: No such file or directory
arm-linux-gcc: unrecognized option `-MQ'
arm-linux-gcc: compr_lzari.o: No such file or directory
arm-linux-gcc: unrecognized option `-MQ'
make[1]: *** No rule to make target `.depend', needed by `libjffs2.a'.  Stop.
make[1]: Leaving directory `/opt/EmbedSkdy/u-boot-1.1.6-dm9000/fs/jffs2'
make: *** [fs/jffs2/libjffs2.a] Error 2

我折腾了半下午一直出现类似于上面的问题,后来终于搞清楚是由于交叉编译环境与u-boot源码包不匹配造成的,哈哈,解决方法:用高版本的交叉编译环境或者下载低版本的u-boot.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值