Show Posts
|
|
Pages: [1]
|
|
1
|
Linux Stuff / General Linux questions / Re: ubimkvol fails
|
on: January 31, 2010, 08:05:48 PM
|
|
Thanks. Some success, but not complete. I get past the ubiformat ok, but the mount fails.
What about ubiattach and ubimkvol? I tried them too after the ubiformat, without any success either.
|
|
|
|
|
4
|
Linux Stuff / General Linux questions / ubimkvol fails
|
on: January 29, 2010, 12:55:23 PM
|
|
I am following the instructions to install Debian to Flash and got as far as to set up the UBI;
Convert internal flash root partition to UBIFS
ubiformat /dev/mtd2 -s 512 ubiattach /dev/ubi_ctrl -m 2 ubimkvol /dev/ubi0 -N rootfs -m mount -t ubifs ubi0:rootfs /mnt
However, the ubimkvol command returns errors (see below) in all variations I have tried. Any suggestions?
some info: ---------- uname -a Linux debianplug 2.6.32-trunk-kirkwood #1 Mon Jan 11 10:57:12 UTC 2010 armv5tel GNU/Linux
debianplug:/dev# ubinfo --all UBI version: 1 Count of UBI devices: 1 UBI control device major/minor: 10:62 Present UBI devices: ubi0
ubi0 Volumes count: 0 Logical eraseblock size: 129024 bytes, 126.0 KiB Total amount of logical eraseblocks: 4055 (523192320 bytes, 499.0 MiB) Amount of available logical eraseblocks: 4011 (517515264 bytes, 493.5 MiB) Maximum count of volumes 128 Count of bad physical eraseblocks: 1 Count of reserved physical eraseblocks: 40 Current maximum erase counter value: 18 Minimum input/output unit size: 2048 bytes Character device major/minor: 252:0 debianplug:/dev#
result: -------
debianplug:/dev# ubimkvol /dev/ubi0 -N"rootfs" -s490MiB [ 3491.439972] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 bytes [ 3491.449102] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 0 [ 3491.458809] UBI: try another PEB [ 3491.462240] UBI: run torture test for PEB 0 [ 3491.467051] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 4055:512, written 0 bytes [ 3491.476423] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 4055 [ 3491.511568] UBI: try another PEB [ 3491.686891] UBI: PEB 0 passed torture test, do not mark it a bad [ 3491.695949] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 4051:512, written 0 bytes [ 3491.705328] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 4051 [ 3491.715051] UBI: run torture test for PEB 4055 [ 3491.731852] UBI: try another PEB [ 3491.913343] UBI: PEB 4055 passed torture test, do not mark it a bad [ 3491.922647] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 bytes [ 3491.931768] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 0 [ 3491.941238] UBI: run torture test for PEB 4051 [ 3491.958377] UBI warning: ubi_ro_mode: switch to read-only mode [ 3491.972541] UBI error: ubi_create_volume: cannot create volume 0, error -30 ubimkvol: error!: cannot UBI create volume error 30 (Read-only file system) debianplug:/dev# [ 3492.036981] UBI error: ubi_io_write: read-only mode [ 3492.041908] UBI error: erase_worker: failed to erase PEB 4051, error -30 [ 3492.048643] UBI error: do_work: work failed with error code -30 [ 3492.054601] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -30
|
|
|
|
|