Skip to contentSkip to conversation

porting u-boot 1.1.5 to at91sam9260

U-Boot-Users vibi 4 participants 7 messages Dec 15, 2007 – Dec 18, 2007

lore
Share & tools
lore

vibi

author
#0 lore raw

hello,
is there any one working on porting u-boot 1.1.5 to at91sam9260 soc.

i am going to do this activity,if there is anyone who is already working on this please let me know.

thanks & regards
vibi sreenivasan

#1 lore raw

vibi ha scritto:

Quoted 6 lines

hello,
is there any one working on porting u-boot 1.1.5 to at91sam9260 soc.

i am going to do this activity,if there is anyone who is already working on this please let me know.

vibi,
this project already exists :-)

Getting the AT91 u-boot bootloader
---------------------------------------
To get the u-boot bootloader up and running on an AT91 product you have to go through the following steps:

1. identify on which u-boot revision the patches will apply
2. download the corresponding u-boot

      # wget ftp://ftp.denx.de/pub/u-boot/u-boot-x.x.x.tar.bz2
      # tar xvjf u-boot-x.x.x.tar.bz2
      # cd cd u-boot-x.x.x

3. take the AT91 u-boot patch set and apply it on top of the original
u-boot:

      # wget
http://www.at91.com/repFichier/Project-218/u-boot-x.x.x_atmel_y.y.diff.bz2
      # bzcat u-boot-x.x.x_atmel_y.y.diff.bz2 | patch -p1

You will now have a fresh copy of the AT91 u-boot.

Signature · 9 lines
Cordiali Saluti / Kindest Regards / mit freundlichen Gr?ssen
--
Marco Cavallini
Koan s.a.s. - Bergamo - Italia
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel.: (+39) 035-255.235
Fax : (+39) 178-22.39.748
http://www.KoanSoftware.com  -  http://www.KaeilOS.com
author
#2 lore raw

dear Marco Cavallini,
thanks for your support.
i will check it out.
thanks & regards
vibi sreenivasan

Quoted 32 lines · Marco Cavallini

vibi ha scritto:

Quoted 6 lines

hello,
is there any one working on porting u-boot 1.1.5 to at91sam9260 soc.

i am going to do this activity,if there is anyone who is already working on this please let me know.

vibi,
this project already exists :-)

Getting the AT91 u-boot bootloader
---------------------------------------
To get the u-boot bootloader up and running on an AT91 product you have to go through the following steps:

1. identify on which u-boot revision the patches will apply
2. download the corresponding u-boot

      # wget ftp://ftp.denx.de/pub/u-boot/u-boot-x.x.x.tar.bz2
      # tar xvjf u-boot-x.x.x.tar.bz2
      # cd cd u-boot-x.x.x

3. take the AT91 u-boot patch set and apply it on top of the original
u-boot:

      # wget
http://www.at91.com/repFichier/Project-218/u-boot-x.x.x_atmel_y.y.diff.bz2
      # bzcat u-boot-x.x.x_atmel_y.y.diff.bz2 | patch -p1

You will now have a fresh copy of the AT91 u-boot.

#6 lore raw
In reply to vibi
Quoted 2 lines

is there any one working on porting u-boot 1.1.5 to at91sam9260 soc.

I'm happily using 1.2.0 on the 9260. Atmel offers both 1.1.5 and 1.2.0, so I chose the latter; I had problems on the 9263 but it runs fine on 9260 (timer management is broken in both versions, though).

The sources are at ftp://at91dist:distrib at 81.80.104.162/AT91_Third_Party_Design_Flow/Linux_Host/Source/u-boot-1.2.0-atmel.tar.bz2

BTW: anyone knows why 926x code isn't merged and whether there are plans in that direction?

/alessandro

author
#3 lore raw

[U-Boot-Users] error compiling u-boot 1.1.5 for at91sam9260ek

In reply to Marco Cavallini

hi,
i have tried that patch.but when i compile the source for at91sam9260ek
i am getting error that u-boot uses soft floating point where as libgcc.a in my cross-compiler tool chain uses hard floating point . but i compiled a working u-boot for at91rm9200dk using this tool chain, and here also -msoft-float option was given.

has any one faced this kind of problem before?

thanks & regards
vibi sreenivasan

Quoted 32 lines · Marco Cavallini

vibi ha scritto:

Quoted 6 lines

hello,
is there any one working on porting u-boot 1.1.5 to at91sam9260 soc.

i am going to do this activity,if there is anyone who is already working on this please let me know.

vibi,
this project already exists :-)

Getting the AT91 u-boot bootloader
---------------------------------------
To get the u-boot bootloader up and running on an AT91 product you have to go through the following steps:

1. identify on which u-boot revision the patches will apply
2. download the corresponding u-boot

      # wget ftp://ftp.denx.de/pub/u-boot/u-boot-x.x.x.tar.bz2
      # tar xvjf u-boot-x.x.x.tar.bz2
      # cd cd u-boot-x.x.x

3. take the AT91 u-boot patch set and apply it on top of the original
u-boot:

      # wget
http://www.at91.com/repFichier/Project-218/u-boot-x.x.x_atmel_y.y.diff.bz2
      # bzcat u-boot-x.x.x_atmel_y.y.diff.bz2 | patch -p1

