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.

Linux/AM3354: How to enable and disable NAND on-die ECC

Part Number: AM3354

Tool/software: Linux

Hello TI,

I am using the Micron NAND MT29F4G08ABBFAH4-IT:F with on-die ECC.

I am not clear with Micron document to enable or disable on-die ECC

How do i use the NAND on-die ECC when using eccscheme OMAP_ECC_BCH16_CODE_HW under gpmc ECC engine.

  • Hi Govindaraji,

    You should only use the on-chip ECC or the ECC on the AM335x, not both. If you choose on-chip, you'll want to disable GPMC ECC in both U-Boot and Linux.

    All of our SDK examples will have ECC enabled as the NAND devices on our EVMs do not have on-chip ECC.

    I hope this is helpful to you.
  • Hello RonB,

    Can you provide some details about enabling on-die ECC and disabling GMPC ECC. I have to test this to know the benefits of on-die ECC compared to GPMC ECC.

  • I've discussed this with several colleagues, and unfortunately there is not an easy way to do this for either U-Boot or Linux with our infrastructure. Our codebase assumes that you are using the ECC on the AM335x device. It would require hacking the driver to remove ECC calls to evaluate this at this time. This is something we cannot support at the time being.

    As we see the need for this capability growing, we may consider making it easier to use on-die ECC from flash vendors using some newer capabilities in U-Boot/Linux to do so. We don't currently have a schedule for this feature.

    I hope this clarifies the situation.