[Yaffs] questions about YAFFS2

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Zeng Xin
Date:  
To: yaffs
Subject: [Yaffs] questions about YAFFS2


Hi:
  I am porting YAFFS2 using YDI to our new project. The version is a
snapshot version which is retrieved from GIT repository by 12/12/2010. Now I
am facing some problems.
1. In yaffs_nandif.c, the nandif_ReadChunkWithTagsFromNAND invokes
  retval = geometry->readChunk(geometry,nand_chunk,
      data,
      data ? dev->param.total_bytes_per_chunk : 0,
      spare,spareSize,
      &eccStatus);
  Here, geometry->readChunk points the implementation of the nand flash
driver. My question is how can we evaluate the eccStatus in nand flash
driver? Do we need calculate ECC of the data every time even if the the
YAFFS2 only need to read spare area via this interface in the driver?
2. It seems YAFFS2 will search the checkpoint block from the start to the
end of the flash, if it doesn't exist, the mount procedure will takes much
more time.


Can someone explain my puzzles?

Thanks !

Regards!