doc/dumping: Add info about naddump
This commit is contained in:
1 parent
1eef797e29
commit
3e17c94722
1 file changed
+18
-2
+18
-2
@@ -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 //
|
||||
|
||||
|
||||
Reference in new issue
Block a user