2008-10-11 11:51:06     U-Boot: Autoboot from NAND fails

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-10-11 11:51:06     U-Boot: Autoboot from NAND fails

Andreas Bellgardt (GERMANY)

Message: 63477   

 

Hi ALL!

 

I have a custom board based on the BF537-STAMP.

U-Boot is installed in flash and running. A linux image is stored in NAND .

This is my u-boot environment:

 

bootcmd=run nandboot

bootdelay=5

baudrate=57600

ipaddr=192.168.88.115

serverip=192.168.88.40

autoload=no

gatewayip=192.168.88.1

netmask=255.255.255.0

hostname=bf537-media

loadaddr=0x1000000

nandboot=nboot 0x1000000 0 0;bootm 0x1000000

ethaddr=02:80:AD:20:31:E8

stdin=serial

stdout=serial

stderr=serial

ethact=Blackfin EMAC

 

I want to auto-boot linux after power-on or reset, but u-boot hangs counting down the boot delay:

 

U-Boot 1.1.6-svn1216 (ADI-2008R2-pre) (Oct 11 2008 - 17:32:04)

CPU:   ADSP bf537-0.3 (Detected Rev: 0.3)

Clock: VCO: 500 MHz, Core: 500 MHz, System: 50 MHz

RAM:   Serial Port initialized with Baud rate = 57600

SDRAM Begin: 0x0

Bank size = 64 MB

64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

NAND:  16 MiB

Net:   Blackfin EMAC

MAC:   02:80:AD:20:31:E8

Hit any key to stop autoboot:  5

 

If I try "run nandboot" manually linux boots successfully. Whats wrong here?

 

Thanks for any help!

TranslateQuoteReplyEditDelete

 

 

2008-10-11 11:57:22     Re: U-Boot: Autoboot from NAND fails

Mike Frysinger (UNITED STATES)

Message: 63478   

 

sounds more like your autoboot is broken.  set it to something simple like "echo hi" and see if it runs the bootcmd.

 

also, your SCLK is severly low.  that's going to lead to horrible peformance.  why not bump it up to something good ?

QuoteReplyEditDelete

 

 

2008-10-13 08:13:43     Re: U-Boot: Autoboot from NAND fails

Andreas Bellgardt (GERMANY)

Message: 63555   

 

Mike, thanks for your quick reply even on weekend!

 

I've tried what you suggested and I found that autoboot is working. Autoboot from NAND is working, too.

But coming out of reset/power-on sometimes gives the result as I described in my first posting.

I tried booting with lower SCLK, that's why SCLK was set to 50MHz. But there's no difference with this problem at 50MHz or 100MHz SCLK.

 

bf537.h

TranslateQuoteReplyEditDelete

 

 

2008-10-13 08:29:42     Re: U-Boot: Autoboot from NAND fails

Andreas Bellgardt (GERMANY)

Message: 63558   

 

Perhaps you could have a look at my U-Boot config file attached above.

 

I use a ST M29W320DT flash chip, this is a top boot block device unlike the flash used on the BF537-stamp.

Because of my address mapping with other peripherials I'm not able to use the smaller top boot blocks for u-boot environment, that's why my CFG_ENV_ADDR = 0x202E0000 and CFG_ENV_SIZE = 0x10000. So I use a whole 64kB sector of flash for u-boot environment.

 

If 'ENV_IS_EMBEDDED' is not defined (unlike in the u-boot config posted), I'm able to modify and store u-boot configuration with 'saveenv', this seems to work correct.

 

One more information: I use a hardware reset device STM6717 with a minimal specified reset delay of 140ms.

 

Any suggestions? Thanks.

Attachments

    Outcomes