• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Bit copy of flash partitions  (Read 2128 times)
crunch
Newbie
*

Karma: 0
Posts: 28


View Profile
« on: February 18, 2011, 09:03:31 AM »

Hi, I am interested in rebuilding my plug with a bit-for-bit copy of the /dev/mtd partitions. I've read up here at the forums, and here's what I've learned so far:

* nanddump is a good utility to copy the partitions to a USB drive.
* format the USB drive with a FAT16 filesystem so that the Marvell shell can see it
* hook up JTAG and halt before boot
* In the Marvell shell, type usb start, which detects the USB drive

I'm almost ready to blast the files on with:

fatload usb 0 0x800000 /myimage
nand erase clean 0x00100000 0x00400000
nand write.e 0x800000 0x100000 0x300000
boot

Is there anything I am missing here? Thanks.
Logged

radael
Jr. Member
**

Karma: 1
Posts: 57


View Profile
« Reply #1 on: February 18, 2011, 12:18:37 PM »

Check that the "0x300000" address is not an error remaining from earlier times.

Most of the kernels now use 0x400000 (4MB) of memory, and the starting address of the file system will then be 0x500000.

So, the write line would be:

   nand write.e 0x800000  0x100000  0x400000


http://plugcomputer.org/plugwiki/index.php/Addresses_%280x0%29
Logged

crunch
Newbie
*

Karma: 0
Posts: 28


View Profile
« Reply #2 on: February 23, 2011, 12:31:58 AM »

That's perfect advice, thank you. Looks like I might've had the offsets from a Sheevaplug, so I would've ended up with a brick. I will try the flash tomorrow and update this post. 
Logged

crunch
Newbie
*

Karma: 0
Posts: 28


View Profile
« Reply #3 on: March 10, 2011, 04:23:46 PM »

Well I seem to have bricked my device. My guess is that the file I created using nanddump from /dev/mtd1 cannot be written directly to flash using nand write.e. Anyway I went and got myself a uImage and wrote that to flash, however booting halts after uncompressing the kernel. I'm guessing I need to build an initrd? Or perhaps just blow away the whole device using the ESIA installer?

Thanks
Logged

hanker
Newbie
*

Karma: 1
Posts: 20


View Profile
« Reply #4 on: March 11, 2011, 05:51:34 AM »

Or perhaps just blow away the whole device using the ESIA installer?

Thanks

ESIA always worked well for me back when I was originally setting my Sheevaplug up.

Logged

Pages: [1]
Print
Jump to: