Hi,
I'm not having any luck getting x-load to load u-boot using 4-bit ECC.
I have built x-load with the FOUR_BIT_ERROR_CORRECT define set and when using u-boot (booted from MMC) to write the NAND I have selected "nandecc bch4_sw".
But I am getting:
Texas Instruments X-Loader 1.51 (Jun 29 2011 - 13:09:45)
Booting from nand . . .
Error: Bad compare! failed
ECC Failed, page 0x00080000
So I left x-load as is and flashed uImage using the five different options (from Minicom):
#send "nandecc bch4_sw"
#send "nandecc hw 2"
#send "nandecc bch8_sw"
#send "nandecc hw 1"
send "nandecc sw 1"
They all produced the same results.
While I am on the subject: I find this option confusing. My understanding is that the GPMC can detect 1/4/8 bits but not correct them. May I interpret the options in the following way?
bch4_sw: The GPMC will detect errors in 4-bit mode and if detected the driver will use BCH to correct.
bch8_sw: Similar to above except 8-bit.
hw1/hw2: Some message about x-load/u-boot versus kernel/filesystem that makes no sense in this context.
sw1: The GPMC will detect errors in 1-bit mode and if detected the driver will attempt to correct.
Is it possible to have detection only with no correction?
Thanks,
Ken