bug in drivers/mtd/onenand/onenand_base.c?
Hi Vitaly Wool,
Sorry, I'm not office so I can't access my computer. To help your work I send the URL related this problem. This problem is reported previous time but not commit it.
Please check this mail. It would help your work.
http://linux.omap.com/pipermail/linux-omap-open-source/2007-March/009395.htm
l
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? Maybe we need to modify onenand read & write function to support read/write with oob simultaneously.
Currently it only supports separated read or oob function only, instead of both.
If the yaffs requires less or equal with 20 bytes, it will work with OneNAND. Of course, if the page is 1KB, it can't. Since it has only 10 bytes OOB.
I hope yaffs can run with OneNAND.
Thank you,
Kyungmin Park
A message that is not in the archive (sent off-list or not yet received): [email protected]
RE: Onenand and yaffs [was: Re: bug in drivers/mtd/onenand/onenand_base.c?]
Quoted 5 lines
Quoted 1 line · Kyungmin Park
I saw your mtd git tree related with yaffs. I tested the
Quoted 8 lines
yaffs on onenand
Quoted 2 lines
before. But as you know it failed.
Now with your patch how many bytes are needed in yaffs ifecc provided?
Quoted 2 lines
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