Tool/software: Linux
I and using DM8168 with nand boot.
dvrdk_04 uboot support hw 2(BCH8),but In the function “ti81xx_correct_data”, it says "corrects one bit error if it has occured" :
So dm8168's dvrdk_04 uboot just Support one bit error if it has occured ?
/*
* ti81xx_correct_data - Compares the ecc read from nand spare area with ECC
* registers values and corrects one bit error if it has occured
* Further details can be had from TI81xx TRM and the following selected links:
* en.wikipedia.org/.../Hamming_code
* www.cs.utexas.edu/.../ErrorCorrection-4.pdf
*
* @mtd: MTD device structure
* @dat: page data
* @read_ecc: ecc read from nand flash
* @calc_ecc: ecc read from ECC registers
*
* @return 0 if data is OK or corrected, else returns -1