mtd: add ability to dump a mtd device
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 2 Dec 2014 18:27:49 +0000 (18:27 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 2 Dec 2014 18:27:49 +0000 (18:27 +0000)
commit768533a381e45015115255d67b03ada52f602106
tree71234a0e6baa1dfd69d05e891a245730311078f2
parentaaade2958287d1ec02bc0f08b035ac01171383c8
mtd: add ability to dump a mtd device

this can be used on nand flashes and will skip bad blocks and run ecc on the
read data before dumping it.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43500 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/system/mtd/src/mtd.c