This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omap nand driver



Hi,

I have some trouble with the BCH4 on the SDK 4.01. Looking at NAND driver (drivers/mtd/nand/omap2.c), I face some points I cannot explain:

in omap_correct_data()

  1. why is omap_calculate_ecc() called ? The ECC generated by the GMPC is fetch in the MTD layer and passed as arguments. Calling it again gives others values.
  2. Why not just a memcmp for BCH4/BCH8 as for the others ECC style.
  3. why is BCH8 not part of the switch in the version from SDK 5.02 ?

Other point is in the BCH code itself:

  1. why is the output of berlekamp limited to 4 or 8, respective BCH 4 and BCH 8. Should not be the real numbers of error returned to decode_bch as code seems to expect ?

If anyone could give some pointers .... that would be great :-)

Cheers

David