You will now have a fresh copy of the AT91 u-boot.

#4 lore raw

[U-Boot-Users] error compiling u-boot 1.1.5 for at91sam9260ek

Hello vibi,

I have similar problems on the AT91SAM9261-ek, and I use a hack (attached) to be able to compile the code. It is not nice, but it worked for me until I (or someone else) have time to figure it out more deeply.

Maybe you have the same problem?

Kind Regards,

Remy

2007/12/17, vibi <[email protected]>:

Quoted 47 lines

hi,
i have tried that patch.but when i compile the source for at91sam9260ek
i am getting error that u-boot uses soft floating point where as libgcc.a in my cross-compiler tool chain uses hard floating point . but i compiled a working u-boot for at91rm9200dk using this tool chain, and here also -msoft-float option was given.

has any one faced this kind of problem before?

thanks & regards
vibi sreenivasan

Quoted 23 lines · Marco Cavallini

vibi ha scritto:

Quoted 6 lines

hello,
is there any one working on porting u-boot 1.1.5 to at91sam9260 soc.

i am going to do this activity,if there is anyone who is already working on this please let me know.

vibi,
this project already exists :-)

Getting the AT91 u-boot bootloader
---------------------------------------
To get the u-boot bootloader up and running on an AT91 product you have to go through the following steps:

1. identify on which u-boot revision the patches will apply
2. download the corresponding u-boot

      # wget ftp://ftp.denx.de/pub/u-boot/u-boot-x.x.x.tar.bz2
      # tar xvjf u-boot-x.x.x.tar.bz2
      # cd cd u-boot-x.x.x
Quoted 9 lines

3. take the AT91 u-boot patch set and apply it on top of the original
u-boot:

      # wget
http://www.at91.com/repFichier/Project-218/u-boot-x.x.x_atmel_y.y.diff.bz2
      # bzcat u-boot-x.x.x_atmel_y.y.diff.bz2 | patch -p1

You will now have a fresh copy of the AT91 u-boot.

Quoted 11 lines

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-linker-error-at91sam9261ek-HACK.patch
Type: text/x-patch
Size: 2948 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20071217/403dfe18/attachment.bin

author
#5 lore raw

[U-Boot-Users] error compiling u-boot 1.1.5 for at91sam9260ek

hello Remy,
thanks for your support.
the error i got is this

arm-linux-ld:
ERROR: /usr/local/arm/4.1/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.6/libgcc.a(_udivdi3.oS) uses hardware FP, whereas u-boot uses software FP
arm-linux-ld: failed to merge target specific data of
file /usr/local/arm/4.1/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.6/libgcc.a(_udivdi3.oS)
arm-linux-ld:
ERROR: /usr/local/arm/4.1/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.6/libgcc.a(_clz.oS) uses hardware FP, whereas u-boot uses software FP
arm-linux-ld: failed to merge target specific data of
file /usr/local/arm/4.1/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.6/libgcc.a(_clz.oS)

and i solved this by commenting the "-msoft-float " option for compiler in cpu/arm926ejs/config.mk & cpu/arm926ejs/at91sam926x/config.mk

but what makes me think is that same flag was given for at91rm9200 and it worked.

thanks & regards

vibi sreenivasan

Quoted 73 lines · Remy Bohmer

Hello vibi,

I have similar problems on the AT91SAM9261-ek, and I use a hack (attached) to be able to compile the code. It is not nice, but it worked for me until I (or someone else) have time to figure it out more deeply.

Maybe you have the same problem?

Kind Regards,

Remy

2007/12/17, vibi <[email protected]>:

Quoted 58 lines

hi,
i have tried that patch.but when i compile the source for at91sam9260ek
i am getting error that u-boot uses soft floating point where as libgcc.a in my cross-compiler tool chain uses hard floating point . but i compiled a working u-boot for at91rm9200dk using this tool chain, and here also -msoft-float option was given.

has any one faced this kind of problem before?

thanks & regards
vibi sreenivasan

Quoted 23 lines · Marco Cavallini

vibi ha scritto:

Quoted 6 lines

hello,
is there any one working on porting u-boot 1.1.5 to at91sam9260 soc.

i am going to do this activity,if there is anyone who is already working on this please let me know.

vibi,
this project already exists :-)

Getting the AT91 u-boot bootloader
---------------------------------------
To get the u-boot bootloader up and running on an AT91 product you have to go through the following steps:

1. identify on which u-boot revision the patches will apply
2. download the corresponding u-boot

      # wget ftp://ftp.denx.de/pub/u-boot/u-boot-x.x.x.tar.bz2
      # tar xvjf u-boot-x.x.x.tar.bz2
      # cd cd u-boot-x.x.x
Quoted 9 lines

3. take the AT91 u-boot patch set and apply it on top of the original
u-boot:

      # wget
http://www.at91.com/repFichier/Project-218/u-boot-x.x.x_atmel_y.y.diff.bz2
      # bzcat u-boot-x.x.x_atmel_y.y.diff.bz2 | patch -p1

You will now have a fresh copy of the AT91 u-boot.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users