diff options
author | Alexander Schmidt <alexs@linux.vnet.ibm.com> | 2007-02-21 10:40:13 +0100 |
---|---|---|
committer | Josh Boyer <jwboyer@gmail.com> | 2007-02-21 07:23:50 -0600 |
commit | 04d0f33ea243f307e045605603b96419ea458a26 (patch) | |
tree | 1d14316b36557adcd77537ae2ce89ed935dcf2ca /ubi-utils/src/pfiflash_error.h | |
parent | e1e4f5429a155a6bd9a9d384f91d597cab157ee3 (diff) |
UBI Utils: pfiflash did not erase block before writing to it
Pfiflash should erase raw flash regions before overwriting them and check for
bad blocks in case of NAND flash.
Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'ubi-utils/src/pfiflash_error.h')
-rw-r--r-- | ubi-utils/src/pfiflash_error.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ubi-utils/src/pfiflash_error.h b/ubi-utils/src/pfiflash_error.h index 34b705e..c06232a 100644 --- a/ubi-utils/src/pfiflash_error.h +++ b/ubi-utils/src/pfiflash_error.h @@ -41,7 +41,8 @@ enum pfiflash_err { PFIFLASH_ERR_PDD_UNKNOWN, PFIFLASH_ERR_MTD_OPEN, PFIFLASH_ERR_MTD_CLOSE, - PFIFLASH_ERR_CRC_CHECK + PFIFLASH_ERR_CRC_CHECK, + PFIFLASH_ERR_MTD_ERASE }; const char *const PFIFLASH_ERRSTR[] = { @@ -63,7 +64,8 @@ const char *const PFIFLASH_ERRSTR[] = { "unknown PDD handling algorithm", "couldn't open MTD device %s", "couldn't close MTD device %s", - "CRC check failed: given=0x%08x, calculated=0x%08x" + "CRC check failed: given=0x%08x, calculated=0x%08x", + "couldn't erase raw mtd region" }; #endif /* __PFIFLASH_ERROR_H__ */ |