Chinaunix首页 | 论坛 | 博客
  • 博客访问: 33047
  • 博文数量: 23
  • 博客积分: 890
  • 博客等级: 准尉
  • 技术积分: 190
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-05 20:26
文章分类

全部博文(23)

文章存档

2011年(1)

2010年(3)

2009年(17)

2008年(2)

我的朋友
最近访客

分类:

2008-12-06 00:09:03

对SBC2410进行uboot移植,先编译smdk2410试试,看是否能通过

1)make clean

2)make smdk2410_config

3)make all ARCH=arm

第三步出错: 

 

make[1]: Leaving directory `/u-boot-1.1.4/tools'
make -C examples all
make[1]: Entering directory `/u-boot-1.1.4/examples'
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
cc1: Invalid option `abi=apcs-gnu'
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/u-boot-1.1.4/examples'
make: *** [examples] Error 2

需修改cpu/arm920t/config.mk文件

其中有PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)

将其中-mabi=apcs-gnu改为$(call cc-option,-mabi=apcs-gnu)即可

重新编译,通过,生成uboot.bin文件

 

参考文章:http://hi.baidu.com/wangy0919/blog/item/55390c60093e6edd8db10dc5.html

阅读(617) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:C语言的谜题(转载)

给主人留下些什么吧!~~