使用read和write函数操作/dev/mtdX文件时,需要处理nandflash中的坏块吗?
jiang liu4:
MTD官网上有这么一句
Can I use seek/read/write on /dev/mtdX?
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.
Chris Meng:
回复 jiang liu4:
Liu Jiang,
请问你使用的是TI的具体哪款芯片?
jiang liu4:
回复 Chris Meng:
用的DM8147
Chris Meng:
回复 jiang liu4:
Liu Jiang,
我认为nand的驱动会处理相关事宜。