]> www.infradead.org Git - mtd-utils.git/commit
nandwrite: add --input-{skip,size} options
authorMike Frysinger <vapier@gentoo.org>
Thu, 9 May 2013 00:03:14 +0000 (20:03 -0400)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 1 Jul 2013 06:00:49 +0000 (09:00 +0300)
commite77565ee458a7d6863f8434a97156a66547f2b98
tree4e489b84a56ead1b87ecf33a0d959de53a23869f
parent6d17edd24cfcf3595a7f302d70afcfaebfb45629
nandwrite: add --input-{skip,size} options

If you have a file image and want to copy sub-portions out and into
NAND, there's no easy way to do that.  You can use dd to extract it
to a temp file, or pipe it to nandwrite 1 page at a time.  Both suck.

Add two new flags to explicitly set the size and offset of the input
file.  Seeking stdin isn't currently supported as I'm not sure it's
necessary.  It wouldn't be hard to add though...

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
nandwrite.c