* How does UBI FS handle invalid PEB on nand flash
@ 2012-06-25 14:16 Steven Munk Østergaard
2012-06-27 14:27 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Steven Munk Østergaard @ 2012-06-25 14:16 UTC (permalink / raw)
To: linux-mtd
Been reading all of the available documentation on UBI and UBIFS but I
cannot find a clear statement on how UBIFS handles production marked
invalid PEB's, and if their location is saved; So when a format is done,
this information is not lost.
is there a way to make sure UBIFS allways checks for production marked
invalid PEB's when a device is started the first time?
Thanks in advance, hope the questions aren't too stupid. :)
- Steven Lauridsen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How does UBI FS handle invalid PEB on nand flash
2012-06-25 14:16 How does UBI FS handle invalid PEB on nand flash Steven Munk Østergaard
@ 2012-06-27 14:27 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-06-27 14:27 UTC (permalink / raw)
To: Steven Munk Østergaard; +Cc: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]
On Mon, 2012-06-25 at 16:16 +0200, Steven Munk Østergaard wrote:
> Been reading all of the available documentation on UBI and UBIFS but I
> cannot find a clear statement on how UBIFS handles production marked
> invalid PEB's, and if their location is saved; So when a format is done,
> this information is not lost.
>
> is there a way to make sure UBIFS allways checks for production marked
> invalid PEB's when a device is started the first time?
UBIFS / UBI do not store information about bad eraseblocks. This is
handled by MTD. UBI may only query "if this eraseblock is good?" or mark
an eraseblock as bad. The bad block management is done at the MTD level.
Traditionally, the bad block marker is stored in the OOB of the first
page, but there are variations. When MTD initalizes, it scans the entire
flash and reads all OOBs, and builds the in-memory bad block table. The
other option is on-flash bad block table, which is typically stored at
the 2 last good eraseblocks of the flash (AFAIR) and stores information
about all bad eraseblocks. In this case you do not need scanning, which
is faster. There are flashes which cannot store bad/good status in OOB,
they use the on-flash BBT.
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-27 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25 14:16 How does UBI FS handle invalid PEB on nand flash Steven Munk Østergaard
2012-06-27 14:27 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox