QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1896|回复: 5

求助:编译U-boot

[复制链接]
发表于 2006-1-5 09:20:08 | 显示全部楼层 |阅读模式
make[1]: Entering directory `/download/u-boot/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c > .depend
make[1]: Leaving directory `/download/u-boot/tools'
make[1]: Entering directory `/download/u-boot/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/download/u-boot/tools'
make[1]: Entering directory `/download/u-boot/examples'
/opt/host/armv4l/bin/armv4l-unknown-linux-gcc -M -g  -Os   -fno-strict-aliasing
-fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE= -I/download/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes hello_world.c stubs.c  > .depend
make[1]: Leaving directory `/download/u-boot/examples'
make[1]: Entering directory `/download/u-boot/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/download/u-boot/examples'
make[1]: Entering directory `/download/u-boot/post'
/opt/host/armv4l/bin/armv4l-unknown-linux-gcc -M -g  -Os   -fno-strict-aliasing
-fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE= -I/download/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/host/armv4l/lib/gcc-lib/armv4l-unknown-linux/2.95.2/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes cache_8xx.S cache.c codec.c cpu.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
make[1]: Leaving directory `/download/u-boot/post'
make[1]: Entering directory `/download/u-boot/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/download/u-boot/post'
make[1]: Entering directory `/download/u-boot/post/cpu'
make[1]: *** No rule to make target `asm.S', needed by `.depend'.  Stop.
make[1]: Leaving directory `/download/u-boot/post/cpu'
make: *** [depend] Error 2
找了半天,各种可能都试了,实在没办法了。
发表于 2006-1-5 19:46:30 | 显示全部楼层
把交叉编译器改为arm-elf-,试一下
回复

使用道具 举报

发表于 2006-1-6 12:09:15 | 显示全部楼层
将cpu目录中的asm.s改称asm.S就可以了
从win下拷到linux下的程序扩展名可能会出问题
回复

使用道具 举报

发表于 2006-3-2 15:24:20 | 显示全部楼层
楼主的问题解决了吗,花了多久
回复

使用道具 举报

发表于 2006-3-2 15:46:28 | 显示全部楼层
我也想知道编译u-boot的步骤,楼主可以告诉一下吗?多谢了!
回复

使用道具 举报

发表于 2006-12-14 16:02:34 | 显示全部楼层
修改Makefile文件,把arm-gcc-改成arm-elf-
make mrproper (or clean)
make xxx_config
make all
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 14:50 , Processed in 0.060371 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表