marking a block bad
Hello,
I am using yaffs for my root filesystem and I am getting some ECC
errors for reads and writes. What I'm trying to understand is what determines if a block has gone bad when the block is marked bad. I see the way to mark a block bad in the mtd code but not clear on when this will be used.
Of course this leads to another problem, if a block is marked bad and
the system is rebooted the data that was in that block would become unaccessible(assume the system can reboot). In this case, is there something that can be done, by the filesystem or other methods, to try to re-locate the data before reboot or rebuilding the bbt?
thanks,
jeff
Quoted 10 lines · Jeff Hane
I am using yaffs for my root filesystem and I am getting some ECC errors for reads and writes. What I'm trying to understand is what determines if a block has gone bad when the block is marked bad. I see the way to mark a block bad in the mtd code but not clear on when this will be used.
Of course this leads to another problem, if a block is marked bad and the system is rebooted the data that was in that block would become unaccessible(assume the system can reboot). In this case, is there something that can be done, by the filesystem or other methods, to try to re-locate the data before reboot or rebuilding the bbt?
People around here tend to know about mtd and jffs2, yaffs is a different matter.
/Ricard
--
Ricard Wolf Wanderlöf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30