Re: [Yaffs] mount and remount issue of YAFFS on intiramfs.

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ricard Wanderlof
Date:  
To: Murali N
CC: yaffs@lists.aleph1.co.uk
Subject: Re: [Yaffs] mount and remount issue of YAFFS on intiramfs.
On Thu, 4 Nov 2010, Murali N wrote:

> Hi,
> I have booted the kernel (.35) using the initramfs (not from the flash).
> As a testing purpose i am trying to mount the YAFFS filesystem onto to
> one of  the MTD partition on the flash.
> MTD partition information is given through kernel command line option
> and also make sure that the partition is erased.
> Initially i mounted the YAFFS filesystem onto above erased MTD
> partition and i am able to see only 'lost+found" directory.
> Later i have copied bunch of files, i am able to see those file
> contents properly before unmount.
> After i umount and mount back the partition. After the remount i am
> not able seen the files which i had copied.
> Also not seen any error messages from either YAFFS or nand driver.
>
> Here i am thinking whether the actual write is happens onto flash or
> not? If it is YES then when i remount i should be able to see the
> contents.
> I have given forcefully 'sync' option from the command prompt even
> that didn't work.
>
> Can anyone please share your thoughts/suggestions on this behavior?


One thing you could do to see if your data is in any way written to the
flash, is to dump the contents of the mtd partition after umounting. If
the partition only contains 0xff then the data has not been written (at
least not where you think it has been written...).

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30