您现在所在的是:

嵌入式系统

回帖:1个,阅读:752 [上一页] [1] [下一页]
806
xuerenxiang
文章数:3
年度积分:50
历史总积分:806
注册时间:2009/9/25
发站内信
发表于:2009/9/25 23:02:29
#0楼
VM + REDHAT9V。0 + ARM-LINUX-GCC-3.4.1 + U-BOOT-1。1。4
上面是环境

下面是操作步骤:
装好了交叉编译环境,解压了uboot
先测试下,交叉工具 是否正确
[root@localhost u-boot-1.1.4]# arm-linux-gcc -v

Reading specs from /usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --target=arm-linux --with-cpu=strongarm1100
--prefix=/usr/local/arm/3.4.1 i686-pc-linux-gnu --with-headers=/work/kernel.h3900/include --enable-
threads=pthreads --enable-shared --enable-static --enable-languages=c,c++
Thread model: posix
gcc version 3.4.1
然后make smdk2410_config
[root@localhost u-boot-1.1.4]# make smdk2410_config
Configuring for smdk2410 board...
这步没有问题

接着再 make 操作

[root@localhost u-boot-1.1.4]# make

然后
make[1]: Entering directory `/ub114/u-boot-1.1.4/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC  environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c >  .depend
make[1]: Leaving directory `/ub114/u-boot-1.1.4/tools'
make[1]: Entering directory `/ub114/u-boot-1.1.4/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/ub114/u-boot-1.1.4/tools'
make[1]: Entering directory `/ub114/u-boot-1.1.4/examples'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-f loat  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/ub114/u-boot-1.1.4/include -fno-bui ltin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -ma rch=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes  stubs.c  > .depend
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/ub114/u-boot-1.1.4/examples'
make[1]: Entering directory `/ub114/u-boot-1.1.4/post'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-f loat  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/ub114/u-boot-1.1.4/include -fno-bui ltin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -ma rch=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes cache_8xx.S cache.c codec.c c pu.c dsp.c ether.c i2c.c memory.c post.c rtc.c spr.c sysmon.c tests.c uart.c usb .c watchdog.c > .depend
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/ub114/u-boot-1.1.4/post'
make[1]: Entering directory `/ub114/u-boot-1.1.4/post/cpu'
arm-linux-gcc -M -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-f loat  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/ub114/u-boot-1.1.4/include -fno-bui ltin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -ma rch=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes asm.S cmp.c cmpi.c two.c twox .c three.c threex.c threei.c andi.c srawi.c rlwnm.c rlwinm.c rlwimi.c store.c lo ad.c cr.c b.c multi.c string.c complex.c > .depend
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/ub114/u-boot-1.1.4/post/cpu'
make: *** [depend] Error 2

有没有人遇到过这个问题?
请问怎么解决?
匿名用户
文章数:N/A
年度积分:0
历史总积分:0
注册时间:2009/11/4
发站内信
发表于:2009/11/4 19:00:01
#1楼
该用户被锁定,回复内容不予显示!

关于我们 | 联系我们 | 广告服务 | 本站动态 | 友情链接 | 法律声明 | 非法和不良信息举报

工控网客服热线:0755-86369299
版权所有 工控网 Copyright©2024 Gkong.com, All Rights Reserved

46.8003