Chinaunix首页 | 论坛 | 博客
  • 博客访问: 289643
  • 博文数量: 59
  • 博客积分: 2021
  • 博客等级: 大尉
  • 技术积分: 491
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-29 09:49
文章分类

全部博文(59)

文章存档

2011年(6)

2010年(11)

2009年(42)

我的朋友

分类: LINUX

2009-06-03 18:37:11

版本说明:交叉编译工具链:cross2.95.3
下载地址:
U-boot1.1.6/U-boot1.1.4
下载地址:
1.编译命令:
$make distclean
$make smdk2410_config
$make(或者 make ARCH=arm或者make CROSS_COMPILE=/usr/local/arm/2.95.3/bin/arm-linux- )
2.在编译过程中出现的两个错误。
a.出错提示如下:
cc1: Invalid option `abi=apcs-gnu'   
make[1]: *** [hello_world.o] Error 1   
make[1]: Leaving directory `/root/u-boot-1.1.4/examples'   
make: *** [examples] Error 2 
 
解决办法: 出错的文件是/cpu/arm920t/下的config.mk:
将PLATform_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
改成PLATform_CPPFLAGS +=$(call cc-option,-mapcs-32,$(call cc-option,-mabi=apcs-gnu,))
b.出错提示如下:
make[1]: *** No rule to make target `hello_world.srec', needed by `all'. Stop.
make[1]: Leaving directory `/work/src/u-boot-1.1.4/examples'
解决方法:
打开 examples/Makefile 把example文件夹下的Makefile中的
第126行 %.srec: % 改成 %.srec: %.o
第129行的 %.bin: % 改成 %.bin: %.o

3. 到此,U-boot顺利编译成功,生成了u-boot.bin

阅读(1394) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~