[Ubiattach] "vtbl_check: too large reserved_pebs"

Gilles gilles.ganault at free.fr
Thu Jun 9 11:19:30 EDT 2011


On Thu, 09 Jun 2011 14:42:08 +0200, David Wagner
<david.wagner at free-electrons.com> wrote:
>>> In most cases, the formula for the offset boils down to:
>>> LEB_size = PEB_size - (((Subpage_size + Page_size) * Page_size) /
>>> Page_size)
>> 
>> Thanks for the tip, but after recompiling a new root filesystem, I'm
>> still getting the same error:
>[...]
>> BTW, using the formula above, I find this: 131.072 - ((( 512 + 2.048) *
>> 2.048 ) / 2.048 ) = 128.512
>> 
>> I wonder if maybe I should leave some room in the NAND partition for the
>> Ubifs journal + error log? I used vol_size=248MiB in ubi.cfg, but maybe
>> this is toot big?
>
>(I forgot to reply to all in my first answer)
>
>Oops, sorry, the formula is
>((Subpage_size + Page_size)) / Page_size) * Page_size
>That is, subpage+page truncated to page.

Thanks, but I must have misunderstood the formula, as I find the same
number:

PEB_size - ((Subpage_size + Page_size)) / Page_size) * Page_size =
LEB_size

131.072 - ((512 + 2048 ) / 2048) * 2048) = 128.512




More information about the linux-mtd mailing list