UBIFS mounting error

Subramani Venkatesh subbu31mani at gmail.com
Mon Mar 9 17:56:00 EDT 2009


Hi
I am trying to mount UBIFS on NAND flash, I am quite often getting the
error below after rebooting.

UBIFS: recovery needed
UBI error: ubi_io_write: error -5 while writing 2048 bytes to PEB
0:4096, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write 2048 bytes at offset 0
of LEB 0:4, PEB 0
UBI: try another PEB
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB
1:2048, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 0:4, PEB 1
UBI: try another PEB
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB
2:2048, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 0:4, PEB 2
UBI: try another PEB
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB
11:2048, written 0 bytes
UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 0:4, PEB 11
UBI warning: ubi_ro_mode: switch to read-only mode

I created UBIFS image for 400MiB volume

./mkfs.ubifs -r target -m 2KiB -e 124KiB -c 3164 -o ti-ubifs.img
./ubinize -o ti-flash.img -m 2048 -p 128KiB -s 2048 ubinize-ti.cfg

and the config file is

[ubifs]
mode=ubi
image=ti-ubifs.img
vol_id=0
vol_size=392448KiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize

I am getting above error only after rebooting.

I have software ecc for 512 bytes.
Though I have 512 bytes of sub-page, I forced it to 2048 Bytes,
considering no sub-page.

Can anyone guide why I am getting above error after rebooting for
autoresize and dynamic volume.

Thanks,
Subbu



More information about the linux-mtd mailing list