[#4857] latest u-boot trunk image of bf548 is too large and "run update" command will fail

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

[#4857] latest u-boot trunk image of bf548 is too large and "run update" command will fail

Submitted By: Vivi Li

Open Date

2009-02-05 02:14:20     Close Date

2009-02-06 04:02:25

Priority:

Medium High     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

N/A

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: latest u-boot trunk image of bf548 is too large and "run update" command will fail

Details:

 

For latest u-boot in trunk, u-boot.ldr of bf548 is too large and "run update" command will fail.

 

Bellow is the log for parallel flash boot mode:

--

U-Boot 2008.10-svn1642 (ADI-2009R1-pre) (Feb  5 2009 - 13:56:13)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash: 32 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin>

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

hostname=bf548-ezkit

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 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 clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

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

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

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

flashboot=bootm 0x20100000

stdin=serial

stdout=serial

stderr=serial

ethaddr=00:E0:FE:61:63:7B

filesize=4004C

fileaddr=1000000

gatewayip=10.100.4.174

netmask=255.255.255.0

ipaddr=10.100.4.50

serverip=10.100.4.174

 

Environment size: 1048/8188 bytes

bfin>

bfin> run update

smc911x: initializing

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:fe:61:63:7b

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.ldr'.

Load address: 0x1000000

Loading: T ##################

done

Bytes transferred = 262220 (4004c hex)

.. done

Un-Protected 2 sectors

 

.. done

Erased 2 sectors

Copy to Flash... Can't write to protected Flash sectors

bfin>

--

 

Bellow is the log for spi flash boot mode:

--

U-Boot 2008.10-svn1642 (ADI-2009R1-pre) (Feb  5 2009 - 11:44:09)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF548 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash: 32 MB

NAND:  256 MiB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   MAC:   00:E0:FE:61:63:7B

Hit any key to stop autoboot:  0

bfin>

bfin> print

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

netmask=255.255.255.0

hostname=bf548-ezkit

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write $(loadaddr) 0 $(filesize)

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

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

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

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

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

flashboot=bootm 0x20100000

ipaddr=10.100.4.50

serverip=10.100.4.174

gatewayip=10.100.4.174

ethaddr=00:E0:FE:61:63:7B

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 979/8188 bytes

bfin> run update

smc911x: initializing

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:fe:61:63:7b

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.ldr'.

Load address: 0x1000000

Loading: T ##################

done

Bytes transferred = 262220 (4004c hex)

SF: Got idcode 20 20 15

2048 KiB M25P16 at 0:1 is now current device

bfin> reset

(fail to boot u-boot)

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-02-05 20:23:11

ive disabled the mii cmd for smsc based parts since they dont support it.  that

should get the size back under the watermark.

 

--- Vivi Li                                                  2009-02-06 04:02:25

OK now. Close it.

Thanks!

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes