Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

a320: Use 8 bits per block in bad block table.

We found a Dingoo with at least one bad block on it and it showed 1 sequence of 8 successive bad blocks, starting at a multiple of 8.
I am assuming it is far more likely that 8 bits per block are used in the bad block table than that exactly those 8 blocks would be bad and no other blocks.
  • Loading branch information...
commit abc3c087e807d361f9cc7813e40b322932cb233f 1 parent 63b52d8
@mthuurne authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 arch/mips/jz4740/board-a320.c
View
5 arch/mips/jz4740/board-a320.c
@@ -111,10 +111,7 @@ static struct mtd_partition a320_nand_partitions[] = {
static uint8_t a320_nand_bbt_pattern[] = {'b', 'b', 't', '8' };
static struct nand_bbt_descr a320_nand_bbt_main_descr = {
- /* TODO(MtH): 1 bit per block is just a guess.
- On my Dingoo the entire page is filled with 0xFF;
- I guess that means it has no bad blocks. */
- .options = NAND_BBT_ABSPAGE | NAND_BBT_1BIT,
+ .options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT,
/* TODO(MtH): Maybe useful flags for the future:
NAND_BBT_CREATE | NAND_BBT_WRITE | NAND_BBT_VERSION | NAND_BBT_PERCHIP
*/
Please sign in to comment.
Something went wrong with that request. Please try again.