Re: [Yaffs] Kernel upgrade 2.6.10 to 2.6.22 causing yaffs co…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ian McDonnell
Date:  
To: yaffs
Subject: Re: [Yaffs] Kernel upgrade 2.6.10 to 2.6.22 causing yaffs corruption
Ben,

On Thursday 11 October 2007 07:25, Ben Dooks wrote:
> I'm working on upgrading a client's kernel from 2.6.10 to
> 2.6.22. They are using yaffs to store their configuration
> data.
>
> When I start the 2.6.22 kernel, I get a number of the
> following: **>> yaffs chunk 32 was not erased
>
> If I run 2.6.10 after writing the files from 2.6.22 I get
> blocks with ECC errors in them, and the files get corrupted.


The problem is with a change to MTD -- MTD's NAND interface had
an overhaul between 2.6.17 and mid-late 2.6.18. MTD's default
layout of oob data in the NAND page's spare area changed. This
means that yaffs' tag metadata gets scrambled when you jump
between versions of MTD. There are ways to fix this, you can
supply MTD with your own layout policy. Rumage through the mail
archive to find some discussion on the topic.
http://aleph1.co.uk/lurker/list/yaffs.en.html

-imcd