Handle eraseblocks containing the bad-block table in UBI

Richard Weinberger richard.weinberger at gmail.com
Fri Jan 12 12:52:25 PST 2018


On Fri, Jan 12, 2018 at 4:48 PM, Bogdan Harjoc <harjoc at gmail.com> wrote:
> With some Macronix NANDs that present the bad-blocks table at a fixed
> eraseblock, UBI tries to use the PEB as data and this results in the
> "Bad node, ff ff ff ..." symptoms.
> Should UBI receive this special status of the bbt PEBs via the
> mtd_isbad() result values (in the Macronix case, mtd_block_isbad()
> returns false for the PEB containing the bbt), or are 'bbt PEBs' not
> supported in UBI ?

Usually blocks containing the BBT are also marked as bad to avoid the
problem you're facing.
So, yes UBI should not see these PEBs because they should look like bad blocks.

Is this a kernel with vendor hackery?


More information about the linux-mtd mailing list