2009-08-03 05:20:36     boot image from nor flash

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

2009-08-03 05:20:36     boot image from nor flash

dapeng wangdapeng (CHINA)

Message: 78300   

 

hi !

 

a custom bf527 board.

 

I made a u-boot.bin(BFIN_BOOT_PARA) for BF527,and i tested it in  SDRAM well. but if I don't interrupt the countdown delay ,the target would auto download the image from EMAC. why?

 

in my opinion ,if i don't interrupt the countdown ,the processor will load the image stored in FLASH 0x20100000.Here is the printenv from my u-boot.bin:

 

board info:

 

U-Boot      = U-Boot 1.1.6 (ADI-2008R1.5) (Aug  3 2009 - 03:47:03)

CPU         = bf527-0.0

Board       = bf527-wdp-para

VCO         = 528 MHz

CCLK        = 528 MHz

SCLK        = 132 MHz

boot_params = 0x00000000

memstart    = 0x00000000

memsize     = 0x02000000

flashstart  = 0x20000000

flashsize   = 0x00400000

flashoffset = 0x00000000

ethaddr     = F6:B2:B0:C7:D7:34

ip_addr     = 192.168.0.15

baudrate    = 115200 bps

 

 

bfin> printenv

bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart1,115200 console=ttyBF0,1

15200

bootcmd=run ramboot

bootdelay=5

baudrate=115200

loads_echo=1

ipaddr=192.168.0.15

serverip=192.168.0.2

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf527-ezkit

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x2

0000000 0x2003FFFF;cp.b $(loadaddr) 0x20000000 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):

$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart1,115200 cons

ole=ttyBF0,115200

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsver

s=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethaddr=F6:B2:B0:C7:D7:34

stdin=serial

stdout=serial

stderr=serial

ethact=Blackfin EMAC

 

Environment size: 967/8188 bytes

 

I burned the image to 0x20100000, the u-boot to 0x20000000.

 

Is there anything wrong?

 

thanks!

QuoteReplyEditDelete

 

 

2009-08-03 08:37:00     Re: boot image from nor flash

Robin Getz (UNITED STATES)

Message: 78304   

 

Dapeng:

 

Go read the docs:

 

https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:env&s[]=bootcmd

 

-Robin

Attachments

    Outcomes