[Ubiattach] "vtbl_check: too large reserved_pebs"

David Wagner david.wagner at free-electrons.com
Thu Jun 9 11:50:57 EDT 2011


>> 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

I should have mentionned that every sub-result has to be considered an
integer, here, sorry.
512+2048 = 2560
2560 / 2048 = 1 // That's where it is important that the result be
                // an integer.
1 * 2048 = 2048
131072 - 2048 = 129024

Regards,
-- 
David Wagner, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the linux-mtd mailing list