Hi everyone !

I have ported the YAFFS on Samsung NAND 64MBytes.
Temporarily I use the EXT2 for Root file system and I want to use the YAFFS for data region.
But I found the problem that corrupt data is occurred input file from data region, YAFFS.

I use the MTD application, nanddump (about 4KB) for explaining at this example.
Another sample binary files apear the same situation.

I put the nanddump_CP on Root file system and copy from Root FS to data region (YAFFS).
And I put the same file, nanddump_yaffs has another file name, on data region (YAFFS) using the mkyaffs.
Of cource, YAFFS image made using the mkyaffsimage.

The nanddump is operated correctly, but nanddump1 is not operated.
Also another sample files are not operated in case of using the mkyaffs.

If I see the low level data of NAND memory using nanddump,
512 bytes data region of nanddump and nanddump1 are same except file header information and OOB data.
But if I test the coparision using cat command, two files are not same and some bytes are corrupted.
The file (nanddump_CP) that copy from Root FS on using the YAFFS is correct.

I attached two files here. But I'm not used the NAND ECC data in two files.

<<nanddump_yaffs>> <<nanddump_CP>>
And the following files are the information that displayed on using the cat command.
Some data are corrupted in the first part of two files.

<<nanddump_yaffs.txt>> <<nanddump_CP.txt>>

Also I include the /proc/yaffs information.

# cat /proc/yaffs
YAFFS built:Jan 29 2004 19:20:46
$Id: yaffs_fs.c,v 1.32 2003/10/29 20:42:34 charles Exp $
$Id: yaffs_guts.c,v 1.33 2003/11/16 07:40:42 charles Exp $

Device yaffs
startBlock......... 1
endBlock........... 3775
chunkGroupBits..... 1
chunkGroupSize..... 2
nErasedBlocks...... 3774
nTnodesCreated..... 100
nFreeTnodes........ 96
nObjectsCreated.... 100
nFreeObjects....... 93
nFreeChunks........ 120777
nPageWrites........ 15
nPageReads......... 66
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 3775
cacheHits.......... 8
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
 
Please, help me!!!
I have developed the some day, but I don't know why it is corruped for data on using mkyaffs.

Best regards,