ECC for Samsung nand flash
Has anyone implemented an ECC algorithm for Samsung nand flash devices? The nand_ecc.c in the cvs seems to be specific for Toshiba devices.
thank you
-Bill
Quoted 2 lines · William J. Beksi
Has anyone implemented an ECC algorithm for Samsung nand flash devices? The
nand_ecc.cin the cvs seems to be specific for Toshiba devices.
He ? What is specific ?
ECC is a checksum algorithm for error detection and correction and is nowhere specific for Toshiba.
Signature · 5 lines
Thomas ________________________________________________________________________ linutronix - competence in embedded & realtime linux http://www.linutronix.de mail: [email protected]
Quoted 7 lines · Thomas Gleixner
Quoted 2 lines · William J. Beksi
Has anyone implemented an ECC algorithm for Samsung nand flash devices? The
nand_ecc.cin the cvs seems to be specific for Toshiba devices.He ? What is specific ?
ECC is a checksum algorithm for error detection and correction and is nowhere specific for Toshiba.
nand_ecc.c in mtd and yaffs_ecc.c in YAFFS implement exactly the same algorithm which is that specified by SmartMedia. Although nand_ecc.c was written by SJHill (then at Toshiba), the algorithm is identical to that in the application notes at Samsung.
The only differences between nand_ecc.c and yaffs_ecc.c are:
*yaffs_ecc.c is slightly faster (~15% - CPU dependent)
* yaffs_ecc.c provides two byte orders for storing the ECC.
At the end of the day, the ECC code is a software device and is in no way linked to the hardware. ie. the nand chip just blindly stores bytes.
-- Charles