UBI - EBA table (Erase block association table) - wear leveling

Navaneethan P pnavanee at gmail.com
Fri Mar 18 10:19:25 EDT 2011


 Hi Linux-Mtd users,

We are using UBI over NAND Flash. I have the following dubts.

1) UBI stores the volume id table & EBA table in some PEB of the NAND Flash.
My assumption is that volume id table will always be stored in LEB
'X'. and UBI will go & read the information during initialization.
Is my undersatnding correct?

2) One of the assumption is that EBA table is always stored in an PEB.
Is my assumption correct?

3) I read from the wear leveling subsystem (wl.c), the maximum
difference between the erase counters of erase blocks will be
CONFIG_MTD_UBI_WL_THRESHOLD (defined as 4096).
If the difference exceeds then it will move the data from high EC
block to low EC block.
Let me take the case of PEB 'A' stores the EBA table. Because of the
writting to the flash, EC of PEB 'A' reaches to 4096. As per the
documentation, it has to be wear leveled to lower EC block. Let me
assume that this PEB is 'B'. My doubt is "In the next initialization,
how does the UBI understands that EBA is stored in PEB 'B' instead of
PEB 'A'?"

4) What happens when PEB which holds EBA table, becomes bad? At that
time, will system become unusable?

Please help us to clarify the doubt.
thanks in advance for helping us.

Regards,
Navaneethan



More information about the linux-mtd mailing list