Quote:
Originally Posted by prutser60
I notied a libmtd, but this does not seem to be usable for NAND flash.
|
What's your basis for that conclusion?
I've never used libmtd, but that seems to be an illogical conclusion.
Libmtd purports to be for "
manipulating MTD devices". MTD is an abstraction layer for raw flash devices. NAND is a type of raw flash device.
Ergo libmtd should be able to access NAND flash.
A quick scan of source code for
libmtd/mtdlib.c found comments and routines for reading and writing NAND (and even seems to check for bad blocks, e.g. uses MEMGETBADBLOCK ioctl).
Consider using UBI volumes instead of just MTD.
Regards