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.

Disable ECC- 66AK2E05

Other Parts Discussed in Thread: 66AK2E05

How can we disable ECC on 66AK2E05? We are using NAND flash that requires minimum 8 bit of ECC but processor only supports 1bit and 4bit ECC. We will eventually implement 8bit ECC support with the software. For now we want to disable ECC in uboot to continue our test.

  • Dear Alok,
    I've never tried to disable the ECC in uboot and linux.

    But here is my suggestions.
    Can you please remove the ECC config ( CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST) entry in your board config file of u-boot ?
    include/configs/k2e_evm.h

    I think, now it would select the ECC for SW mode and doesn't call any functions to detect and correct the bitflip as we didn't write SW ECC code yet.
    Print the "nand->ecc.mode" in "davinci_nand.c" file.
    Now, try to access the NAND flash.

    If you were able to boot linux kernel on your K2E board via NFS mode, then try the following method to access the NAND flash without ECC.

    nandwrite -n, --noecc

    root:~# flash_eraseall /dev/mtd1
    root:~# nandwrite -p -n /dev/mtd1 test.txt (Writing without ECC)

    processors.wiki.ti.com/.../Mtdutils
  • Titu,

    We tried doing that but NAND write and read still fails from uBoot.

    Mesasge:

    POST EMIF NAND read ... nand_bbt: ECC error while reading bad block table

    nand_erase_nand: attempt to erase a bad block at page 0x0007ffc0

    nand_bbt: Error while writing bad block table -5

    PASSED

     Any suggestions?