I try to set UBIFS as the rootfs on a board.
These are my mtd devices when I use a bootable filesystem:
cat /proc/mtd
mtd0: 08000000 00020000 "fe8000000.flash"
mtd1: 00100000 00010000 "u-boot"
mtd2: 00500000 00010000 "kernel"
mtd3: 00100000 00010000 "dtb"
mtd4: 00900000 00010000 "file system"
I flashed both (tried both methods) the .ubifs
file and the .ubi
file, which is generated by yocto, into the correct space (mtd4
) and tried to boot from u-boot with that command (also tried multiple versions):
setenv bootargs root=ubi0_0 rw ubi.mtd=4,2048 noinitrd rootfstype=ubifs ip=[...] console=[...]
But I get always errors like:
UBI error: ubi_open_volume: cannot open device 0, volume 0, error -19
or
UBIFS error (pid1): ubifs_mount: cannot open "ubi0_0", error -19
Has unlike me someone experience with UBIFS and knows what I am doing wrong. Links to good manuals or something else are also highly appreciated as I can't find very much for UBI.