[#5004] BF526-ezbrd: "save" command will make u-boot fail to boot

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

[#5004] BF526-ezbrd: "save" command will make u-boot fail to boot

Submitted By: Yi Li

Open Date

2009-03-19 04:27:34     Close Date

2009-03-19 05:33:16

Priority:

Medium     Assignee:

Nobody

Category:

Commands     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

Ezbrd     Processor:

BF526

Silicon Revision:

0.0     Resolution:

Out of Date

Is the bug repeatable?:

yes     

Summary: BF526-ezbrd: "save" command will make u-boot fail to boot

Details:

 

1. Build u-boot from svn trunk, it can boot correctly from para flash:

-------------------------------------

 

U-Boot 2009.01-svn1709 (ADI-2009R1-pre) (Mar 19 2009 - 13:04:33)

 

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

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Warning: Generating 'random' MAC address

Net:   Blackfin EMAC

MAC:   b2:78:54:13:71:74

Hit any key to stop autoboot:  0

bfin> print 

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

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

ipaddr=192.168.0.15

serverip=192.168.0.2

autoload=no

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf526-ezbrd

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=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=b2:78:54:13:71:74

ethact=Blackfin EMAC

 

Environment size: 1010/8188 bytes

 

2. change "serverip" env and save

--------------------------------

 

bfin> set serverip 192.168.0.21

bfin> save

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

. done

Protected 1 sectors

bfin>

 

3. Press "reset" button on the board

------------------------------------

 

U-Boot 2009.01-svn1709 (ADI-2009R1-pre) (Mar 19 2009 - 13:04:33)

 

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

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:

 

[Hangs here].

 

Follow-ups

 

--- Yi Li                                                    2009-03-19 04:35:47

I am using BF526-ezbrd 0.2.

 

--- Yi Li                                                    2009-03-19 05:33:16

Sonic has committed some code to config nor flash correctly (before I submit

this bug). Looks the commit has fixed this bug. Close it.

 

U-Boot 2009.01-svn1714 (ADI-2009R1-pre) (Mar 19 2009 - 17:23:03)

 

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

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   02:3a:1a:55:b3:ec

Hit any key to stop autoboot:  0

bfin> set serverip 192.168.0.21

bfin> save

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

. done

Protected 1 sectors

bfin> reset

 

 

U-Boot 2009.01-svn1714 (ADI-2009R1-pre) (Mar 19 2009 - 17:23:03)

 

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

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   02:3a:1a:55:b3:ec

Hit any key to stop autoboot:  0

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes