分类:
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