linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: "A.W.C." <bluestream@ymail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	<miquel.raynal@free-electrons.com>,
	David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Subject: Re: nanddump Rev.1.1.1.1 syntax
Date: Fri, 1 Dec 2017 19:33:02 +0100	[thread overview]
Message-ID: <20171201193302.2187783f@bbrezillon> (raw)
In-Reply-To: <2131523289.160432.1512130231803@mail.yahoo.com>

+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

           reply	other threads:[~2017-12-01 18:33 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <2131523289.160432.1512130231803@mail.yahoo.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171201193302.2187783f@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --cc=bluestream@ymail.com \
    --cc=david.oberhollenzer@sigma-star.at \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@free-electrons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).