Skip to contentSkip to conversation

Help starting u-boot on an at91sam9260ek

U-Boot Fabio Porcedda 3 participants 4 messages Oct 28, 2011

lore
Share & tools
lore
#0 lore raw

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

Quoted 1 line

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

#1 lore raw

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

Quoted 77 lines

-----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

Quoted 1 line

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

#2 lore raw
In reply to Fabio Porcedda
Quoted 4 lines · Fabio Porcedda

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

Hi Fabio,

Quoted 4 lines

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

Signature · 5 lines
=====================================================================
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
=====================================================================
#3 lore raw
Quoted 8 lines · Stefano Babic
Quoted 4 lines · Fabio Porcedda

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,

Quoted 9 lines
Quoted 4 lines

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.

Quoted 3 lines

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.

Quoted 3 lines

Best regards,
Stefano Babic

Thank you very much
Fabio Porcedda