Date:2010-08-28 18:33:19 (13 years 3 months ago)
Author:Maarten ter Huurne
Commit:abc3c087e807d361f9cc7813e40b322932cb233f
Message: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.
Files: arch/mips/jz4740/board-a320.c (1 diff)

Change Details

arch/mips/jz4740/board-a320.c
111111static uint8_t a320_nand_bbt_pattern[] = {'b', 'b', 't', '8' };
112112
113113static struct nand_bbt_descr a320_nand_bbt_main_descr = {
114    /* TODO(MtH): 1 bit per block is just a guess.
115                  On my Dingoo the entire page is filled with 0xFF;
116                  I guess that means it has no bad blocks. */
117    .options = NAND_BBT_ABSPAGE | NAND_BBT_1BIT,
114    .options = NAND_BBT_ABSPAGE | NAND_BBT_8BIT,
118115    /* TODO(MtH): Maybe useful flags for the future:
119116    NAND_BBT_CREATE | NAND_BBT_WRITE | NAND_BBT_VERSION | NAND_BBT_PERCHIP
120117    */

Archive Download the corresponding diff file



interactive