I'm using freescale's iMX353 and the nand is Samsung 2GB MLC 4k page with 218 bytes oob.
I was somehow under the impression that writing to the oob area in MLC nand is problematic and thats why I tried using the inband tags option. Isn't it?
Charles Manning <
manningc2@actrix.gen.nz> wrote:
On Friday 14 January 2011 10:59:03 Ross Younger wrote:
> On 13/01/11 17:35, Boaz Ben-David wrote:
> > Well, thanks for everyone for their support.
> > It turns out that all I had to do is mount the partitions with the -o
> > inband-tags flag for YAFFS2 to work correctly on my NAND.
>
> Good to hear you've got it working. However, inband tags reduce both the
> storage capacity of the NAND[0] and the performance you can achieve[1].
> I would recommend regular - out-of-band - tags if possible.
>
> [0] by the size of the packed tags struct (16 bytes) per page; about
> 0.8% of a device with 2k pages.
>
> [1] in cases where YAFFS wants to read only the tags of a page, inband
> mode has to read in the entire page and throw away all but the last 16
> bytes. This adds up fast when mounting following an unclean shutdown,
> when YAFFS has to scan the entire NAND.
Yes, use out of band tags if you can. Inband tags will generally work even if
the mtd driver's oob handling is broken so you're sidestepping the issue
rather than fixing it.
What NAND and NAND controller are you using?
-- CHarles