All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Help starting u-boot on an at91sam9260ek
@ 2011-10-28  9:21 Fabio Porcedda
  2011-10-28 11:43 ` Ansell, John
  2011-10-28 12:45 ` Stefano Babic
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Porcedda @ 2011-10-28  9:21 UTC (permalink / raw)
  To: u-boot

Hi all,
i'm trying to use the u-boot on an at91sam9260ek board,
i cannot start successfull the u-boot binary.

build u-boot 2011.09:
export CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-linux-gnueabi-
/MAKEALL at91sam9260ek_nandflash

load & start:
RomBOOT
>

U-Boot 1.3.4 (Mar  9 2010 - 19:29:50)

DRAM:  64 MB
NAND:  256 MiB
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xD0000000
Area 0:	D0000000 to D00041FF (RO) Bootstrap
Area 1:	D0004200 to D00083FF      Environment
Area 2:	D0008400 to D0041FFF (RO) U-Boot
Area 3:	D0042000 to D0251FFF      Kernel
Area 4:	D0252000 to D083FFFF      FS
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation timed out (status=0x7849)
macb0: link down (status: 0x7849)
Hit any key to stop autoboot:  0 
U-Boot> loadb
## Ready for binary (kermit) download to 0x22000000 at 115200 bps...

(Back at ld2036)



----------------------------------------------------
(/home/fabiopo/) C-Kermit>send u-boot.bin
(/home/fabiopo/) C-Kermit>connect 
Connecting to /dev/ttyS0, speed 115200
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
## Total Size      = 0x00029d68 = 171368 Bytes
## Start Addr      = 0x22000000
U-Boot> go 0x22000000
## Starting application at 0x22000000 ...


I don't have problems running the linux4sam u-boot binary, 
using the same commands.
ftp://www.at91.com/pub/uboot/u-boot-1.3.4-exp.4/u-boot-1.3.4-exp.4-at91sam9260ek-nandflash.bin

I'm making something wrong?
Someone can help me?

Thanks in advance for any help
Fabio Porcedda

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Help starting u-boot on an at91sam9260ek
  2011-10-28  9:21 [U-Boot] Help starting u-boot on an at91sam9260ek Fabio Porcedda
@ 2011-10-28 11:43 ` Ansell, John
  2011-10-28 12:45 ` Stefano Babic
  1 sibling, 0 replies; 4+ messages in thread
From: Ansell, John @ 2011-10-28 11:43 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

I believe the at91 U-Boot that Atmel publish has some patches applied. I
don't know offhand what they were but it would be worth checking that
these have made it into the current builds.

http://www.at91.com/project-community/article/2-Projects/218-at91-u-boot
-bootloader.html refers.


Out of interest, have you had any problems with 2010q1 compiler? Atmel
told me a while back they only advise the use of 2007q1. I found that
later compilers gave problems, though I can't remember what they were
now. 

Cheers
John



