使用read和write函数操作/dev/mtdX文件时,需要处理nandflash中的坏块吗?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
使用read和write函数操作/dev/mtdX文件时,需要处理nandflash中的坏块吗?
MTD官网上有这么一句
Yes, as long as your program is aware of bad blocks. Make sure to set the desired ECC layout by ioctl (MEMSETOOBSEL). A example for bad block handling and usage of ioctl (MEMOOBSEL) can be found in the nandwrite utility.
Liu Jiang,
请问你使用的是TI的具体哪款芯片?
Liu Jiang,
我认为nand的驱动会处理相关事宜。