2010-02-09 13:26:21     BF527 uImage Flashing issue(Copy to Flash... Flash not Erased)

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

2010-02-09 13:26:21     BF527 uImage Flashing issue(Copy to Flash... Flash not Erased)

nagaraj raj (INDIA)

Message: 85853   

 

Hi,

 

I'm trying to save both u-boot and uImage in BF527 Ezkit flash so the device will not need to netboot. uboot i downloaded latest version (u-boot-bf527-ezkit-para-2009R1.1-rc1.ldr)

 

Here's what I have done for flashing uImage:-

 

1. Boot device and stop u-boot's autoboot.

 

2. TFTP uImage to 0x1000000 ->tftp 0x1000000 uImage

 

3. Move uImage to flash starting at 0x20040000

 

3.a unprotect sectors starting at 0x20040000->protect off 0x20040000 0x203DFFFF

 

3.b erase sectors starting at 0x20040000-> erase 0x20040000 0x203DFFFF

 

3.c copy 0x100000 to 0x20040000  ->cp.b $(loadaddr) 0x20040000 $(filesize)

 

 

I got the "Copy to Flash... Flash not Erased" error message.

 

 

The Console message is as below

 

U-Boot 2008.10 (ADI-2009R1.1-rc1) (Dec  4 2009 - 03:19:55)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF527 EZ-Kit board

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

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:BD:F2

Hit any key to stop autoboot:  0

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 192.168.192.43; our IP address is 192.168.192.131

Filename 'uImage'.

Load address: 0x1000000

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

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

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

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

         ###T T T ##############################################################

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

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

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

done

Bytes transferred = 2588058 (277d9a hex)

bfin> protect off 0x20040000 0x203DFFFF

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

Un-Protected 58 sectors

bfin> erase 0x20040000 0x203DFFFF

 

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

Erased 58 sectors

bfin> cp.b $(loadaddr) 0x20040000 $(filesize)

Copy to Flash... Flash not Erased

bfin>

 

I have verifed the switch settings also.

Pls help me to fix the above issue.

 

Regards

Nagaraj

QuoteReplyEditDelete

 

 

2010-02-09 13:31:04     Re: BF527 uImage Flashing issue(Copy to Flash... Flash not Erased)

Mike Frysinger (UNITED STATES)

Message: 85854   

 

so use 'cmp.b' to find out where exactly the image differs (and which sector is not erased).  then look at it with 'md.b' to see if it's garbage or something else.

QuoteReplyEditDelete

 

 

2010-02-09 13:43:21     Re: BF527 uImage Flashing issue(Copy to Flash... Flash not Erased)

nagaraj raj (INDIA)

Message: 85856   

 

cmp.b $(loadaddr) 0x20040000 $(filesize)

byte at 0x011c0000 (0xfd) != byte at 0x20200000 (0xd5)

Total of 1835008 bytes were the same

 

 

I am facing the similar issue as the below forum link

 

http://blackfin.uclinux.org/gf/project/u-boot/forum/?_forum_action=ForumMessageBrowse&thread_id=29925&action=ForumBrowse

QuoteReplyEditDelete

 

 

2010-03-02 06:06:40     Re: BF527 uImage Flashing issue(Copy to Flash... Flash not Erased)

zhang zhihua (CHINA)

Message: 86719   

 

maybe  0x20040000 to 0x203DFFFF is too small,try to erase that:erase 0x20040000 0x203FFFFF

Attachments

    Outcomes