[#5039] updating spi u-boot fails at erase flash

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

[#5039] updating spi u-boot fails at erase flash

Submitted By: Vivi Li

Open Date

2009-04-02 23:50:09     Close Date

2009-04-09 02:32:27

Priority:

Medium High     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: updating spi u-boot fails at erase flash

Details:

 

When update spi for bf537-stamp/bf533-stamp with 25p64v6g, or bf548-ezkit/bf526-ezbrd/bf518f-ezbrd, it failed at erase flash.

 

Bellow are two examples of bf537 and bf526:

--

U-Boot 2008.10-svn1778 (ADI-2009R1-pre) (Apr  2 2009 - 18:28:59)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

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

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

RAM:   64 MB

Flash:  4 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   Warning: Generating 'random' MAC address

Blackfin EMAC

MAC:   96:93:9D:DB:27:21

Hit any key to stop autoboot:  0

bfin>

bfin> set ipaddr 10.100.4.50

bfin> set serverip 10.100.4.174

bfin> tftp $(loadaddr) $(ubootfile);sf probe 1

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.bin'.

Load address: 0x1000000

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

done

Bytes transferred = 168196 (29104 hex)

SF: Got idcode 20 20 17

8192 KiB M25P64 at 0:1 is now current device

bfin> sf erase 0 0x40000

SPI flash erase failed

bfin>

--

 

--

U-Boot 2008.10-svn1784 (ADI-2009R1-pre) (Apr  3 2009 - 11:08:39)

 

CPU:   ADSP bf526-0.0 (Detected Rev: 0.0) (spi 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

SF: Got idcode bf 25 04

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   Warning: Generating 'random' MAC address

Blackfin EMAC

MAC:   CE:D8:C6:E0:EC:EB

Hit any key to stop autoboot:  0

bfin> set serverip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> run update

Using Blackfin EMAC device

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 = 184204 (2cf8c hex)

SF: Got idcode bf 25 04

4096 KiB SST25WF040 at 0:1 is now current device

SPI flash erase failed

SPI flash write failed

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-04-04 07:03:42

should probably be fixed now

 

--- Vivi Li                                                  2009-04-09 03:32:29

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