Re: [Yaffs] Cant see files in YAFFS2 except lost+found

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
CC: Shiva Shankar
Subject: Re: [Yaffs] Cant see files in YAFFS2 except lost+found
On Thursday 21 December 2006 09:38, Shiva Shankar wrote:
> Hi All,
>
> I am working on kernel 2.6.14.3. I could successfully include the YAFFS
> in to my kernel.
>
> I created a yaffs2.img file using the command
>
> "mkyaffs2image /my_dir yaffs2.img"
>
> after this I erased the flash using
> "flash_eraseall /dev/mtd1"
>
> After this I used nand write to write the yaffs2.img to /dev/mtd1
>
> nandwrite -a -p /dev/mtd1 /yaffs2.img
>
> after this I mount the flash partition
>
> mount -t yaffs2 /dev/mtdblock1 /mnt1
>
> and do a 'ls'
>
> ls /mnt1
> to see only lost+found
>
> I then create a file using vi and edit the file
>
> I do an "ls" i can see the file and its contents. I "umount" the
> partition and mount again I again see only lost + found
>
> If I do a nanddump I can see the contents of all the files that I had
> written!!!
>
> Can anyone give me some pointers I have reached a dead end.


the mkyaffsimage process does not work correctly at presents for yaffs2. This
is mainly due to the hassles trying to get the oob data to flow correctly
through the process.

I suggest you first try get going starting from an empty partition.

-- Charles