[Yaffs-archive] Re: [YAFFS] A question about ECC

Charles Manning manningc2@actrix.gen.nz
Fri, 28 Mar 2003 08:43:11 +1200


Edward

Good to see things are going well for you.

Yes, this is a case of the documentation going stale. The advice you have 
been getting on the list is the most current. I guess it's time the 
documentation got refreshed.

Specific comments below.

On Fri, 28 Mar 2003 06:09, Edward J. Lee wrote:
> Hi Charles, I sent this mail to yaffs@toby-churchill.org, but
> I'm not getting the mail myself so I think there's something going wrong..
>
> -------------------------------------------
> Hi folks, it's been a while. (which means I had everything going just
> fine :) )
>
> Today's question is about ECC.
>
> While I was reading the document 'yaffs rootfs - howto', there was a line
>
> '6) Configure the kernel to include (not modules) all the mtd nand code
> (incl nand_ecc and mtdblock device) and yaffs fs.'
>
> Using the latest MTD code, CONFIG_MTD_NAND_ECC is no longer
> supported in the kernel because it has been merged with CONFIG_MTD_NAND.
> So I don't think nand_ecc needs to be included.(as it is included anyway)
> But the puzzling part is, in the doc 'yaffs-notes', it says
>
> 'ECC is normally used with NAND to correct for single bit errors. YAFFS
> applies the ECC itself, so the MTD should not do this.'

yaffs-notes was written before YAFFS was generally released and before the 
NAND mtd layer was YAFFS-aware. YAFFS first had to prove itself before mtd 
started to do specific YAFFS support. 
>
> Now my question gets quite clear... what should I do?
> One part of the doc says 'do', while another part says 'don't'.
> I think a lot of people might get confused like me. The doc should be
> revised a little bit, I guess.
> (If I knew better, I'd love to help, but I'm just an ordinary guy :'( )


We're all just ordinary people. It you write some notes, people will benefit. 
Often the most useful HowTo notes to be found on the web are those written by 
a person who had a bit of a struggle to get there, rather than by the person 
that wrote the code.

-- 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.