Re: Power cut leads to "corrupt empty space"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29.2.2020 14.46, Timo Ketola wrote:
> I had to put 'nand-ecc-strength = <8>;
> nand-ecc-step-size = <512>;' into the device tree

Actually, I tried these but they didn't help. They are not there any more.

> and make this change
> in drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c:
> 
>> @@ -507,11 +507,11 @@ static int common_nfc_set_geometry(struct gpmi_nand_data *this)

That was needed.

> Still, it seems to erase correct blocks when trying to write BBTs.

This might not be true

>> Transfer from/to chip 1, pio[0] 930006, naddr 5, addr 00 00 C0 FF 07

I tried the same in my v4.9 kernel and saw very (exactly?) similar
transactions and it works:

> Transfer from/to chip 0, pio[0] 830006, len 6, cmd 00 00 00 C0 FF 07
> Transfer from/to chip 0, pio[0] 830001, len 1, cmd 30
> Transfer from/to chip 1, pio[0] 930006, len 6, cmd 00 00 00 C0 FF 07
> Transfer from/to chip 1, pio[0] 930001, len 1, cmd 30
> Bad block table found at page 524224, version 0x01
> Bad block table found at page 1048512, version 0x01

--

Timo
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux