在红帽子9.0下安装cross-2.95.3,设置好path环境变量.测试编译arm-boot-1.1.0文件:
make smdk2410_config
然后 make 编译成功
测试编译u-boot-1.1.4文件:
make smdk2410_config
然后 make 则编译失败.出错信息如下
.......
strip bmp_logo
./bmp_logo logos/denx.bmp >/usr/local/arm/u-boot-1.1.4/include/bmp_logo.h
make[1]: Leaving directory `/usr/local/arm/u-boot-1.1.4/tools'
make -C examples all
make[1]: Entering directory `/usr/local/arm/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/usr/local/arm/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 `/usr/local/arm/u-boot-1.1.4/examples'
make: *** [examples] Error 2
不知道是什么原因引起的,请达人指点.
另外下载安装了eldk3.2.2交叉编译器,编译uboot和上面错误基本一样!