Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: u-boot from linux4sam.org
PostPosted: Tue Mar 25, 2008 3:36 am 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi,

Lately, I have noted an unusable u-boot 1.1.5 on www.linux4sam.org.

The precompiled ".bin" works fine (loaded at offset 0x8000 in dataflash).

However, I compiled the uboot from the given source (with patch applied) as follows and load into 0x8000 dataflash offset, but uboot cannot start.

make distclean
make at91sam9261ek_config
make

Anyone has the same experience ?

Is there something missing in the u-boot source ?

Appreciate any advise and help.

Thanks in advance.

Sim CK


Top
 Profile  
 
 Post subject: Re: u-boot from linux4sam.org
PostPosted: Tue Mar 25, 2008 7:53 am 
Offline

Joined: Sun Sep 02, 2007 1:39 pm
Posts: 77
cksim wrote:
Hi,

Lately, I have noted an unusable u-boot 1.1.5 on www.linux4sam.org.

The precompiled ".bin" works fine (loaded at offset 0x8000 in dataflash).

However, I compiled the uboot from the given source (with patch applied) as follows and load into 0x8000 dataflash offset, but uboot cannot start.

make distclean
make at91sam9261ek_config
make

Anyone has the same experience ?

Is there something missing in the u-boot source ?

Appreciate any advise and help.

Thanks in advance.

Sim CK


Perhaps your build process doesn't cross-compile?

I'm using:

Code:
tar -jxvf SRC/U-Boot/u-boot-1.1.5.tar.bz2
cd u-boot-1.1.5/
bzcat ../SRC/U-Boot/u-boot-1.1.5_atmel_1.5.diff.bz2 | patch -p1
make distclean
make at91sam9263ek_config
make CROSS_COMPILE=/misc/usb/2008-03/oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-


So, I use the compilers previously build with OpenEmbedded to generate U-Boot.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 9:03 am 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi limpens,

The code did cross-compiled as I saw arm-elf-gcc being used as the compiler during the compiling process.

Anyway, I also tried you method (adding CROSS_COMPILE after make) and U-boot still did not start.

It really puzzles me as the original uboot source from linux4sam.org also not able to boot.


Sim CK


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 10:10 am 
Offline

Joined: Sun Sep 02, 2007 1:39 pm
Posts: 77
cksim wrote:
Hi limpens,

The code did cross-compiled as I saw arm-elf-gcc being used as the compiler during the compiling process.

Anyway, I also tried you method (adding CROSS_COMPILE after make) and U-boot still did not start.

It really puzzles me as the original uboot source from linux4sam.org also not able to boot.


Sim CK



You can find the steps I've followed here. Basically the same as per linux4sam.

hth.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 11:05 am 
Offline

Joined: Mon May 28, 2007 5:02 pm
Posts: 50
Location: Walton-on-Thames, UK
It looks like you may be using a wrong version of the compiler. You say the compiler is arm-elf-gcc but for U-boot and the Linux kernel it should be arm-linux-gcc. Note also that u-boot requires a binutils with software floating point.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 2:23 pm 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi fingar,

That is not true. arm-elf-gcc can be used for Uboot and Linux kernel.

Best Regards.

Sim CK


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 10:34 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
fingar wrote:
It looks like you may be using a wrong version of the compiler.


Hi there

Fingar is correct, since the OP has not stated what version of the compiler he is using.

If you want a U-Boot 1.1.5 that compiles and will execute correctly, then I would recommend that you use gcc version 3.4.3. A search of this site will turn up a little more info.

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 11:55 pm 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi blue_z,

I have tried on both arm-elf from ELDK 4 and arm-linux 4.1.2 (uclibc), the result is the same. The U-boot don't boot.

Also, I have tried to use the same compiler to compile at91bootstrap seperately and load it together with the pre-compiled working Uboot from linux4sam and it boots up fine.

Hence, it appears that the compiler I have used should be fine, isn't it ?

Best Regards.

Sim CK


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 12:19 am 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
Hi there

Quote:
Hence, it appears that the compiler I have used should be fine, isn't it ?


You can use whatever compiler you choose. I cannot force you to use what I know works. Perhaps you do not like being told you are using the wrong compiler. Is the following reply to your original post more to your liking?

Yes, the U-Boot source code is broken. Major pieces were left out. Thanks for bring this to our attention. All has been fixed. However there is one restriction. You need to use gcc 3.4.3 to cross compile this source code to get binaries that actually execute properly.


Regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 4:14 pm 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi blue_z,

Honestly, this reply of yours is perfect. I have no further questions.

I will spent some time on that. :)

FYI, I am not trying to challenge you in the earlier mails but just want to ensure that there is some ground for your recommendation as testing takes time.

I really appreciate your reply.

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 9:15 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
Hi there

cksim wrote:
FYI, I am not trying to challenge you in the earlier mails but just want to ensure that there is some ground for your recommendation as testing takes time.


As I previously mentioned, a search of this site would probably show a old post by me that explains why gcc 3.4.3 is the complier to use for U-Boot 1.1.5, and a site where this toolchain binaries can be downloaded.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: