Testing a device using mtd_stresstest
David Peverley
pev at sketchymonkey.com
Thu Feb 10 07:30:33 EST 2011
Hi Andy!
Actually, we're using SW ECC so I'd assumed that we should be free of
this particular issue. It in our configuration MTD is controlling the
OOB area which reserves the first two bytes for BB marking and the
last 24 bytes for ECC. The remaining 38 bytes are in oobfree for YAFFS
to use. As I understand it the yaffs packed tags struct stored there
is 12 bytes so I *think* it's OK?
Cheers,
~Pev
On 7 February 2011 13:56, Andrew Murray <amurray at mpcdata.com> wrote:
> On 7 February 2011 13:44, David Peverley <pev at sketchymonkey.com> wrote:
>>
>> We've also noticed that every so often we see "uncorrectable error:"
>> messages from nand_ecc.c - do you have any suggestions as to where to
>> start investigating here? So far I can't find a pattern to occurrences
>> or a regular way to reproduce.
>
> Are you using hardware ECC?
> We switched from SW ECC to HW ECC and discovered that YAFFS2 was writing
> over the ECC in the OOB. It may be wroth checking for any such overlap of
> OOB use between the kernel-mtd/YAFFS2 and whatever boot loaders you may
> have.
> We worked around this issue by using in-band tags in our YAFFS2 image.
> Thanks,
> Andrew Murray
More information about the linux-mtd
mailing list