Re: [Yaffs] the function "yaffs_ecc_calc_other" does not wor…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] the function "yaffs_ecc_calc_other" does not work?!
On Thursday 19 April 2012 12:16:13 Ezio Zhang wrote:
> thanks,and i have another question about yaffs_ecc.h. As 256 byte generate
> 3byte ecc code,but when use yaffs_ecc_calc_other() which can generate ecc
> for more than 256 byte,but it stores the ecc valu in one structure
> "yaffs_ecc_other" ,how this work?for example,if calcuate ecc for 2048 byte
> data,how it store the ecc value?


ecc_other is really intended for blocks smaller than 256 bytes. If you want
to do ecc on larger blocks then I suggest using multiple eccs over 256-byte
blocks.