[#6304] spi uboot doesn't work on bf518f-ezbrd in 2010r1-rc1

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

[#6304] spi uboot doesn't work on bf518f-ezbrd in 2010r1-rc1

Submitted By: Vivi Li

Open Date

2010-10-18 04:56:53     Close Date

2010-10-27 23:49:30

Priority:

Medium High     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2010R1     Status:

Closed

Board:

N/A     Processor:

BF518

Silicon Revision:

    Resolution:

Out of Date

Is the bug repeatable?:

N/A     

Summary: spi uboot doesn't work on bf518f-ezbrd in 2010r1-rc1

Details:

 

In 2010r1-rc1, when uboot is just updated in spi flash on bf518f-ezbrd, software reset doesn't work and hardware reset can work.

After command "saveenv" is executed on uboot, both software and hardware reset can't work, u-boot can not boot now.

This happens with both 0.0 and 0.1 sillicon.

 

--

U-Boot 2010.06-svn2399 (ADI-2010R1-pre) (Sep 20 2010 - 22:55:23)

 

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

Board: ADI BF518F EZ-Board board

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

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

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> tftp 0x1000000 u-boot.bin

Using bfin_mac 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 = 182468 (2c8c4 hex)

bfin> printenv ethaddr

ethaddr=00:E0:22:FE:85:29

bfin> go 0x1000000

## Starting application at 0x01000000 ...

 

 

U-Boot 2010.06-svn2467 (ADI-2010R1) (Oct 08 2010 - 18:14:50)

 

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

Board: ADI BF518F EZ-Board board

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

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

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

SF: Detected M25P16 with page size 256, total 2 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> set ethaddr 00:E0:22:FE:85:29

bfin> set serverip 10.100.4.174

bfin> set gatewayip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> run update

Using bfin_mac 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 = 191148 (2eaac hex)

SF: Detected M25P16 with page size 256, total 2 MiB

2048 KiB M25P16 at 0:2 is now current device

bfin> reset

 

(set boot mode SW1 to 3, Boot LDR from SPI flash)

 

U-Boot 2010.06-svn2467 (ADI-2010R1) (Oct 08 2010 - 18:14:50)

 

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

Board: ADI BF518F EZ-Board board

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

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

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

SF: Detected M25P16 with page size 256, total 2 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Warning: Generating 'random' MAC address

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> reset

 

(software reset doesn't work here and we can reset by hardware)

 

U-Boot 2010.06-svn2467 (ADI-2010R1) (Oct 08 2010 - 18:14:50)

 

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

Board: ADI BF518F EZ-Board board

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

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

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

SF: Detected M25P16 with page size 256, total 2 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Warning: Generating 'random' MAC address

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...Writing to SPI flash...done

bfin> reset

 

(either software and hardware reset can't work now)

--

 

Follow-ups

 

--- Vivi Li                                                  2010-10-18 05:39:13

In latest 2010r1 branch, no such bug.

So I suppose we need 2010r1-rc2 for u-boot.

 

--- Sonic Zhang                                              2010-10-18 22:31:18

Hi Mike, could you tag the RC2 release on this Friday?

 

--- Mike Frysinger                                           2010-10-19 01:44:41

i didnt merge anything off the top of my head that would change this.  are you

using 2010RC1 from source or the prebuilt binaries ?

 

--- Vivi Li                                                  2010-10-19 05:57:07

I tried prebuilt binary in our website and source in 2010R1-RC1 tag.

 

--- Vivi Li                                                  2010-10-27 23:49:30

OK in latest branch.

So close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes