Hi!
I am trying to compile u-boot-1.1.5 for at91sam9261ek with arm926ejs cpu. I am using the eldk
cross toolchain 4.1 which is using gcc 4.0.0.
When I try to compile u-boot I get following error
25an@25an-desktop
:/opt/x-compile/eldk/workingare
a/u-boot-1.1.5_atmel_1.2$ make ARCH=arm CROSS_COMPILE=arm-linux-
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/tools'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/examples'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/post'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/tools'
make -C examples all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/examples
'
arm-linux-gcc
-g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float
-fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__
-DTEXT_BASE=0x23f00000 -I/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/x-compile/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include
-pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -mapcs-32
-march=armv5te -mtune=arm926ejs -Wall -Wstrict-prototypes -c -o
hello_world.o hello_world.c
cc1: error: invalid option 'apcs-32'
hello_world.c:1: error: bad value (arm926ejs) for -mtune= switch
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make: *** [examples] Error 2
Any ideas?
I
would also appreciate any suggestion how to locate the error since
right now I have not even managed to locate were the flag is set.
Thanks