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.

am3517 ecc error

Other Parts Discussed in Thread: AM3517

Hi,

I have a question about am3517 ecc. The psp I used is 04.02.00.07, the command nandecc is as below:

# nandecc [ hw <hw_type> | sw | bch4_sw | bch8_sw ]
Usage: 
   sw           - Set software ECC for NAND
   hw <hw_type> - Set hardware ECC for NAND
                  <hw_type> - 1 for Kernel/FileSystem ECC layout
                              2 for X-loader/U-boot ECC layout
   bch4_sw      - Set 4-bit BCH ECC for NAND
   bch8_sw      - Set 8-bit BCH ECC for NAND

Does this mean that sw, bch4_sw and bch8_sw are useless just because what I need to write in nand are x-loader, uboot, kernel and filesystem?

  • Hello,

    The nandecc command is no more supported in the latest U-boot versions because the BCH 8 ecc falls. As you are using psp v04.02.00.07 I suggest you to check whether the following patch "omap_gpmc: change nandecc command" is added in your sources. You can find it at the link:

    http://lists.denx.de/pipermail/u-boot/2013-April/150713.html

    Also the linked below article would be helpful for clarifying the usage of the nandecc command:

    http://elinux.org/BeagleBoardNAND

    BR

    Tsvetolin Shulev

  • I don't understand.

    1. The chip I used is AM3517, whose latest SDK I can download is ti-sdk-am3517-evm-06.00.00.00-Linux-x86-Install.bin. In this SDK, uboot 2011.09 is used, in which nandecc is still used.

    2. What I need to write in NAND are x-loader, u-boot, kernel and filesystem. Does this mean that I can use only 'nandecc hw 1' and 'nandecc hw 2'?

    I have tested. If I don't set 'nandecc hw 2' before writing u-boot, I couldn't boot u-boot from NAND. Also, if I don't set 'nandecc hw 1' before I download kernel, I couldn't boot kernel from NAND. In this situation, what is the meaning about NAND_ECC_SOFT, NAND_ECC_4BIT_SOFT and NAND_ECC_8BIT_SOFT?

    3. The NAND flash I used is Micron MT29F4G08ABADA, which is 4bit ecc. How can I do to boot from this nand? The MLO I used is built from u-boot-2011.09-psp04.06.00.08. I could not boot from nand when I wrote MLO using u-boot-2011.09. However, I could boot from nand when I wrote MLO using u-boot-2009. What should I do about this?

  • Could anyone help me?

    I have changed M_NAND_GPMC_CONFIG1 from 0x1800 to 0x800, then I can start x-loader by uboot-04.02.00.07 now.