UBIFS: Does init_constants_early ignore LEBs being erased? Complains about amount.
Rafał Miłecki
zajec5 at gmail.com
Mon Oct 20 14:42:53 PDT 2014
On 20 October 2014 15:41, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> On Fri, 2014-10-17 at 08:29 +0200, Rafał Miłecki wrote:
>> UBI: available PEBs: 0, total reserved PEBs: 986, PEBs reserved for
>> bad PEB handling: 20
>> UBI: background thread "ubi_bgt0d" started, PID 257
>> UBI: ubiblock0_0 created from ubi0:0(rootfs)
>> UBIFS error (pid 1): init_constants_early: too few LEBs (15), min. is 17
>
> UBIFS wants more LEBs in the volume.
>
>> *** 5 seconds later ***
>> UBIFS: default file-system created
>> UBIFS: background thread "ubifs_bgt0_1" started, PID 302
>> UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
>> UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes:
>> 2048 bytes/2048 bytes
>> UBIFS: FS size: 118849536 bytes (113 MiB, 936 LEBs), journal size
>> 5967872 bytes (5 MiB, 47 LEBs)
>
> This is a different volume mounted, it seems, it has 47 LEBs.
This is weird. I don't think my ubinized image contains 2 UBIFS volumes :|
[rootfs]
# Volume mode (other option is static)
mode=ubi
# Source image
image=root.squashfs
# Volume ID in UBI image
vol_id=0
# Allow for dynamic resize
vol_type=dynamic
# Volume name
vol_name=rootfs
[rootfs_data]
# Volume mode (other option is static)
mode=ubi
# Volume ID in UBI image
vol_id=1
# Allow for dynamic resize
vol_type=dynamic
# Volume name
vol_name=rootfs_data
# Autoresize volume at first mount
vol_flags=autoresize
vol_size=1MiB
I'll try to pick Tanya's patch and try again.
More information about the linux-mtd
mailing list