Skip to contentSkip to conversation

atmel at91sam926Xek would not build

U-Boot-Users Junior 2 participants 2 messages Mar 14, 2007

lore
Share & tools
lore

Junior

author
#0 lore raw

By default the atmel patch cross compiler is specified as arm-softfloat-linux-gnu- instead of arm-linux-

I wouldn't have problem except that I get various compile errors when I use crosstools and uclibc toolchain. I've been using the latter for some time now and never had problems.
However, with the atmel at91sam926x ports (and my first shot at atmel SoCs) I get the following error FP error:

/arm-gcc3.4-uclibc0.9.28/bin/sbox-arm-linux-uclibc-ld: ERROR: arm-gcc3.4-uclibc0.9.28/lib/gcc/arm-linux-uclibc/3.4.6/libgcc.a(_clz.oS) uses hardware FP, whereas u-boot uses software FP

with other toolchains, including gcc-4.1-uclibc, I get a this error from the get-go:

cc1: error: unrecognized command line option "-mapcs-32" string.c:0: error: bad value (arm926ejs) for -mtune= switch
cc1: error: unrecognized command line option "-mapcs-32" complex.c:0: error: bad value (arm926ejs) for -mtune= switch

Since I have compiled various uboot sources from 1.1.2 to 1.2.0 with the same uclibc cross compiler, I'm thinking it's something with the atmel port. Unfortunately, I have only been able to get a patch for 1.1.5 and from what I understand, it's the latest.

Have anyone had this problem before?
Does anyone have a fix for it?

Much thanks.

#1 lore raw
Quoted 13 lines

By default the atmel patch cross compiler is specified as arm-softfloat-linux-gnu- instead of arm-linux-

I wouldn't have problem except that I get various compile errors when I use crosstools and uclibc toolchain.
I've been using the latter for some time now and never had problems. However, with the atmel at91sam926x ports (and my first shot at atmel SoCs) I get the following error FP error:

/arm-gcc3.4-uclibc0.9.28/bin/sbox-arm-linux-uclibc-ld: ERROR:
arm-gcc3.4-uclibc0.9.28/lib/gcc/arm-linux-uclibc/3.4.6/libgcc.a(_clz.oS) uses hardware FP, whereas u-boot uses software FP

...

Quoted 5 lines

Have anyone had this problem before?
Does anyone have a fix for it?

Much thanks.

Remove the "-msoftfloat" from cpu/arm926ejs/config.mk and cpu/arm926ejs/at91sam9260/config.mk
Then you can use the compiler.
I use gcc-3.4.6 and binutils-2.16.1 built by buildroot (buildroot.uclibc.org) and it compiles after this fix.

Best Regards
Ulf Samuelsson