[Bug 5660] ubiformat ?
bugzilla at busybox.net
bugzilla at busybox.net
Mon Nov 12 11:42:50 UTC 2012
https://bugs.busybox.net/show_bug.cgi?id=5660
--- Comment #1 from Fred_busybox <dark_footix at yahoo.fr> 2012-11-12 11:42:48 UTC ---
Hello,
I try another method :
flash_eraseall /dev/mtd0
# ubiattach /dev/ubi_ctrl -m 0 # <- on mtd0 / rootfs
[ 45.462000] UBI: attaching mtd0 to ubi0
[ 45.466000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 45.473000] UBI: logical eraseblock size: 126976 bytes
[ 45.478000] UBI: smallest flash I/O unit: 2048
[ 45.483000] UBI: VID header offset: 2048 (aligned 2048)
[ 45.489000] UBI: data offset: 4096
[ 46.007000] UBI: empty MTD device detected
[ 46.012000] UBI: max. sequence number: 0
[ 46.016000] UBI: create volume table (copy #1)
[ 46.027000] UBI: create volume table (copy #2)
[ 46.041000] UBI: attached mtd0 to ubi0
[ 46.045000] UBI: MTD device name: "rootfs"
[ 46.050000] UBI: MTD device size: 243 MiB
[ 46.055000] UBI: number of good PEBs: 1936
[ 46.060000] UBI: number of bad PEBs: 8
[ 46.064000] UBI: number of corrupted PEBs: 0
[ 46.069000] UBI: max. allowed volumes: 128
[ 46.073000] UBI: wear-leveling threshold: 4096
[ 46.078000] UBI: number of internal volumes: 1
[ 46.083000] UBI: number of user volumes: 0
[ 46.087000] UBI: available PEBs: 1609
[ 46.092000] UBI: total number of reserved PEBs: 327
[ 46.097000] UBI: number of PEBs reserved for bad PEB handling: 323
[ 46.103000] UBI: max/mean erase counter: 0/0
[ 46.107000] UBI: image sequence number: -1353737913
[ 46.112000] UBI: background thread "ubi_bgt0d" started, PID 1439
ubimkvol /dev/ubi0 -N rootfs -s 243 MiB -t dynamic
# ubiupdatevol /dev/ubi0 /rootfs.ubifs
ubiupdatevol: UBI volume node not in correct format
or
# ubiupdatevol /dev/ubi0_0 /rootfs.ubifs
ubiupdatevol: UBI_IOCVOLUP: Invalid argument
# ubiupdatevol /dev/ubi0_0 /rootfs.ubifs -t
this seems to pass (?)
the mount :
mount -t ubifs /dev/ubi0_0 /mnt
[ 905.704000] UBIFS error (pid 2344): init_constants_early: too few LEBs (1),
min. is 17
mount: mounting /dev/ubi0_0 on /mnt failed: Invalid argument
Can you help me ? How can I change the LEBs ?
The method used to create the images :
echo "
[ubifs]
mode=ubi
image=rootfs.ubifs
vol_id=0
vol_size=243MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
" in the file ubinize.cfg
On the pc host :
sudo mkfs.ubifs -v -r rootfs -o rootfs.ubifs -m 2048 -e 126976 -c 1936
-> this create the rootfs.ubifs
sudo ubinize -v -o rootfs.ubi -m 2048 -p 128KiB -s 512 ubinize.cfg
-> this create the rootfs.ubi with rootfs.ubifs and ubinize.cfg
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list