2009-06-29 22:22:40     U-Boot problems with CM-BF537e

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

2009-06-29 22:22:40     U-Boot problems with CM-BF537e

Barrett Dillow (UNITED STATES)

Message: 76484   

 

Hello,

 

I recently acquired several BlueTechnix CM-BF537E chips for a robotics project. One module had u-boot already installed on it, the others had Blacksheep. We intend to use uCLinux, so I followed the instructions to load Das U-Boot on it for the first time. I booted via UART (mode 7 on Eval-BF5xx )and loaded a .ldr file from 2008R1.5 (u-boot-cm-bf537e-uart-2008R1.5.ldr to be exact). While running from that, I pulled u-boot-cm-bf537e-bypass-2008R1.5.bin over via tftp and pushed it into flash with the following commands (where $SIZE is the hex-valued size of the file as reported by tftp):

 

 

 

> tftp 500000 u-boot-cm-bf537e-bypass-2008R1.5.bin

 

> protect off all

 

> erase 1:0-1

 

> cp.b 500000 20000000 $SIZE+1

 

I can reset the board, and U-Boot came up fine, but without an OS to load at this point.

 

Again using tftp,  I pulled over a working uImage file that has been tested on an earlier U-Boot (U-Boot-1.1.3-ADI-R06R2 (Feb 15 2007 - 09:16:20), what that prints out on boot is added below). 'iminfo' reports a clean image with a good checksum, but when trying to test it from RAM it fails while inflating.

 

Having no luck with the old 2008R1.5 image, I got the latest SVN version, 2009.06-svn1952. I have similar problems.

 

Here's my procedure and it's output with the latest svn version (my u-boot prompt is "LPU_bfin >") :

 

Created U-Boot with:

 

$ make cm-bf537e_config

 

$ make

 

Loaded U-Boot via tftp method, flashed to 0x20000000 successfully, then:

 

LPU_bfin > tftp 500000 uImage

Using Blackfin EMAC device

TFTP from server 128.8.143.178; our IP address is 128.8.143.179

Filename 'uImage'.

Load address: 0x500000

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

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

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

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

done

Bytes transferred = 3794839 (39e797 hex)

LPU_bfin > flinfo

 

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

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

  Erase timeout: 4096 ms, write timeout: 1 ms

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

 

  Sector Start Addresses:

  20000000   RO   20020000   RO   20040000        20060000        20080000    

  200A0000        200C0000        200E0000        20100000        20120000    

  20140000        20160000        20180000        201A0000        201C0000    

  201E0000        20200000   RO   20220000   RO   20240000        20260000    

  20280000        202A0000        202C0000        202E0000        20300000    

  20320000        20340000        20360000        20380000        203A0000    

  203C0000        203E0000    

LPU_bfin > protect off 20200000 2023ffff

.. done

Un-Protected 2 sectors

LPU_bfin > iminfo 500000

 

## Checking Image at 00500000 ...

   Legacy image found

   Image Name:   uClinux Kernel and ext2

   Created:      2009-06-26  18:40:19 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3794775 Bytes =  3.6 MB

   Load Address: 00001000

   Entry Point:  001aa000

   Verifying Checksum ... OK

LPU_bfin > version

 

U-Boot 2009.06-svn1952 (ADI-2009R2-pre) (Jun 29 2009 - 21:19:05)

LPU_bfin > bootm 500000

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

   Image Name:   uClinux Kernel and ext2

   Created:      2009-06-26  18:40:19 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3794775 Bytes =  3.6 MB

   Load Address: 00001000

   Entry Point:  001aa000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... Error: inflate() returned 0

GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover

 

 

---------------------------------------------------------------

 

Output of working version (I hit a key to stop it from booting normally and get the U-Boot prompt):

 

 

 

U-Boot-1.1.3-ADI-R06R2 (Feb 15 2007 - 09:16:20)

 

CPU:   ADSP BF537 Rev.: 0.2

Board: Bluetechnix CM-BF537 board

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

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

SDRAM: 32 MB

Device ID of the Flash is 890016

Memory Map for the Flash

0x20000000 - 0x20400000 Single Flash Chip

Please type command flinfo for information on Sectors

FLASH:   4 MB

In:    serial

Out:   serial

Err:   serial

Net:    ADI BF537 EMAC

Hit any key to stop autoboot:  0

CM-BF537E>

-----------------------------------------------------------------------------------------------------------

 

I also found it weird that U-Boot now puts write-protection on sectors starting at 0x20200000 and 0x20220000. The previous versions did not.

 

Did I miss something in the changelogs regarding uImages? memory maps? Is the tftp transfer method no longer supported?

 

Thanks in advance, any help would be greatly appreciated.

 

-Barrett

QuoteReplyEditDelete

 

 

2009-06-29 22:30:37     Re: U-Boot problems with CM-BF537e

Mike Frysinger (UNITED STATES)

Message: 76485   

 

the error seems pretty self explanatory to me:

GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover

 

load the kernel at a higher address -- one that wont be in the range when it gets decompressed.  this is why we default all of our boards to load to 16meg.

Attachments

    Outcomes