maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Introducing ubiboot N9 (multiboot OS loader) (https://talk.maemo.org/showthread.php?t=89345)

Phoenix986 2013-03-03 15:48

Re: Introducing ubiboot N9 (multiboot OS loader)
 
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?

juiceme 2013-03-03 20:27

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by death_jax (Post 1326567)
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?

juiceme 2013-03-03 20:37

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by Phoenix986 (Post 1326598)
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?

Phoenix986 2013-03-03 20:39

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1326650)
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?)


juiceme 2013-03-03 21:06

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by Phoenix986 (Post 1326651)
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 ?

Phoenix986 2013-03-03 21:12

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1326660)
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

juiceme 2013-03-03 21:28

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by Phoenix986 (Post 1326661)
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/"

Phoenix986 2013-03-03 21:31

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1326665)
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)


juiceme 2013-03-03 21:44

Re: Introducing ubiboot N9 (multiboot OS loader)
 
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.

juiceme 2013-03-03 21:52

Re: Introducing ubiboot N9 (multiboot OS loader)
 
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.


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

vBulletin® Version 3.8.8