ubi_eba_init_scan: cannot reserve enough PEBs for bad PEB handling
dedekind1 at gmail.com
Mon Jan 16 07:24:32 EST 2012
On Mon, 2012-01-16 at 09:47 +0100, Alexandre Gambier wrote:
> On 01/14/2012 04:14 PM, Artem Bityutskiy wrote:
> > On Wed, 2012-01-11 at 09:10 +0100, Alexandre Gambier wrote:
> >>>> hi everyone,
> >>>> I use UBI volume and UBIFS on top of a NAND device with an embedded
> >>>> video meter.
> >>>> Everything works fine except that when a UBI volume is mounted the
> >>>> following warning is outputted :
> >>>> "UBI warning: ubi_eba_init_scan: cannot reserve enough PEBs for bad PEB
> >>>> handling, reserved 0, need 20"
> >>> Looks like the pool of reserved PEBs is fully used. Fo how long have you
> >>> been using this flash?
> >> This is a brand new flash...I've been using it for 2 months.
> > OK, in this case this is most probably because you specified too large
> > sizes in your ubinize.cfg. So that your volumes take all eraseblocks.
> > Try to make some volumes smaller.
> For example, for my 128MiB partition I specified 120MiB which is 7%
> smaller than the total size.
You should be able to find the UBI overhead formulas on the MTD web
site. Try to specify less than that and see. You should leave enough
PEBs reserved for bad eraseblocks handling - it is 1% by default.
> What size would you specify for a 128MiB partition ?
> thanks for your help.
I do not have time to calculate and I do not remember. But the easiest
is to use something small enough and put the auto-resize flag - it will
then make it to be the maximum size. E.g., use 100MiB, boot and see to
how much it resized.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: This is a digitally signed message part
More information about the linux-mtd