[#5030] In latest u-boot 2008.10, "saveenv" then reset bf548-ezkit, it can not boot up

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

[#5030] In latest u-boot 2008.10, "saveenv" then reset bf548-ezkit, it can not boot up

Submitted By: Vivi Li

Open Date

2009-04-01 23:37:00     Close Date

2009-04-07 05:53:28

Priority:

Medium High     Assignee:

Graf Yang

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

EZ-Kit Lite     Processor:

BF548

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: In latest u-boot 2008.10, "saveenv" then reset bf548-ezkit, it can not boot up

Details:

 

In latest trunk of u-boot 2008.10, "saveenv" then reset u-boot on bf548-ezkit, it can not boot up now.

For 2008.10-svn1768, no such problem.

 

Bellow is the log for parallel u-boot:

--

U-Boot 2008.10-svn1778 (ADI-2009R1-pre) (Apr  2 2009 - 11:13:15)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.1) (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: 16 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin>

bfin>

bfin> printenv

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

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=bf548-ezkit

loadaddr=0x1000000

ubootfile=u-boot.ldr

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

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 consol0

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

 

Environment size: 989/8188 bytes

bfin> set ipaddr 10.100.4.50

bfin> set serverip 10.100.4.174

bfin> set gatewayip 10.100.4.174

bfin> set ethaddr 00:E0:22:FE:B8:3D

bfin> saveenv

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

Flash erase timeout at address 20000000 data 0

Flash erase error at address 20000000

done

Erased 1 sectors

bfin>

bfin> reset

--

 

For spi u-boot:

--

U-Boot 2008.10-svn1657 (ADI-2009R1-pre) (Feb  9 2009 - 14:28:50)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.1) (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: 16 MB

NAND:  256 MiB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   MAC:   00:E0:22:FE:B8:3D

Hit any key to stop autoboot:  0

bfin> run update

smc911x: initializing

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:b8:3d

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.ldr'.

Load address: 0x1000000

Loading: ##################

done

Bytes transferred = 256256 (3e900 hex)

SF: Got idcode 20 20 15

2048 KiB M25P16 at 0:1 is now current device

bfin>

bfin> reset

 

 

U-Boot 2008.10-svn1778 (ADI-2009R1-pre) (Apr  2 2009 - 11:36:30)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.1) (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: 16 MB

NAND:  256 MiB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin> set gatewayip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> set serverip 10.100.4.174

bfin> set ethaddr 00:E0:22:FE:B8:3D

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...bfin> reset

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-04-02 23:19:22

probably due to interrupt changes

 

--- Graf Yang                                                2009-04-03 02:56:10

I have committed a patch in get_timer(), subtract the base on return.

Need testing spi flash on other platform.

 

--- Graf Yang                                                2009-04-03 07:11:45

This bug is fixed.

 

SPI flash on BF537, BF527 have different bugs.

 

--- Vivi Li                                                  2009-04-07 06:53:28

This bug is OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes