A fixed u-boot, with instructions

For those who want the result without wading through my rants, here it is.

Requirements:

  • An ED Mini V2 with a Macronix MX29LV400CBCT FLASH part;
  • A serial console hooked up on the ED Mini V2;
  • A machine to act as a TFTP server.

BEWARE!

Do not try this on anything else than an ED Mini V2 with a Macronix MX29LV400CBCT FLASH part.

Do not try this if you don't want to take the risk of rendering your ED Mini TOTALLY AND DEFINITIVELY UNUSABLE. Should the ED Mini become unuseable, you might be able to raise it from the dead by using JTAG equipment, but I cannot vouch for it, because I did not try JTAG.

Instructions:

  1. Download both u-boot-RAM.bin and u-boot-FLASH.bin.
  2. Power up the ED Mini V2 with the console attached, and press a key to get to the u-boot command prompt.
  3. Enter the following commands:
    • setenv serverip ip address of the TFTP server
    • setenv ipaddr ip address of the ED Mini V2
    • tftp 400000 u-boot-RAM.bin
    • go 410000
  4. The RAM-based u-boot starts. Press a key to stop it and get to its command line
  5. Enter the following commands:
    • setenv serverip ip address of the TFTP server
    • setenv ipaddr ip address of the ED Mini V2
    • tftp 500000 u-boot-FLASH.bin
  6. After the TFTP transfer is done, the length of the image is given, in decimal then between parentheses in hexadecimal. Note the hexadecimal length, you'll need it.
  7. Enter the following commands:
    • protect off all
    • erase all
    • cp.b 500000 fff80000 length
  8. Hold your breath, and enter the following command:
    • reset
  9. Relax and enjoy your newly flashed u-boot or weep.

2008-jun-13: inserted the 'erase all' command, which was missing previously; thanks to petris at nas-central.org for pointing it out!

AttachmentSize
u-boot-RAM.bin448.13 KB
u-boot-FLASH.bin448.13 KB