[U-Boot-Users] Can't build U-Boot 1.2.0 for AT91

Hello all,
I posted this question on at91.com, but have received no response, so I though I'd try here. I'm attempting to build a modified version of U-boot v1.2.0 and am coming across a problem during the link stage. I used Buildroot to create my toolchain with GCC v4.1.2, uClibc v0.98.2, and Linux v2.6.20. I'm using a version of the U-Boot source patched specifically for the Atmel AT91 chips (can be downloaded at http://www.at91.com/Project/Controleurs/cVisualisation.php). When I make all, I get the following error:
arm-linux-ld: ERROR: /home/alex/dev/ARM/Linux/sw/bsp/rootfs/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/4.1.2/libgcc.a(_udivdi3.o) uses hardware FP, whereas u-boot uses software FP arm-linux-ld: failed to merge target specific data of file /home/alex/dev/ARM/Linux/sw/bsp/rootfs/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/4.1.2/libgcc.a(_udivdi3.o) arm-linux-ld: ERROR: /home/alex/dev/ARM/Linux/sw/bsp/rootfs/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/4.1.2/libgcc.a(_clz.o) uses hardware FP, whereas u-boot uses software FP arm-linux-ld: failed to merge target specific data of file /home/alex/dev/ARM/Linux/sw/bsp/rootfs/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/4.1.2/libgcc.a(_clz.o) make: *** [u-boot] Error 1
Does anyone have any idea what I can do to get everything to compile and link properly. I'd like to be able to use the same toolchain to build U-Boot as I use to build Linux, but if that's not possible, any solution at all would be greatly appreciated.
Sincerely, Alex Parkinson

In message 1ec5776b0705110518j5197f022y1ec4d3c8a7a52a53@mail.gmail.com you wrote:
I posted this question on at91.com, but have received no response, so I though I'd try here. I'm attempting to build a modified version of U-boot
May I ask why you did not search the archives for answers? You are supposed to do this before posting.
/home/alex/dev/ARM/Linux/sw/bsp/rootfs/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/4.1.2/libgcc.a(_udivdi3.o) uses hardware FP, whereas u-boot uses software FP
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Your toolchain used hardware FP unconditionally, whereas u-boot uses software FP.
Fix your toolchain.
------=_Part_166760_10567894.1178885911346 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
And NEVER post HTML on this list!!
Wolfgang Denk

On 5/11/07, Wolfgang Denk wd@denx.de wrote:
In message 1ec5776b0705110518j5197f022y1ec4d3c8a7a52a53@mail.gmail.com you wrote: May I ask why you did not search the archives for answers? You are supposed to do this before posting.
Sorry, I tried to search the archives, but they were down. As it was posted on the U-Boot website that the archives are frequently down, I wasn't sure when they'd be back up, so I posted to the list.
Your toolchain used hardware FP unconditionally, whereas u-boot uses software FP.
Fix your toolchain.
Thanks for the advice. Any tips as to how I can fix my toolchain would be appreciated. I understand that that's a question for Buildroot users, but perhaps someone on the U-Boot list has seen this problem before.
------=_Part_166760_10567894.1178885911346 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
And NEVER post HTML on this list!!
My apologies. I didn't realize I was posting HTML as Gmail does that automatically.
Alex

I'm using Kegel arm-softfloat-linux-gnu toolchain, compiled for gcc-3.4.5-glibc-2.3.6 combination - works for at91rm9200-ek board, both u-boot 1.2.0 and Linux 2.6.16.
Leonid.
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Alex Parkinson Sent: Friday, May 11, 2007 6:01 AM To: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Can't build U-Boot 1.2.0 for AT91
On 5/11/07, Wolfgang Denk wd@denx.de wrote:
In message
1ec5776b0705110518j5197f022y1ec4d3c8a7a52a53@mail.gmail.com you wrote:
May I ask why you did not search the archives for answers? You are supposed to do this before posting.
Sorry, I tried to search the archives, but they were down. As it was posted on the U-Boot website that the archives are frequently down, I wasn't sure when they'd be back up, so I posted to the list.
Your toolchain used hardware FP unconditionally, whereas u-boot uses software FP.
Fix your toolchain.
Thanks for the advice. Any tips as to how I can fix my toolchain would be appreciated. I understand that that's a question for Buildroot users, but perhaps someone on the U-Boot list has seen this problem before.
------=_Part_166760_10567894.1178885911346 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
And NEVER post HTML on this list!!
My apologies. I didn't realize I was posting HTML as Gmail does that automatically.
Alex
------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

Sorry, I tried to search the archives, but they were down. As it was posted on the U-Boot website that the archives are frequently down, I wasn't sure when they'd be back up, so I posted to the list.
Your toolchain used hardware FP unconditionally, whereas u-boot uses software FP.
Fix your toolchain.
Or remove the (unneccessary) "-msoftfloat" from your "cpu/<cpu>/config.mk" file. Works for me and is much easier than "fixing" the toolchain.
My "buildroot" at ftp://at91dist:distrib@81.80.104.162/ -> AT91 third party -> Linux-host -> Source will do what you want.
Download buildroot 2007-04-20 create /tftpboot and /usr/local/arm and make sure you can write to them as an ordinary user.
$ make B=at91sam9260dfc board $ make
This will generate everything you need for running the AT91SAM9260EK from a dataflashcard (I.E SPI0.CS0). You will have to fix a few things if you want to run from a SPI0.CS1.
My U-boot 1.2.0 version does not detect NAND flash properly.
Best Regards Ulf Samuelsson
participants (4)
-
Alex Parkinson
-
Leonid
-
Ulf Samuelsson
-
Wolfgang Denk