public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [Ubiattach] "vtbl_check: too large reserved_pebs"
@ 2011-06-09 10:24 Gilles
  2011-06-09 12:20 ` Artem Bityutskiy
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Gilles @ 2011-06-09 10:24 UTC (permalink / raw)
  To: linux-mtd

Hello

	I went through the docs/FAQs on the site and elsewhere, and
proceeded to create a Ubifs root filesystem and flash a NAND partition
with it.
However, "ubiattach" fails, so I guess I didn't use the right settings
in mkfs.ubifs and/or ubinize and/or ubiformat for use with that NAND
partition.

Here are the steps I took:
==============
#First, get infos about NAND
appliance:/> mtdinfo /dev/mtd2 -u
mtd2
Name:                           filesystem_nand
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          1984 (260046848 bytes, 248.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:4
Bad blocks are allowed:         true
Device is writable:             true
Default UBI VID header offset:  512
Default UBI data offset:        2048
Default UBI LEB size:           129024 bytes, 126.0 KiB
Maximum UBI volumes count:      128
==============
#Create root filesystem
ubuntu:/> mkfs.ubifs --squash-uids -m 2048 -e 131072 -c 1984 -d
./romfs -D device_table-min.txt -o ./images/rootfs.ubifs

#ubinize image
ubuntu:/> cat ubi.cfg
[ubifs]
mode=ubi
image=./images/rootfs.ubifs
vol_id=0
vol_size=248MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize

ubuntu:/> ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg
==============
appliance:/> ubiformat /dev/mtd2 -s 512 -f rootfs.ubi.img

appliance:/> ubiattach /dev/ubi_ctrl -m 2
UBI: attaching mtd2 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: too large reserved_pebs 2016, good PEBs 1984
UBI error: vtbl_check: volume table check failed: record 0, error 9
UBI error: ubi_attach_mtd_dev: failed to attach by scanning, error -22
ubiattach: error!: cannot attach mtd2
           error 22 (Invalid argument)
==============

Any idea what I did wrong?

Thank you.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-06-10  9:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 10:24 [Ubiattach] "vtbl_check: too large reserved_pebs" Gilles
2011-06-09 12:20 ` Artem Bityutskiy
2011-06-09 12:31   ` Gilles
2011-06-09 12:38 ` Artem Bityutskiy
2011-06-09 15:18   ` Gilles
2011-06-10  4:03     ` Artem Bityutskiy
2011-06-10  9:25       ` Gilles
     [not found] ` <4DF0B36E.2020605@free-electrons.com>
     [not found]   ` <7.0.1.0.2.20110609135430.06967d28@free.fr>
2011-06-09 12:42     ` David Wagner
2011-06-09 15:19       ` Gilles
2011-06-09 15:50         ` David Wagner
2011-06-09 15:51           ` Artem Bityutskiy
2011-06-09 16:15           ` Gilles
2011-06-09 16:17 ` Gilles
2011-06-09 23:05   ` Gilles
2011-06-10  0:45     ` Gilles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox