summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/dumping20
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/dumping b/doc/dumping
index bbddc89..add0002 100644
--- a/doc/dumping
+++ b/doc/dumping
@@ -20,13 +20,29 @@ Technical details:
mtd2 - starts with NOLO img\x5c\x13 and \x00 padding
0x00800 - zImage
- > NOLO is a four byte marker, next four bytes
- > can vary since it is kernel image size
+ > NOLO is a four byte marker, next four bytes
+ > can vary since it is kernel image size
mtd3 - initfs.jffs2 (2M) aka 0x200000 vs 0x3900000
mtd4 - rootfs.jffs2 (a fucking copy of the above rootfs?)
+For dumping mtd parition is used tool nanddump. Here is example how to dump
+kernel image without padding to file zImage:
+
+ $ nanddump -i -o -b -s 0x00000800 -l 0x001FF800 -f zImage /dev/mtd2
+
+Params means:
+-i - "Ignore errors"
+-o - "Omit oob data"
+-b - "Omit bad blocks"
+-s - "Start address"
+-l - "Length"
+-f - "Output file"
+
+Please note that some new versions of naddump have some options removed and
+some are enabled by default. Before using check params of your nanddump version.
+
// Extra notes //