> -----Original Message-----
> From: u-boot-bounces at lists.denx.de [mailto:u-boot-
> bounces at lists.denx.de] On Behalf Of Fabio Porcedda
> Sent: 28 October 2011 10:22
> To: u-boot at lists.denx.de
> Subject: [U-Boot] Help starting u-boot on an at91sam9260ek
> 
> Hi all,
> i'm trying to use the u-boot on an at91sam9260ek board,
> i cannot start successfull the u-boot binary.
> 
> build u-boot 2011.09:
> export CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-linux-gnueabi-
> /MAKEALL at91sam9260ek_nandflash
> 
> load & start:
> RomBOOT
> >
> 
> U-Boot 1.3.4 (Mar  9 2010 - 19:29:50)
> 
> DRAM:  64 MB
> NAND:  256 MiB
> DataFlash:AT45DB642
> Nb pages:   8192
> Page Size:   1056
> Size= 8650752 bytes
> Logical address: 0xD0000000
> Area 0:	D0000000 to D00041FF (RO) Bootstrap
> Area 1:	D0004200 to D00083FF      Environment
> Area 2:	D0008400 to D0041FFF (RO) U-Boot
> Area 3:	D0042000 to D0251FFF      Kernel
> Area 4:	D0252000 to D083FFFF      FS
> In:    serial
> Out:   serial
> Err:   serial
> Net:   macb0
> macb0: Starting autonegotiation...
> macb0: Autonegotiation timed out (status=0x7849)
> macb0: link down (status: 0x7849)
> Hit any key to stop autoboot:  0
> U-Boot> loadb
> ## Ready for binary (kermit) download to 0x22000000 at 115200 bps...
> 
> (Back at ld2036)
> 
> 
> 
> ----------------------------------------------------
> (/home/fabiopo/) C-Kermit>send u-boot.bin
> (/home/fabiopo/) C-Kermit>connect
> Connecting to /dev/ttyS0, speed 115200
>  Escape character: Ctrl-\ (ASCII 28, FS): enabled
> Type the escape character followed by C to get back,
> or followed by ? to see other options.
> ----------------------------------------------------
> ## Total Size      = 0x00029d68 = 171368 Bytes
> ## Start Addr      = 0x22000000
> U-Boot> go 0x22000000
> ## Starting application at 0x22000000 ...
> 
> 
> I don't have problems running the linux4sam u-boot binary,
> using the same commands.
> ftp://www.at91.com/pub/uboot/u-boot-1.3.4-exp.4/u-boot-1.3.4-exp.4-
> at91sam9260ek-nandflash.bin
> 
> I'm making something wrong?
> Someone can help me?
> 
> Thanks in advance for any help
> Fabio Porcedda
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Help starting u-boot on an at91sam9260ek
  2011-10-28  9:21 [U-Boot] Help starting u-boot on an at91sam9260ek Fabio Porcedda
  2011-10-28 11:43 ` Ansell, John
@ 2011-10-28 12:45 ` Stefano Babic
  2011-10-28 16:42   ` Fabio Porcedda
  1 sibling, 1 reply; 4+ messages in thread
From: Stefano Babic @ 2011-10-28 12:45 UTC (permalink / raw)
  To: u-boot

On 10/28/2011 11:21 AM, Fabio Porcedda wrote:
> Hi all,
> i'm trying to use the u-boot on an at91sam9260ek board,
> i cannot start successfull the u-boot binary.
> 

Hi Fabio,

> Hit any key to stop autoboot:  0 
> U-Boot> loadb
> ## Ready for binary (kermit) download to 0x22000000 at 115200 bps...
> 

Well, it is not clear to me why you want to run u-boot as single
application, instead of replacing the version you have now on target.
And why are you loading u-boot at 0x22000000, because if I see in the
include/configs/at91sam9260ek.h CONFIG_SYS_TEXT_BASE is set to 0x21f00000...

Apart of that, you should also check the bootstrap code (not part of
u-boot), and maybe you have to fix it if the addresses do not correspond
or a smaller image from NAND flash as u-boot is copied.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Help starting u-boot on an at91sam9260ek
  2011-10-28 12:45 ` Stefano Babic
@ 2011-10-28 16:42   ` Fabio Porcedda
  0 siblings, 0 replies; 4+ messages in thread
From: Fabio Porcedda @ 2011-10-28 16:42 UTC (permalink / raw)
  To: u-boot

On Fri, 2011-10-28 at 14:45 +0200, Stefano Babic wrote:
> On 10/28/2011 11:21 AM, Fabio Porcedda wrote:
> > Hi all,
> > i'm trying to use the u-boot on an at91sam9260ek board,
> > i cannot start successfull the u-boot binary.
> >
>
> Hi Fabio,
>
Hi Stefano,

> > Hit any key to stop autoboot:  0
> > U-Boot> loadb
> > ## Ready for binary (kermit) download to 0x22000000 at 115200 bps...
> >
>
> Well, it is not clear to me why you want to run u-boot as single
> application, instead of replacing the version you have now on target.
> And why are you loading u-boot at 0x22000000, because if I see in the
> include/configs/at91sam9260ek.h CONFIG_SYS_TEXT_BASE is set to 0x21f00000...

Loading u-boot at 0x21f00000 solved the issue! Thank you very much!
I'm loading as single application, because if make some mistake it's
faster to change the binary, and it's easy to change the load address
too.

> Apart of that, you should also check the bootstrap code (not part of
> u-boot), and maybe you have to fix it if the addresses do not correspond
> or a smaller image from NAND flash as u-boot is copied.

Now i check the bootstrap code for the correct load address.

> Best regards,
> Stefano Babic
>
Thank you very much
Fabio Porcedda

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-28 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-28  9:21 [U-Boot] Help starting u-boot on an at91sam9260ek Fabio Porcedda
2011-10-28 11:43 ` Ansell, John
2011-10-28 12:45 ` Stefano Babic
2011-10-28 16:42   ` Fabio Porcedda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.