nanddump Rev.1.1.1.1 syntax
Boris Brezillon
boris.brezillon at free-electrons.com
Fri Dec 1 10:33:02 PST 2017
+MTD ML
+David (the mtd-utils maintainer)
-GKH, Alexandre
Hello,
Please try to send your questions to the relevant mailing list, people
next time.
On Fri, 1 Dec 2017 12:10:31 +0000 (UTC)
"A.W.C." <bluestream at ymail.com> wrote:
> What is correct syntax of a nanddump command?
>
> nanddump Revision: 1.1.1.1
>
> Usage: nanddump [OPTIONS] MTD-device
> Dumps the contents of a nand mtd partition.
>
> --help display this help and exit
> --version output version information and exit
> -f file --file=file dump to file
> -i --ignoreerrors ignore errors
> -l length --length=length length
> -n --noecc read without error correction
> -o --omitoob omit oob data
> -b --omitbad omit bad blocks from the dump
> -p --prettyprint print nice (hexdump)
> -s addr --startaddress=addr start address
>
>
> Does nanddump command support only MTD-device name as argument? ( /dev/mtdx )
> For example, MTD partitions specified with starting and ending offsets of NAND partition:
>
> 0x01b60000-0x01d60000 : "HS_FW"
>
> I tried commands
>
> nanddump -o -b -f /tmp/hsfw.bin -s 0x01b60000 -l 0x00080000
>
> nanddump /dev/mtd9 /tmp/hsfw.bin
>
> but in both cased the output is help / usage info.
>
> Also, are the -o and -b arguments already default?(included in nandump code)
>
>
> The example of command will be very helpful.
Well, if you read the help context carefully, you'll see that all your
attempts are wrong. And even if you don't understand the doc, googling
for nanddump would have lead you to [1] which has a working example.
So, the correct command is:
# nanddump -f /tmp/hsfw.bin -s 0x01b60000 -l 0x00080000 /dev/mtd9
But please, try to search a bit before sending an email next time!
Regards,
Boris
[1]http://processors.wiki.ti.com/index.php/Mtdutils
More information about the linux-mtd
mailing list