2008-01-22 11:50:49     Error on copying u-boot to flash

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

2008-01-22 11:50:49     Error on copying u-boot to flash

Joao Paulo Bodanese (BRAZIL)

Message: 49958    Hi,

 

I'm trying to copy a new u-boot to flash but i'm getting errors.

 

my steps:

 

first i load the u-boot.ldr via UART following the directions on: http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading#ldr-utils

 

then

 

bf537> tftp 0x1000000 uboot.bin

Using BF537 ETHERNET device

TFTP from server 192.168.61.55; our IP address is 192.168.110.27

Filename 'uboot.bin'.

Load address: 0x1000000

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

done

Bytes transferred = 128032 (1f420 hex)

 

bf537> protect off all

Un-Protect Flash Bank # 1

 

bf537> erase all

Erase Flash Bank # 1

 

bf537> cp.b 0x1000000 0x20000000 $(filesize)

Copy to Flash... Flash not erased at offset 0x4000 Please erase to reprogram

done

 

Look the error above.

 

SW6 is all on.

 

bf537> version

U-Boot 1.1.6-svn754 (ADI-2007R1) (May 24 2007 - 15:03:05)

 

I use STAMP 537.

 

Thanks,

João Paulo

QuoteReplyEditDelete

 

 

2008-01-22 17:24:56     Re: Error on copying u-boot to flash

Mike Frysinger (UNITED STATES)

Message: 49969    it didnt actually erase ... it failed early

 

make sure the flash is detected by running `flinfo` and then only erase the first few sectors by hand

 

the document does not suggest to use "erase all" as that'll erase the MAC address that is programmed into the last sector

QuoteReplyEditDelete

 

 

2008-02-04 19:03:46     Re: Error on copying u-boot to flash

Frank Van Hooft (CANADA)

Message: 50658    Actually, the wiki specifically says to do an "erase all":

 

bfin> protect off all

bfin> erase all

 

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:upgrading#erasing_the_flash

 

If the wiki is wrong, is it possible to correct it? I'll bet a lot of people (including me) have been doing this.

 

Thanks!

QuoteReplyEditDelete

 

 

2008-02-04 23:33:52     Re: Error on copying u-boot to flash

Mike Frysinger (UNITED STATES)

Message: 50663    thanks, things should be updated now

QuoteReplyEditDelete

 

 

2008-02-05 10:10:22     Re: Error on copying u-boot to flash

Robin Getz (UNITED STATES)

Message: 50696    The wiki is correct - sort of - there was some problems on early, early, early versions of U-Boot, if you tried erasing by sector, it would erase U-Boot, and then crash - leaving your U-Boot a brick - the only way to recover was JTAG.

 

The instructions were left this way, since I don't know if the reader is using a U-Boot with one of these problems.

 

-Robin

Attachments

    Outcomes