[PATCH] [MTD-UTILS] nandwrite: read from stdin support

Grant Erickson gerickson at nuovations.com
Tue Sep 2 12:21:37 EDT 2008

On 9/2/08 2:04 AM, Tommi Airikka wrote:
> Here is a patch that adds read from stdin support for nandwrite.
> I have tried it with 'cat filename.jffs2 | nandwrite -i filesize -p
> /dev/mtdX -'  and it did work.


Thank you for this patch. Your timing is perfect since I had written about
precisely this feature a little over a week ago:


If I can get my nanddump deblocking patch completed, the following should
work as a use case:

    flash_eraseall -q <device-out>
    nanddump -o -b -s <offset> -l <size> <device-in> | nandwrite -q -p -s
<offset> <device-out>



More information about the linux-mtd mailing list