Author: Ross Younger Date: To: yaffs Subject: Re: [Yaffs] when and wher does yaffs2 calculates Ecc?
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.