ubi_eba_init_scan: cannot reserve enough PEBs for bad PEB handling

Alexandre Gambier a.gambier at ftemaximal.fr
Wed Jan 11 03:10:45 EST 2012


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

>
>> UBI: attaching mtd7 to ubi0
> When I see things like mtd7 - I get worried. Do you have 7 partitions on
> one chip? Even on old good and reliable chips this was not very good
> idea, let alone modern NANDs with all these unstable bits, "radiation"
> effects, low eraseblock max. erase count, etc...
Here is my partition table
   mtd0 -> UBoot -> 1 MiB
   mtd1 -> UBootSettings -> 128 KiB
   mtd2 -> SafeKernel -> 4 MiB => The linux kernel loaded in safe mode 
to restore the main rootfs and perform maintenance.
   mtd3 -> AppKernel -> 4 MiB => The linux kernel loaded in normal mode 
when running the application.
   mtd4 -> SafeFS => 64 MiB => The safe mode file-system.
   mtd5 -> AppFS => 128 MiB => The main application file-system.
   mtd6 -> Reserved => 54.875 MiB => Reserved during the development 
stage, will be used in stable version.
   mtd7 -> UserData => 256 MiB => User's data partition to store records 
and log files (that will never be erased or formatted).

> BTW, be aware of this problem:
>
> http://linux-mtd.infradead.org/doc/ubifs.html#L_unstable_bits
thanks..The user's data partition will be the only one mounted in r/w 
mode...files in it are not crucial.

> which has not been solved - we need a brave knight who'd spend time
> working on this issue.
A little bit to complicated for me otherwise I would love to help the 
MTD project.

Alex



More information about the linux-mtd mailing list