免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3860 | 回复: 1
打印 上一主题 下一主题

uboot1.3.4编译问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-12 14:12 |只看该作者 |倒序浏览
我在编译uboot1.3.4时出现

[xrqun@localhost uboot_make]$ ./uboot_make_dm365.sh
Configuring for davinci_dm365_evm board...
Generating include/autoconf.mk.dep
include/common.h:0: 警告:目标 CPU 不支持交互工作
for dir in tools examples api_examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/tools'
ln -s ../common/environment.c environment.c
ln -s ../include/zlib.h zlib.h
ln -s ../lib_generic/crc32.c crc32.c
ln -s ../lib_generic/md5.c md5.c
ln -s ../lib_generic/sha1.c sha1.c
ln -s ../common/image.c image.c
if [ ! -f mkimage.h ] ; then \
   ln -s ../tools/mkimage.h mkimage.h; \
  fi
if [ ! -f fdt_host.h ] ; then \
   ln -s ../tools/fdt_host.h fdt_host.h; \
  fi
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
gcc: 没有输入文件
make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/tools'
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/examples'
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/examples'
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/api_examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/api_examples'
Generating include/autoconf.mk
include/common.h:0: 警告:目标 CPU 不支持交互工作
make -C tools all
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/tools'
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O  -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -g -Wall -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o image.o image.c
gcc -g -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o md5.o md5.c
gcc -g -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o sha1.o sha1.c
ln -s ../libfdt/libfdt_internal.h libfdt_internal.h
ln -s ../libfdt/fdt.c fdt.c
gcc -g -Wall -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o fdt.o fdt.c
ln -s ../libfdt/fdt_ro.c fdt_ro.c
gcc -g -Wall -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o fdt_ro.o fdt_ro.c
ln -s ../libfdt/fdt_rw.c fdt_rw.c
gcc -g -Wall -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o fdt_rw.o fdt_rw.c
ln -s ../libfdt/fdt_strerror.c fdt_strerror.c
gcc -g -Wall -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o fdt_strerror.o fdt_strerror.c
ln -s ../libfdt/fdt_wip.c fdt_wip.c
gcc -g -Wall -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o fdt_wip.o fdt_wip.c
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o image.o md5.o sha1.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o
strip mkimage
gcc -g -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g  -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o sha1.o
gcc -g -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o ubsha1.o ubsha1.c
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -o ubsha1 ubsha1.o sha1.o
gcc -g -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include2 -idirafter /home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include/bmp_logo.h
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/tools'
make -C examples all
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/examples'
arm_v5t_le-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x81080000 -I/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -fno-stack-protector -c -o hello_world.o hello_world.c
hello_world.c:1: 警告:目标 CPU 不支持交互工作
arm_v5t_le-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x81080000 -I/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -fno-stack-protector -c -o stubs.o stubs.c
stubs.c:1: 警告:目标 CPU 不支持交互工作
arm_v5t_le-ar crv libstubs.a stubs.o
a - stubs.o
arm_v5t_le-ld -g  -Ttext 0xc100000 \
   -o hello_world -e hello_world hello_world.o libstubs.a \
   -L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0 -lgcc
arm_v5t_le-objcopy -O srec hello_world hello_world.srec 2>/dev/null
arm_v5t_le-objcopy -O binary hello_world hello_world.bin 2>/dev/null
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/examples'
make -C api_examples all
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/api_examples'
arm_v5t_le-ar crv libglue.a
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/api_examples'
make -C cpu/arm926ejs start.o
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/cpu/arm926ejs'
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
arm_v5t_le-gcc  -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x81080000 -I/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -c -o start.o start.S
start.S:0: 警告:目标 CPU 不支持交互工作
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/cpu/arm926ejs'
make -C lib_generic/
make[1]: Entering directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/lib_generic'
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
/bin/sh: line 1: /usr/bin/basename: cannot execute binary file
arm_v5t_le-gcc: 没有输入文件
make[1]: *** 没有规则可以创建“libgeneric.a”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/lib_generic'
make: *** [lib_generic/libgeneric.a] 错误 2
cp: 无法 stat “/home/xrqun/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot/u-boot-1.3.4-dm365_evm.bin”: 没有那个文件或目录

不知道是什么问题。
我的编译脚本:
export PATH=$PATH:/opt/mv_pro_5.0/montavista/pro/bin
cd  ~/dvsdk_2_10_01_18/PSP_02_10_00_14/board_utilities/u-boot
make distclean
make davinci_dm365_evm_config
make all
到网上查发现都是替换掉uboot,但这样没有解决问题。

[ 本帖最后由 xrqun 于 2009-11-12 16:33 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-11-13 17:25 |只看该作者

回复 #1 xrqun 的帖子

似乎交叉编译器没有设置好
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP