UBIFS Informations
simon widmer
simonxwidmer at gmail.com
Wed Sep 5 08:54:59 EDT 2012
Update: I tested on Kernel 2.6.24-24 without success. The same manner if
i want to mount the image. What I discovered is that i noted earlier
that i have to compile with:
$ mkfs.ubifs -q -r $PATH\/data_h -m 2048 -e 129024 -c 2047 -o temp_h.img
$ ubinize -o data_h.img -m 2048 -p 128KiB -s 512 ubinize_h.cfg
and i have no idea what option "-q" is (neither does mkfs.ubifs). so I
just kicked it and compiled with:
$ mkfs.ubifs -r $PATH\/data_h -m 2048 -e 129024 -c 2047 -o temp_h.img
$ ubinize -o data_h.img -m 2048 -p 128KiB -s 512 ubinize_h.cfg
ubinize.cfg looks this way:
[data_h]
mode=ubi
image=temp_h.img
vol_id=0
vol_size=4MiB
vol_type=static
vol_name=data_h
vol_flags=autoresize
and the attaching procedure as follows:
UBI: attaching mtd8 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: attached mtd8 to ubi0
UBI: MTD device name: "data_h"
UBI: MTD device size: 4 MiB
UBI: number of good PEBs: 32
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 0
UBI: total number of reserved PEBs: 32
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 2/0
UBI: image sequence number: 165352633
UBI: background thread "ubi_bgt0d" started, PID 497
and finally the mounting procedure:
UBIFS error (pid 529): ubifs_read_node: bad node type (0 but expected 6)
UBIFS error (pid 529): ubifs_read_node: bad node at LEB 0:0
mount: wrong fs type, bad option, bad superblock on ubi0_0,
missing codepage or helper program, or other error
(UBIFS error (pid 529): ubifs_read_node: bad node type (0 but
expected 6)
for several filesystems (e.g. nfUBIFS error (pid 529): ubifs_read_node:
bad node at LEB 0:0
s, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
More information about the linux-mtd
mailing list