Active Topics

 


Reply
Thread Tools
Posts: 40 | Thanked: 6 times | Joined on Jul 2011
#31
i got this error
Code:
~ # /usr/sbin/ubiattach /dev/ubi_ctrl -m 4
ubiattach: error!: cannot attach mtd4
error 1 (Operation not permitted)
how to proceed?
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#32
Originally Posted by death_jax View Post
Since it is necessary to flash the device with another kernel than the vanilla, also with these ones, ubiboot or l2fix patched, there are the usual OpenMode kernel bugs, like crashing when you install apps, etc..?
I don't understand what bugs you mean, I have been running my device always in open mode, (both PR1.2 and with PR1.3 since it came out) and I have never gotten my device crashed, not when installing anything nor ever else...

Can you point me to the cases when open mode has caused such problems?
 

The Following User Says Thank You to juiceme For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#33
Originally Posted by Phoenix986 View Post
i got this error
Code:
~ # /usr/sbin/ubiattach /dev/ubi_ctrl -m 4
ubiattach: error!: cannot attach mtd4
error 1 (Operation not permitted)
how to proceed?
Hi!

Did the previous step (/usr/sbin/flash_erase /dev/mtd4 0 0) succeed?
Are you doing this as root?
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 40 | Thanked: 6 times | Joined on Jul 2011
#34
Originally Posted by juiceme View Post
Hi!

Did the previous step (/usr/sbin/flash_erase /dev/mtd4 0 0) succeed?
Are you doing this as root?
after a reboot it worked without error

EDIT: now i get this
Code:
~ # mount -t ubifs ubi0:var /mnt
mount: permission denied (are you root?)
this is the previous
Code:
~# /usr/sbin/ubiattach /dev/ubi_ctrl -p /dev/mtd4
UBI device number 0, total 1833 LEBs (473001984 bytes, 451.1 MiB), available 1811 LEBs (467324928 bytes, 445.7 MiB), LEB size 258048 bytes (252.0 KiB)

~# /usr/sbin/ubimkvol /dev/ubi0 -N var -m
Set volume size to 467324928
Volume ID 0, size 1811 LEBs (467324928 bytes, 445.7 MiB), LEB size 258048 bytes (252.0 KiB), dynamic, name "var", alignment 1

~# mount -t ubifs ubi0:var /mnt
mount: permission denied (are you root?)

Last edited by Phoenix986; 2013-03-03 at 20:59.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#35
Originally Posted by Phoenix986 View Post
after a reboot it worked without error

EDIT: now i get this
Code:
~ # mount -t ubifs ubi0:var /mnt
mount: permission denied (are you root?)
And you are trying that as root (devel-su) ?
Do you have something else already mounted at /mnt ?
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 40 | Thanked: 6 times | Joined on Jul 2011
#36
Originally Posted by juiceme View Post
And you are trying that as root (devel-su) ?
Do you have something else already mounted at /mnt ?
yes i'm root
i don't think to have something mounted on /mnt. how i can check?

EDIT: Checked i have nothing mounted

Last edited by Phoenix986; 2013-03-03 at 21:28.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#37
Originally Posted by Phoenix986 View Post
yes i'm root
i don't think to have something mounted on /mnt. how i can check?
Just do a command "mount" and see if there is some line that says something like "xxxx on /mnt/"
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 40 | Thanked: 6 times | Joined on Jul 2011
#38
Originally Posted by juiceme View Post
Just do a command "mount" and see if there is some line that says something like "xxxx on /mnt/"
Nothing
Code:
:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,noatime,errors=remount-ro,barrier=1,stripe=8,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=504248k,nr_inodes=126062,mode=755)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,noatime,size=4096k)
tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=512k)
none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
/dev/mmcblk0p3 on /home type ext4 (rw,noatime,errors=remount-ro,barrier=1,stripe=8,data=ordered)
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,nosuid,nodev,noexec,noatime,nodiratime,uid=29999,fmask=0133,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,rodir,errors=remount-ro)
none on /sys/kernel/debug type debugfs (rw,relatime)
aegisfs on /var/run/applauncherd type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/.facebook/private type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/.odnp-fpcd/private type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/.mms/private type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/.odnp/private type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/.positioningd/private type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/.slpgwd/layer type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/private type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /home/user/.signon/private type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /var/cache/timed/aegis type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
aegisfs on /etc/ssl/certs type fuse.aegisfs (rw,nosuid,nodev,relatime,user_id=30004,group_id=30010,allow_other)
cgroup on /syspart type cgroup (rw,relatime,freezer,memory,cpu)
/dev/mapper/signonfs on /home/user/.signon/signonfs-mnt type ext2 (rw,sync,noexec,relatime,errors=continue)
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#39
Fairly strange, that.

I tried several combinations, mounting with/without the ubi device attached etc, and only time that error happens is when you try to do it as user.
As root, it never gives that error.
 

The Following User Says Thank You to juiceme For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#40
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.
 

The Following User Says Thank You to juiceme For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:58.