Re: [Yaffs] yaffs2/yaffs compatibility

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: ian@brightstareng.com
Date:  
To: rick
CC: yaffs
Subject: Re: [Yaffs] yaffs2/yaffs compatibility
Rick,

On Thursday 02 August 2007 17:09, Rick Bronson wrote:
>   If I erase a yaffs partition using linux 2.4.19 with yaffs1
> and then put some files on it, those files don't show up when
> I boot into Linux 2.6.22 (using yaffs2).  If I create the
> files under 2.6.22, they show up when I boot either Linux
> 2.4.19 or 2.6.22.  Anyone have any ideas about this problem?


This maybe due to the change in 'pageStatus' byte (old yaffs1
code) now being a (not)deleted bit in current code. If you want
to shift between implementations and continue to use old data
(format) try using the CONFIG_YAFFS_9BYTE_TAGS option in the
current codebase (CVS). This enables a compatibility mode that
formats the tags the 'old way'. You will also have to make sure
MTD is doing it's part too, ECC layout etc., but you probably
have that, else it wouldn't work as you describe. See comments
in moduleconfig.h.

If I'm right, you may find that if you delete the files laid-down
under 2.6 while mounted on your 2.4, you may see them reappear
when you mount again under 2.6 -- I just guessing.

> yaffs2 version:
> yaffs2-ian-20070523.tgz


Please drop us of this version, the features added in this
tarball are now in CVS

-imcd