AT91RM9200-EK U-Boot from Dataflash

We currently have no way to reproduce the steps needed to boot the AT91RM9200-EK from Dataflash. There is an image, at91rm9200_recovery.bin, attached to this page that we were able to pull from a Dataflash card that will load U-Boot from dataflash. This is a good way to recover a bricked board.

This image needs to find its way onto the first block of the Dataflash card. Good practice dictates that you should create this image when you have a working U-Boot on the board already, and just use the U-Boot commands to flash it. Otherwise, you can use another working board (any AT91 board with dataflash support should be sufficient), or in the worst case, use a JTAG debugger.

Creating a Recovery Card from U-Boot

  1. Boot AT91RM9200-EK up to U-Boot prompt.
  2. Using TFTP, upload the recovery image to RAM:
    U-Boot> tftp 0x21400000 at91rm9200_recovery.bin
    TFTP from server 10.10.0.4; our IP address is 10.10.0.15                       
    Filename 'at91rm9200_recovery.bin'.                               
    Load address: 0x21400000                                                       
    Loading: #################################################################     
             #################################################################     
             #################################################################     
             #################################################################     
             #################################################################     
             #################################################################     
             ####################                                                  
    done                                                                           
    Bytes transferred = 2097152 (200000 hex)
    
  3. Unprotect the Dataflash sectors:
    U-Boot> protect off c0000000 c083ffff                                          
    Un-Protect 4 DataFlash Sectors
    
  4. Copy the image to dataflash:
    U-Boot> cp.b 21400000 c0000000 200000                                          
    Copy to DataFlash... done  
    

Running the recovery image

  1. Put jumper J15 on pins 1-2.
  2. Put dataflash card in slot J200 on the bottom of the board.
  3. Reset the board.