Make NAND_BBT_NO_OOB_BBM configurable or let the gpmi driver decide?

Miquel Raynal miquel.raynal at bootlin.com
Thu Feb 24 07:29:58 PST 2022


Hi Daniel,

dg at emlix.com wrote on Wed, 23 Feb 2022 11:59:02 +0100:

> Am 22.02.22 um 23:02 schrieb Han Xu:
> > On 22/02/21 08:00PM, Daniel Glöckner wrote:  
> >> we are using UBI on a NAND flash with BBT and have recently observed
> >> bad blocks where nand_markbad_bbm returns an error. Since that error is
> >> returned by nand_block_markbad_lowlevel even when marking the block in
> >> the BBT succeeds, UBI goes into read-only mode. We would therefore like
> >> to set NAND_BBT_NO_OOB_BBM.  
> > 
> > Could you please describe more details about what kind of error, how to
> > reproduce it and on which kernel version?  
> 
> You need a flash that has one bad block where programming the BBM sets
> NAND_STATUS_FAIL in its status register. The latest kernels should still
> have problems when this happens in a UBI.

I believe we should try to tackle "why" this happens more than try to
workaround its consequences. Can you give more details about why we get
this status?


Thanks,
Miquèl



More information about the linux-mtd mailing list