2009-08-23 05:47:29     Flashing Linux Kernel to TCM-BF537 Parallel flash

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

2009-08-23 05:47:29     Flashing Linux Kernel to TCM-BF537 Parallel flash

Jeppe Ledet-Pedersen (DENMARK)

Message: 79143   

 

Hi

 

I'm trying to flash the linux kernel to my TCM-BF537 from Bluetechnix. I have successfully compiled and flashed u-boot 2009.03-svn1998 from svn to the board, first with UART boot and then bypass mode. I have checked out and compiled the uclinux-dist 2009R1 from svn without errors, but I'm having trouble flashing the uImage kernel to the board. The uImage successfully boots when using tftp and booting from RAM.

 

I have tried following the guide at http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash - but the cmp.b commands fails at the first byte comparison.

 

I suspect that the problem is that my uImage is 2.2 MB, which is larger than the size of the flash banks. Is the special GPIO addressing used by the TCM-BF537 supported by u-boot, or do I manually have to switch banks and copy chunks of the uImage? Any help is appreciated.

 

Thank you in advance

 

/Jeppe

QuoteReplyEditDelete

 

 

2009-08-23 06:04:59     Re: Flashing Linux Kernel to TCM-BF537 Parallel flash

Mike Frysinger (UNITED STATES)

Message: 79144   

 

why are you using 2009.03 ?  you should be using either the 2009R1 code or the latest svn trunk (which means 2009.06).

 

you cant directly read the flash if it crosses the GPIO boundary because reading doesnt wiggle the GPIO pins.  use the flread command to load the uImage out of flash and into memory and then bootm it there.

QuoteReplyEditDelete

 

 

2009-08-23 06:40:37     Re: Flashing Linux Kernel to TCM-BF537 Parallel flash

Jeppe Ledet-Pedersen (DENMARK)

Message: 79145   

 

Hi Mike

 

Thanks for your fast reply. I couldn't get u-boot 2009.06 to generate a .ldr file for the UART boot, so I used 03 instead. I had misconfigured it for bypass mode instead of UART. I'm using 2009.06-svn1998 now which boots fine and has the flread command.

 

using flread to copy the uImage from flash to ram and then booting with bootm 0x1000000 works fine:

 

setenv flashboot 'flread 0x20100000 0x1000000 23485e ; bootm 0x1000000'

 

I wish the documentation from Bluetechnix had mentioned this...

 

Thank you

 

/Jeppe

Attachments

    Outcomes