[Yaffs] [Yaffs-archive] Re: bad block problem

Charles Manning manningc2@actrix.gen.nz
Tue, 20 Apr 2004 10:34:49 +1200


On Friday 16 April 2004 16:51, Skumar wrote:
> Hi,
> i want to know on what condition will yaffs mark a block bad?
> my assumption is when it does a page read & compares the ecc calculated &
> the ecc stored in oob
> and if it does not match  it marks the blcok bad. is this correct
>
> will yaffs do write verify(ie will it read back the page after write and
> check for ecc)?

There are two ways that yaffs will mark a block bad:

1). Write fails or write verify fails
After a write, the data is verified with out using ECC (ie. it muust be 
written perfectly). If this fails, then the block will be retired.
2) If an ECC failure occurs on readback then the block is deemed to be 
unreliable and is marked for retirement.

Retirement means that when the block gets garbage collected, instead of 
reusing the block it is marked bad and is not reused.

-- Charles

---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by 
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe" 
(without the quotes) as the subject.