Author: Charles Manning Date: To: yaffs Subject: Re: [Yaffs] mout problem with yaffs
On Monday 01 February 2010 19:51:01 Tung Dang wrote: > Hi all,
>
> I am getting the mount problem with yaffs2, i can successfully mount a Nand
> block device as yaffs2 format, write some files to it, edit, save , review
> and every thing is ok. But the problem comes when i reboot the system or
> unmount/mount again, the whole data that i wrote before was lost. I am
> using the lastest version of yaffs2 from cvs.
> Any one experience with this prolem ? what is wrong with me ?
> Pls advise !
The most likely issue is that the tags are not being written and restored
correctly due to an issue in the mtd.
I suggest two things:
1) Turn on more tracing in both yaffs and mtd to see if this helps. Google
for yaffs tracing to see how to do that.
2) Starting with an erased flash, just write a small file and see what the
nand contents looks like.