open firmware question

Ivan Krstić krstic at solarsail.hcs.harvard.edu
Fri Jan 4 17:20:33 EST 2008


On Jan 2, 2008, at 10:13 PM, Ricardo Carrano wrote:
> How do I do the opposite of copy-nand - copy the OS image _from_ the  
> nand into a USB key?

If you don't have OFW access or it isn't convenient to have to reboot,  
you can use my 45-second Python hack:  <http://dev.laptop.org/~krstic/dumpnand.py 
 >

# modprobe mtdchar
# python dumpnand.py < /dev/mtd0 > /your/USBKEY/nand-image.bin

In a pinch, you can pipe the output through netcat to upload it  
somewhere directly.

--
Ivan Krstić <krstic at solarsail.hcs.harvard.edu> | http://radian.org




More information about the Devel mailing list