Skip to contentSkip to conversation

marking a block bad

DISCUSSION Jeff Hane 2 participants 2 messages Feb 5, 2008 – Feb 6, 2008 Memory technology devices (MTD)

lore
Share & tools
lore

Jeff Hane

author
#0 lore raw

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

#1 lore raw
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