NSLU2-Linux
view · edit · print · history

This page describes how to revert to RedBoot bootloader if you have flashed Apex to flash.
Beware that if you make a mistake you could corrupt your bootloader, requiring JTAG hardware to fix it.

  1. Serial Console

    If you have APEX installed, then you probably already have a serial console.
  2. Boot up to the APEX command line by hitting ctrl-c
  3. Use an original Linksys image file or an official SlugOSBE (aka OpenSlug) image file for flashing.
    Be sure to get a local copy to avoid transfer problem
  4. Transfer over the image using the serial console

    xreceive 0x1000000

    Send over the flash image from your terminal using xmodem protocol. This will take around 17 minutes to transfer over the 8M image. Please be sure that at the end of the process APEX tells you that 8388608 bytes were transfered.
    Edit the image by adding the unit's MAC address (printed on the bottom) at offset 0x03ffb0 of the image. It should occupy 6 bytes. An alternative is 'copy nor:0x03ffb0+0x06 mem:0x103ffb0'. It is very important that the MAC address in the image is correct.
    If you wish to copy the existing SysConf info (mtdblock1) into the image, the command would be 'copy nor:0x040000+0x20000 mem:0x1040000' This assumes you loaded the image starting at 0x1000000 as described above.

    # Erase flash

    erase nor:0x00+0x800000
  5. Copy RAM content to flash (don't unplug the power and cross your fingers)

    copy 0x1000000+0x800000 nor:0x00000
  6. Reset the device

    reset

    Now, it should have RedBoot running and your slug booting like before. If not, take your JTAG interface and reflash your slug properly !
view · edit · print · history · Last edited by fcarolo.
Based on work by sdm485 and mathieu_xwave.
Originally by mathieu_xwave.
Page last modified on January 08, 2008, at 12:33 PM