Hi,

             I am using arm cortex A9 board with 256MB NAND device ( 2KB page size and 128K erase size)
             In barebox I have created a NAND partition of size 2MB

             I have compiled kernel 3.2.54 with yaffs2 support and NAND ECC used is BCH 8 bit.
             Below are the YAFFS2 config

            CONFIG_YAFFS_FS=y
            CONFIG_YAFFS_YAFFS1=y
            # CONFIG_YAFFS_9BYTE_TAGS is not set
            # CONFIG_YAFFS_DOES_ECC is not set
            CONFIG_YAFFS_YAFFS2=y    
            CONFIG_YAFFS_AUTO_YAFFS2=y
            # CONFIG_YAFFS_DISABLE_TAGS_ECC is not set
            # CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set
            # CONFIG_YAFFS_EMPTY_LOST_AND_FOUND is not set
            # CONFIG_YAFFS_DISABLE_BLOCK_REFRESHING is not set
            # CONFIG_YAFFS_DISABLE_BACKGROUND is not set
            # CONFIG_YAFFS_DISABLE_BAD_BLOCK_MARKING is not set
            CONFIG_YAFFS_XATTR=y


           I have followed the below steps

            1.       On host machine I have created yaffs2 files with the  command as shown below
 
                                mkyaffs2image   ./dir_yaffs2    file.yaffs2
 
            2.       On target machine , I  flashed the yaffs2 file on the 2MB partition as below:
 
                       nandwrite -p /dev/mtd4 file.yaffs2
 
            3.      I have mounted the yaffs2 partition as shown below
 
                                mount   -t yaffs2   /dev/mtdblock4   /mnt/partition_yaffs2
 
            
The mounted yaffs2 partition does not show the contents of the dir_yaffs2  directory.
It only shows  lost+found  folder.
Once mounted, normal copy,delete, operations can be done on the mounted YAFFS2 partition and data is persistant.

Can anyone let me know any changes to be done or patch available for the mounted partition to show all the contents of the directory

Regards
Abdul Moiz