On 2011-12-26 09:20, Ross Younger wrote: > On 26/12/11 19:34, EzioZhang wrote: > > Yaffs could calcuate ecc itself . I found yaffs_cal_ecc in yaffs_ecc.h > > and called in yaffs_tagscompat.c,but it only calculates 512byte data ,so > > if I used a 2112byte/page nand flash how to calculate ecc with yaffs? > > There is a parameter CONFIG_YAFFS_DOES_ECC which makes YAFFS calculate > the ECC. It only works in YAFFS1 mode, on devices with a 512 byte page - > notice that the 'use_nand_ecc' parameter controls it. In all other > cases, it is the responsibility of the mtd driver to handle ECC itself. > > > Ross > > So if I integrate yaffs2 without OS,I should do ecc in nand flash drivers?