Welcome,
Guest
. Please
login
or
register
.
May 22, 2013, 08:50:56 AM
The Plug Computer Forum
|
Hardware and U-Boot firmware
|
U-Boot stuff
|
Bit copy of flash partitions
Pages: [
1
]
« previous
next »
Print
Author
Topic: Bit copy of flash partitions (Read 1743 times)
crunch
Newbie
Karma: 0
Posts: 28
Bit copy of flash partitions
«
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
Re: Bit copy of flash partitions
«
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
Re: Bit copy of flash partitions
«
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
Re: Bit copy of flash partitions
«
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
Re: Bit copy of flash partitions
«
Reply #4 on:
March 11, 2011, 05:51:34 AM »
Quote from: crunch on March 10, 2011, 04:23:46 PM
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Application ideas and development Q/A
=> Success stories
=> Marvell PlugIN - Free Your Imagination
-----------------------------
Hardware and U-Boot firmware
-----------------------------
=> Hardware
=> U-Boot stuff
-----------------------------
Linux Stuff
-----------------------------
=> Android for SheevaPlug is Available!
=> General Linux questions
=> Kernel
=> Linux distributions
Loading...