Checks the status of NAND flash chips using the Linux MTD interface
Just point it at the MTD device node:
nand_check /dev/mtdN
For each NAND eraseblock, nand_check prints
B Bad block
. Empty
- Partially filled
= Full, no summary node
S Full, summary node
When cross-compiling, set CC to point to your cross compiler, for example:
make CC=arm-linux-gnueabihf-gcc
You may want to take a look at my blog on Reducing JFFS2 mount time