View Single Post
Posts: 40 | Thanked: 6 times | Joined on Jul 2011
#42
Originally Posted by juiceme View Post
One thing came to my mind... Yo said you booted the device at some point?

After you boot the device, you must attach the ubi device before mounting, sou you need to do this:

Code:
/usr/sbin/ubiattach /dev/ubi_ctrl -m 4
mount -t ubifs ubi0:var /mnt/
You never need to give the commands for flash_erase or ubimkvol again, but every time you want to mount it, you need to attach it before that.
i reboot after (/usr/sbin/flash_erase /dev/mtd4 0 0)
because (/usr/sbin/ubiattach /dev/ubi_ctrl -m 4) dont work

after reboot i done
/usr/sbin/ubiattach /dev/ubi_ctrl -m 4
/usr/sbin/ubimkvol /dev/ubi0 -N var -m
mount -t ubifs ubi0:var /mnt
and i got error on the mount

now i tryed to reboot again and as you said i done
Code:
/usr/sbin/ubiattach /dev/ubi_ctrl -m 4
mount -t ubifs ubi0:var /mnt/
but i have the same error on the mount
Code:
RM696-21-3_PR_001:~# /usr/sbin/ubiattach /dev/ubi_ctrl -m 4
UBI device number 0, total 1833 LEBs (473001984 bytes, 451.1 MiB), available 0 LEBs (0 bytes), LEB size 258048 bytes (252.0 KiB)
RM696-21-3_PR_001:~# mount -t ubifs ubi0:var /mnt
mount: permission denied (are you root?)