Is there any user space tool that can retrieve and dump the list of bad blocks in a NAND flash device? I've checked the
mtdinfo command line utility, and also searched
/sys, but couldn't find anything.
I am looking for something suitable for use from a shell script.
I could parse
dmesg as the kernel prints bad block information on init, but I am hoping there will be a better way.