Re: [Yaffs] yaffs2 block retirement issue

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ross Younger
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: Re: [Yaffs] yaffs2 block retirement issue
* Boaz Ben-David <> wrote:
> My problem is that when I try to write some files (even using "touch")
> it seems yaffs is trying to retire all of the blocks on the partition.


Most problems I've encountered of this nature have been caused by bugs in
the MTD driver(s). The root causes have been things like the MTD driver
misreporting to YAFFS that the write failed, the write actually failing
due to a protocol or timing error, or YAFFS believing there to be an
ECC mismatch somewhere along the line. Particularly check the ECC -
sometimes you have to special-case the check for empty pages (if the
ECC for an erased block - all 0xFF - is not itself all 0xFF).

You may be able to get more of an insight into exactly what has gone
wrong by turning on tracing and working backwards from the exact error
reported.

Ross