This is my first post here. I have only limited experience with devices like the sheevaplug, but hopefully my explanations will make sense.
I first followed the 'Installing Debian to Flash' howto:
http://plugcomputer.org/plugwiki/index.php/Installing_Debian_To_FlashI installed debian on a USB-key, and later got stuck at the ubimkvol command when trying to convert the internal flash tu ubifs:
ubimkvol /dev/ubi0 -N rootfs -m
Set volume size to 517386240
[10341.904532] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 bytes
[10341.913664] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 0
[10341.923269] UBI: try another PEB
[10341.926701] UBI: run torture test for PEB 0
[10341.931504] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 4055:512, written 0 bytes
[10341.940874] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 4055
[10341.976543] UBI: try another PEB
[10342.147505] UBI: PEB 0 passed torture test, do not mark it a bad
[10342.155682] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 4054:512, written 0 bytes
[10342.165058] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 4054
[10342.175067] UBI: run torture test for PEB 4055
[10342.196798] UBI: try another PEB
[10342.376145] UBI: PEB 4055 passed torture test, do not mark it a bad
[10342.384607] UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 bytes
[10342.393726] UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 0
[10342.403170] UBI: run torture test for PEB 4054
[10342.419413] UBI warning: ubi_ro_mode: switch to read-only mode
[10342.436434] UBI error: ubi_create_volume: cannot create volume 0, error -30
ubimkvol: error!: cannot UBI create volume
error 30 (Read-only file system)
My problem seems very similar to this thread:
http://plugcomputer.org/plugforum/index.php?topic=1279.msg8119#msg8119I followed pingtoo's advice, and went along this howto:
http://www.plugcomputer.org/plugwiki/index.php/Enabling_UBIFSMy system is on a USB-key. I plugged the key into my laptop, and made the ubi.img file this way:
sudo mkfs.ubifs -r /mnt/sheeva/ -m 2048 -e 129024 -c 4096 -o ubifs.img
sudo ubinize -v -o ubi.img -m 2048 -p 128KiB -s 512 ubi.cfg
I copied ubi.img (242MB) back to the USB-key, rebooted the sheevaplug with it, and went along:
ubiformat /dev/mtd2 -s 512 -f ubi.img
ubiformat: mtd2 (nand), size 531628032 bytes (507.0 MiB), 4056 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 4055 -- 100 % complete
ubiformat: 4052 eraseblocks have valid erase counter, mean value is 5
ubiformat: 2 eraseblocks are supposedly empty
ubiformat: bad eraseblocks: 1075, 2684
ubiformat: flashing eraseblock 449 -- 22 % complete ubiformat: error!: bad UBI magic 0x5744444e, should be 0x55424923
ubiformat: error!: bad EC header at eraseblock 449 of "/home/shami/ubi/ubi.img"
I tried the procedure twice, with similar errors. Did I misunderstand how to create ubi.img on another pc? Is there a proper way?
Thanks in advance for any help.