Patches to nanddump.c
Tim Gardner
timg at tpi.com
Mon Oct 6 13:32:47 EDT 2003
Since the patch is nearly as large as the file, I've just attached the file
itself. The default options are sane in that it prints an ASCII dump of the
specified partition to stdout. Usage output is:
[root at ppc /]$ nanddump -h
usage: nanddump
-p MTD_PARTITION - MTD partition to dump from, e,g, /dev/mtd0
[-o DUMP_FILE] - file to dump to, default is stdout
[-a ADDR] - starting offset within the MTD partition, default 0
[-l LENGTH] - Number of bytes to dump, default is size of partition
[-n] - Omit OOB information in dump.
[-b] - binary dump of data. Default is ASCII hex
[-v] - verbose output.
[-h] - Print this help message.
On Monday 06 October 2003 07:15, David Woodhouse wrote:
> On Mon, 2003-10-06 at 07:13 -0600, Tim Gardner wrote:
> > Using getopt will break command line option backward compatibility, which
> > is fine with me because it would clean up some parsing code. Any
> > objections?
>
> Nope. It's mostly a debugging tool anyway.
--
Tim Gardner - timg at tpi.com 406-443-5357
TriplePoint, Inc. - http://www.tpi.com
PGP: http://www.tpi.com/PGP/Tim.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nanddump.c
Type: text/x-csrc
Size: 5859 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20031006/33160f1d/attachment.bin
More information about the linux-mtd
mailing list