[Yaffs] RE: Onenand and yaffs [was: Re: bug in drivers/mtd/o…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kyungmin Park
Date:  
To: 'Vitaly Wool'
CC: linux-mtd, yaffs
Subject: [Yaffs] RE: Onenand and yaffs [was: Re: bug in drivers/mtd/onenand/onenand_base.c?]
<-- Warning: charset 'ks_c_5601-1987' is not supported -->


>
> Kyungmin Park wrote:
>
> >I saw your mtd git tree related with yaffs. I tested the
> yaffs on onenand
> >before. But as you know it failed.
> >Now with your patch how many bytes are needed in yaffs if
> ecc provided?
> >
> >
> Not sure if I understood you right here. YAFFS2 generally needs 28 OOB
> bytes, and 16 without ECCOther.


Oh, Good!
16 bytes enough for 2KB page OneNAND. and Maybe we can run 1KB page OneNAND
with minor patch.

Note: It's out of Spec. So it's used for development only.

/**
 * onenand_oob_32 - oob info for middle (1KB) page
 */
static struct nand_ecclayout onenand_oob_32 = {
        .eccbytes       = 10,
        .eccpos         = {
                8, 9, 10, 11, 12,
                24, 25, 26, 27, 28,
                },
#ifdef ONENAND_FOR_YAFFS
        .oobfree        = { {2, 6}, {14, 2}, {18, 6}, {30, 2} }    
#else
        .oobfree        = { {2, 3}, {14, 2}, {18, 3}, {30, 2} }
#endif
};


Thank you,
Kyungmin Park