主题 : 大神求救,移植make mini2440_config没出现问题,make出了问题,根目录下没出现u-boot.bin 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 126792
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
贡献值: 0 点
综合积分: 20 分
注册时间: 2016-07-21
最后登录: 2016-09-08
楼主  发表于: 2016-07-25 20:07

 大神求救,移植make mini2440_config没出现问题,make出了问题,根目录下没出现u-boot.bin

zyg@ubuntu:~/u-boot-1.1.6$ make mini2440_config
Configuring for mini2440 board...
zyg@ubuntu:~/u-boot-1.1.6$ make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory '/home/zyg/u-boot-1.1.6/tools'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/u-boot-1.1.6/tools'
make[1]: Entering directory '/home/zyg/u-boot-1.1.6/examples'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/u-boot-1.1.6/examples'
make[1]: Entering directory '/home/zyg/u-boot-1.1.6/post'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/u-boot-1.1.6/post'
make[1]: Entering directory '/home/zyg/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/zyg/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory '/home/zyg/u-boot-1.1.6/tools'
gcc -g -Wall -pedantic -idirafter /home/zyg/u-boot-1.1.6/include -idirafter /home/zyg/u-boot-1.1.6/include2 -idirafter /home/zyg/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g  -idirafter /home/zyg/u-boot-1.1.6/include -idirafter /home/zyg/u-boot-1.1.6/include2 -idirafter /home/zyg/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /home/zyg/u-boot-1.1.6/include -idirafter /home/zyg/u-boot-1.1.6/include2 -idirafter /home/zyg/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
make[1]: Leaving directory '/home/zyg/u-boot-1.1.6/tools'
make -C examples all
make[1]: Entering directory '/home/zyg/u-boot-1.1.6/examples'
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I/home/zyg/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
/opt/FriendlyARM/toolschain/4.4.3/libexec/gcc/arm-none-linux-gnueabi/4.4.3/cc1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
/home/zyg/u-boot-1.1.6/config.mk:234: recipe for target 'hello_world.o' failed
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory '/home/zyg/u-boot-1.1.6/examples'
Makefile:275: recipe for target 'examples' failed
make: *** [examples] Error 2
级别: 新手上路
UID: 99086
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2013-12-17
最后登录: 2016-12-06
1楼  发表于: 2016-07-31 10:47
交叉编译器的版本问题,编译uboot需要使用旧版本的编译器如3.3.5 。
4.4.3的版本用来编译内核和文件系统以及应用程序。不能用来编译uboot.
级别: 新手上路
UID: 126792
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
贡献值: 0 点
综合积分: 20 分
注册时间: 2016-07-21
最后登录: 2016-09-08
2楼  发表于: 2016-08-11 15:06

 回 1楼(houlianpi) 的帖子

谢谢,用了4.3.2的