FAQ: [#6272] After update u-boot in spi flash, BF548-EZKIT can not boot from spi flash(2010)

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

[#6272] After update u-boot in spi flash, BF548-EZKIT can not boot from spi flash

Submitted By: Vivi Li

Open Date

2010-09-21 07:00:33     Close Date

2010-09-26 04:06:37

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3_2010R1-RC2

App binary format:

N/A     

Summary: After update u-boot in spi flash, BF548-EZKIT can not boot from spi flash

Details:

 

After update u-boot in spi flash, BF548-EZKIT can not boot from spi flash.

Board is 1.4, silicon is 0.2.

 

--

U-Boot 2010.06-svn2400 (ADI-2010R1-pre) (Sep 21 2010 - 06:06:43)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (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 MiB

Flash: 16 MiB

NAND:  256 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   smc911x-0

Hit any key to stop autoboot:  0

bfin>

bfin>

bfin> tftp 0x1000000 u-boot.bin

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bf:4c

Using smc911x-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.bin'.

Load address: 0x1000000

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

done

Bytes transferred = 282368 (44f00 hex)

bfin> go 0x1000000

## Starting application at 0x01000000 ...

 

 

U-Boot 2010.06-svn2400 (ADI-2010R1-pre) (Sep 21 2010 - 06:04:10)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (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 MiB

Flash: 16 MiB

NAND:  256 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:   smc911x-0

Hit any key to stop autoboot:  0

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,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

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

nandboot=nand read $(loadaddr) 0x20000 0x100000;run nandargs;bootm

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

ramfile=uImage

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

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

nfsfile=vmImage

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

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

flashboot=bootm 0x20100000

ethact=smc911x-0

ipaddr=10.100.4.50

serverip=10.100.4.174

gatewayip=10.100.4.174

ethaddr=00:E0:22:FE:BF:4C

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1229/8188 bytes

bfin> run update

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bf:4c

Using smc911x-0 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 = 291196 (4717c hex)

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

2048 KiB M25P16 at 0:1 is now current device

bfin> reset

(set boot mode SW1 to 3, reset board, u-boot can not boot)

--

 

Follow-ups

 

--- Mike Frysinger                                           2010-09-22 04:06:38

i cant reproduce here

 

- current svn trunk (rev 2403)

- set CONFIG_BFIN_BOOT_MODE to BFIN_BOOT_SPI_MASTER

- build

- start with bmode==1

 

bfin> t 0 u-boot.bin;go 0

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bd:04

Using smc911x-0 device

TFTP from server 192.168.1.2; our IP address is 192.168.1.15

Filename 'u-boot.bin'.

Load address: 0x0

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

done

Bytes transferred = 284060 (4559c hex)

## Starting application at 0x00000000 ...4

 

 

U-Boot 2010.06-00000-gd4f6173-dirty (ADI-2010R1-pre) (Sep 22 2010 - 04:01:06)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (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 MiB

Flash: 16 MiB

NAND:  256 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:   smc911x-0

Hit any key to stop autoboot:  0

bfin> set serverip 192.168.1.2

bfin> set ipaddr 192.168.1.15

bfin> run update

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bd:04

Using smc911x-0 device

TFTP from server 192.168.1.2; our IP address is 192.168.1.15

Filename 'u-boot.ldr'.

Load address: 0x1000000

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

done

Bytes transferred = 292888 (47818 hex)

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

2048 KiB M25P16 at 0:1 is now current device

bfin>

 

- switch to bmode==3

 

bfin> reset�

 

U-Boot 2010.06-00000-gd4f6173-dirty (ADI-2010R1-pre) (Sep 22 2010 - 04:01:06)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (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 MiB

Flash: 16 MiB

NAND:  256 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:   smc911x-0

Hit any key to stop autoboot:  0

bfin>

 

--- Vivi Li                                                  2010-09-26 04:06:37

I try on another 548 board and it's OK. Only one board has problem with spi.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes