init_constants_early: too small LEBs?

Ralf Schlatterbeck rsc at runtux.com
Sat Nov 19 13:25:08 PST 2016


I'm trying to get an ubifs on a 2MB NOR flash.

I'm following the usual steps for generating everything from inside the 
embedded system:
ubiformat /dev/mtd7
ubiattach /dev/ubi_ctrl -m 7 -d 7
ubimkvol /dev/ubi7 -N testvol -s 1968KiB

But when I try to mount I'm getting:
# mount -t ubifs /dev/ubi7_0 /mnt/
mount: mounting /dev/ubi7_0 on /mnt/ failed: Invalid argument

and the kernel log tells me:
Nov 19 21:07:33 board kernel: UBIFS error (pid 1504):
init_constants_early: too small LEBs (3968 bytes), min. is 15360 bytes

Any advice on what to try next?

Should I use a jffs2 on top of UBI using gluebi or run jffs2 on the
naked md device instead? I'd really like to be bad block tolerant but
don't know if this makes sense with NOR-Flash (of this size) at all.

Thanks
Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: office at runtux.com



More information about the linux-mtd mailing list