Make NAND_BBT_NO_OOB_BBM configurable or let the gpmi driver decide?

Daniel Glöckner dg at emlix.com
Wed Feb 23 02:59:02 PST 2022


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.

Best regards,

  Daniel



More information about the linux-mtd mailing list