* Re: nanddump Rev.1.1.1.1 syntax
[not found] ` <2131523289.160432.1512130231803@mail.yahoo.com>
@ 2017-12-01 18:33 ` Boris Brezillon
0 siblings, 0 replies; only message in thread
From: Boris Brezillon @ 2017-12-01 18:33 UTC (permalink / raw)
To: A.W.C.; +Cc: linux-mtd@lists.infradead.org, miquel.raynal, David Oberhollenzer
+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@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-01 18:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2131523289.160432.1512130231803.ref@mail.yahoo.com>
[not found] ` <2131523289.160432.1512130231803@mail.yahoo.com>
2017-12-01 18:33 ` nanddump Rev.1.1.1.1 syntax Boris Brezillon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).