UBI error: vtbl_check: volume table check failed

Shane Volpe shanevolpe at gmail.com
Fri Mar 27 21:47:06 EDT 2009

I'm running kernel version 2.6.28 and I have both UBI and UBIFS
compiled into the kernel.  I'm using an AT91SAM9260 with 512MiB of
NAND flash.  Here is what I ran to generate my ubifs image:

mkfs.ubifs -r rootfs -m 2048 -e 129024 -c 2047 -o ubifs.img
ubinize -o ubi.img -m 2048 -p 128KiB -s 512 ubinize.cfg

Here is my ubinize.cfg:

Here is my Kernel command line:
mem=32M console=ttyS0,115200 ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs

I erased the entire NAND flash and flashed the ubinized UBIFS image to
address 0x00a00000 which is mtd1.  I then boot my system and received
the error message(s) below (end of email).  I'm assuming, based on the
error, that the problem is the ubi driver can not find the header
information for the ubi partition however I'm not sure what I have
done wrong as I believe all of the settings were correct.  I would
appreciate any feedback as to what I might be doing wrong or other
things I may do to debug this issue.

---ERROR message during kernel boot:

Creating 2 MTD partitions on "NAND 512MiB 3,3V 8-bit":
0x00000000-0x00a00000 : "Bootloader Area"
0x00a00000-0x20000000 : "User Area"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI error: vtbl_check: volume table check failed: record 0, error 9
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22

More information about the linux-mtd mailing list