diff options
author | Frank Haverkamp <haver@vnet.ibm.com> | 2007-11-24 11:04:51 +0100 |
---|---|---|
committer | Frank Haverkamp <haver@vnet.ibm.com> | 2007-11-24 11:04:51 +0100 |
commit | ec50ff6d648dee1f3024e1cbd23f1d1cec4944dc (patch) | |
tree | f1a9fcefd8a87025b781c835d7de09f88b6dc28d /ubi-utils/src/nandecc.h | |
parent | 636524b9c8fa81d0c07f1f0bbf3ac9e5f6287247 (diff) |
ubi-utils: nand2bin had ECC calculation problems
Fixed a problem when ECC was checked. The correction was not properly
done by subpage. Added more output for the moment to be able to figure
out more potential problems.
Added testcase: bin2nand2bin.sh and biterror inject program inject_biterror.pl
Interface
o ECC correction disabled by default. Switch to turn it
explicitly on. The user must specify what he wants to be done.
Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils/src/nandecc.h')
-rw-r--r-- | ubi-utils/src/nandecc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ubi-utils/src/nandecc.h b/ubi-utils/src/nandecc.h index fb5d529..bcf1982 100644 --- a/ubi-utils/src/nandecc.h +++ b/ubi-utils/src/nandecc.h @@ -22,7 +22,8 @@ #include <stdint.h> -extern int nand_calculate_ecc(const uint8_t *dat, uint8_t *ecc_code); -extern int nand_correct_data(uint8_t *dat, const uint8_t *fail_ecc); +int nand_calculate_ecc(const uint8_t *dat, uint8_t *ecc_code); +int nand_correct_data(uint8_t *dat, const uint8_t *read_ecc, + const uint8_t *calc_ecc); #endif |