linux下解決u-boot編譯遇到的下列問題

來源:互聯網
上載者:User

[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.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.