[#6841] boot uImage from flash fail after doing reset on bf526-ezbrd

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

[#6841] boot uImage from flash fail after doing reset on bf526-ezbrd

Submitted By: Mingquan Pan

Open Date

2011-10-25 02:09:17     Close Date

2011-11-03 02:28:00

Priority:

Medium High     Assignee:

Bob Liu

Category:

N/A     Fixed In Release:

2011R1

Found In Release:

2011R1     Status:

Closed

Board:

N/A     Processor:

BF526

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: boot uImage from flash fail after doing reset on bf526-ezbrd

Details:

 

boot uImage from flash fail after doing reset on bf526-ezbrd.

 

-Boot 2011.09-svn2725 (ADI-2011R1-pre) (Oct 25 2011 - 05:59:10)

 

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: 625 MHz, Core: 156.250 MHz, System: 78.125 MHz

RAM:   64 MiB

Flash: 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0                                                                                   

bfin> tftp 0x1000000 uImage-beta                                                                                   

Using bfin_mac device                                                                                              

TFTP from server 10.100.4.174; our IP address is 10.100.4.50                                                       

Filename 'uImage-beta'.

Load address: 0x1000000

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

         #################################################################

         #######################################

done

Bytes transferred = 2469242 (25ad7a hex)

bfin>  protect off 0x20100000 0x203fffff

................................................ done

Un-Protected 48 sectors

bfin> erase 0x20100000 0x203fffff

 

................................................ done

Erased 48 sectors

bfin> cp.b 0x1000000 0x20100000 0x25ad7a

Copy to Flash... 9....8....7....6....5....4....3....2....1....done

bfin> save

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... 9....8....7....6....5....4....3....2....1....done

. done

Protected 1 sectors

bfin> reset

 

U-Boot 2011.09-svn2725 (ADI-2011R1-pre) (Oct 25 2011 - 05:59:10)

 

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: 625 MHz, Core: 156.250 MHz, System: 78.125 MHz

RAM:   64 MiB

Flash: 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> bootm 0x20100000

Wrong Image Format for bootm command

ERROR: can't get kernel image!

 

 

It can be booted up if no reset in between.

 

Follow-ups

 

--- Bob Liu                                                  2011-11-02 02:56:16

fixed

 

--- Mingquan Pan                                             2011-11-03 02:37:13

Yes, it can boot up now. Close.

 

STEP 44: Load kernel into flash

 

protect off 0x20100000 0x203fffff^M

................................................ done^M

Un-Protected 48 sectors^M

bfin> erase 0x20100000 0x203fffff^M

^M

................................................ done^M

Erased 48 sectors^M

bfin>

About to copy the kernel to flash.

cp.b 0x1000000 0x20100000 0x25ad7a^M

Copy to Flash... 9....8....7....6....5....4....3....2....1....done^M

bfin> copying kernel to flash seemed to work

set bootcmd bootm 0x20100000^M

bfin> save^M

Saving Environment to Flash...^M

. done^M

Un-Protected 1 sectors^M

Erasing Flash...^M

. done^M

Erased 1 sectors^M

Writing to Flash... 9....8....7....6....5....4....3....2....1....done^M

. done^M

Protected 1 sectors^M

bfin>

*****************************

STEP 45: Reset the board and boot from flash

 

reset^M^M

^M

U-Boot 2011.09-svn2739 (ADI-2011R1) (Nov 03 2011 - 05:12:33)^M

^M

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

Board: ADI BF526 EZ-Board board^M

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

Clock: VCO: 625 MHz, Core: 156.250 MHz, System: 78.125 MHz^M

RAM:   64 MiB^M

Flash: 4 MiB^M

In:    serial^M

Out:   serial^M

Err:   serial^M

KGDB:  [on serial] ready^M

Net:   bfin_mac^M

Hit any key to stop autoboot:  9 ^H^H^H 8 ^H^H^H 7 ^H^H^H 6 ^H^H^H 5 ^H^H^H 4

^H^H^H 3 ^H^H^H 2 ^H^H^H 1 ^H^H^H 0 ^M

## Booting kernel from Legacy Image at 20100000 ...^M

   Image Name:   bf527-2.6.32.2-ADI-2010R1-pre-sv^M

   Created:      2009-12-29   6:26:18 UTC^M

...

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes