2011-06-23 11:47:09     u-boot appears to flash banks incorrectly

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

2011-06-23 11:47:09     u-boot appears to flash banks incorrectly

Timothy Stotts (UNITED STATES)

Message: 101619   


I am attempting to use the u-boot+uImage.bin binary from BlueTechnix on the CM-BF537E module to demonstrate a working system before attempting to create my own custom u-boot+uImage binary.


I followed the uClinux documentation on booting a u-boot image from UART, transferring over TFTP the flash image to 0x1000000 address, programming the flash at address 0x20000000, changing the boot mode of the processor to '000'. The crc of the file transferred over TFTP matches on board and the host computer. I am unable to get a valid crc or cmp.b between the RAM and the Flash. If fails on comparing the first byte.


When reset, the board boots u-boot from flash (which did not originally exist on the board), but u-boot is unable to load the linux kernel due to a bad CRC. The u-boot+uImage.bin binary is less than the addressable 4 MiB of Flash; but it does span across two banks and I suspect that the flash chip is different than originally released with the CM-BF537E, causing a flash bank selection error.




U-Boot 2010.09-00000-g01abf2a (ADI-2011R1-pre) (Nov 08 2010 - 16:01:19)


CPU:   ADSP bf537-0.2 (Detected Rev: 0.3) (bypass boot)

Board: Bluetechnix CM-BF537E board

       Support: http://www.bluetechnix.at/

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

RAM:   32 MiB

Flash: ERROR: too many flash sectors

16 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Warning: Generating 'random' MAC address

Net:   smc911x: Invalid chip endian 0x00500000


Hit any key to stop autoboot:  0


## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf537-

   Created:      2010-11-08  15:21:13 UTC

   Image Type:   Blackfin Linux Kernel Image (lzma compressed)

   Data Size:    3157357 Bytes = 3 MiB

   Load Address: 00001000

   Entry Point:  001f86f0

   Verifying Checksum ... Bad Data CRC

ERROR: can't get kernel image!



bfin> flinfo


Bank # 1: CFI conformant FLASH (16 x 16)  Size: 16 MB in 35 Sectors

  Intel Extended command set, Manufacturer ID: 0x89, Device ID: 0x881B

  Erase timeout: 4096 ms, write timeout: 1 ms

  Buffer write timeout: 2 ms, buffer size: 64 bytes


  Sector Start Addresses:

  20000000   RO   20008000   RO   20010000   RO   20018000   RO   20020000   RO

  20040000   RO   20060000   RO   20080000   RO   200A0000   RO   200C0000   RO

  200E0000   RO   20100000   RO   20120000   RO   20140000   RO   20160000   RO

  20180000   RO   201A0000   RO   201C0000   RO   201E0000   RO   20200000   RO

  20220000   RO   20240000   RO   20260000   RO   20280000   RO   202A0000   RO

  202C0000   RO   202E0000   RO   20300000   RO   20320000   RO   20340000   RO

  20360000   RO   20380000   RO   203A0000   RO   203C0000   RO   203E0000   RO





2011-06-23 12:01:01     Re: u-boot appears to flash banks incorrectly

Mike Frysinger (UNITED STATES)

Message: 101621   


this is a u-boot question, not uclinux-dist ... so moving the thread ...


did you use flread to extract the uImage into memory and then boot it there ?