From 3e17c947227210021f598cc3aae82be68a0c0697 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Fri, 1 Feb 2013 13:41:53 +0100 Subject: doc/dumping: Add info about naddump --- doc/dumping | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'doc') 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 // -- cgit v1.2.3