mtd: add ability to dump a mtd device
authorJohn Crispin <blogic@openwrt.org>
Tue, 2 Dec 2014 18:27:49 +0000 (18:27 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 2 Dec 2014 18:27:49 +0000 (18:27 +0000)
commita9d0c46233870a315a2da730efca5433344e47f6
tree71234a0e6baa1dfd69d05e891a245730311078f2
parent606804741a49efd0af39b54e9278b792575229a1
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