Skip to contentSkip to conversation

ECC for Samsung nand flash

DISCUSSION William J. Beksi 3 participants 3 messages Mar 30, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · William J. Beksi

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.

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]
#2 lore raw
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.c in 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