The following was my solution to fixing a bad NAND flash, after an upgrade failed halfway through. YMMV but you could at least give it a try.
You’ll get access to the bootloader, and be able to upload a new image via TFTP …
I tried the instructions for recovering a bad flash from this page, but it wasn’t working as it should. I saw no access to my USB key, and having tried several different USB keys I was convinced that wasn’t the problem.
- RS232 to TLL level shifter 3.3V (I used a PL2303 based clone from Ebay costing about $5,- incl. shipping)
Philips #2 screwdriver, hobby knife
- Computer with TFTP server installed, configured at 192.168.1.100
- Decrypted firmware for the unit – see this page for instructions. You should get the files linked here, or try an upgrade to Cloud Edition with the instructions for generating the upgrade file here (the latter page requires you to run a script from your now-dead-ix2, so you can just do this from a Linux machine).
- Prepare a USB key as described on the pages linked above (where you got the decrypted upgrade image from). Basically a FAT32 formatted USB key with the upgrade file placed in /emctools/ix2-200d_images/ix2-boot.tgz
- Place zImage and initrd (from the ix2-boot.tgz file) on your TFTP server.
- Connect the USB key to any port on your ix2
- Connect your TTL level shifter to JP1 – see this page for pinout.
- Connect your ethernet cable from the ix2 to your computer.
At the Marvell>> prompt, do the following:
tftpboot 0x2000000 zImage tftpboot 0x5400000 initrd nand write.e 0x2000000 0x100000 0x300000 nand write.e 0x5400000 0x540000 0x300000
That will load the kernel and initrd into memory, and write them to the NAND of the ix2. Now you can either powercycle the unit, or just issue
As I had totally clean drives in my unit the upgrade/wipe happened automatically, just wait 5-10 minutes. Also you can connect to your DHCP enabled network and access the unit (when the procedure completes).
Also you can take a look at Nigels page here, if you want to tinker more and install a full Debian on the unit.