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 21:54

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

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

i get the same error as user or as root

Code:

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

Code:

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

should I throw away my n9? :P :D

Phoenix986 2013-03-03 22:08

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

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


byteninja2 2013-03-04 03:41

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I also have the same error as phoenix986.

Hurrian 2013-03-04 04:48

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Are you sure you're doing this with devel-su instead of "opensh"?

death_jax 2013-03-04 07:58

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

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

I also follow the N9QTweak thread, and in the past I had Open Mode Kernel for NITdroid.
Many people, like me, when installing, for example, two or more tweaks or sub-tweaks at the same time, after the first, the second or randomly, the system close N9QTweak (with installation in progress, interrupted) and goes to home screen.. The same happened, randomly, with installation of apps: in a first time it seems that is installing, but randomly the installation crash and goes to desktop with apps not installed..
The above is common to all that have open Mode kernel.

byteninja2 2013-03-04 08:17

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

Originally Posted by Hurrian (Post 1326699)
Are you sure you're doing this with devel-su instead of "opensh"?

Yes, I typed “devel-su“, then I typed the password, and typed the command. I have tried with the open mode kernal and without.

juiceme 2013-03-04 08:55

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

Originally Posted by death_jax (Post 1326717)
I also follow the N9QTweak thread, and in the past I had Open Mode Kernel for NITdroid.
Many people, like me, when installing, for example, two or more tweaks or sub-tweaks at the same time, after the first, the second or randomly, the system close N9QTweak (with installation in progress, interrupted) and goes to home screen.. The same happened, randomly, with installation of apps: in a first time it seems that is installing, but randomly the installation crash and goes to desktop with apps not installed..
The above is common to all that have open Mode kernel.

OK, but those are bugs of N9QTweak, they are not related to open mode in any way, IMHO.

BTW, I am not using any modifications on my device like N9QTweak, FasterN9, OC modules, etc. Only extra "tweaks" I have are Profilematic and Home Screen Settings. I have NOT tested ubiboot with any other setup.

juiceme 2013-03-04 09:03

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

Originally Posted by byteninja2 (Post 1326719)
Yes, I typed “devel-su“, then I typed the password, and typed the command. I have tried with the open mode kernal and without.

Well, does your "dmesg" show anything relating to FS corruption or like? If you have too many ecc errors on the NAND then the mtd4 partition cannot be used and it will be mounted read-only.

I have been told that some of the NAND chips are quite error prone, and that is the reason Nokia did not use the mtd4 partitions for /var filesystem as was original intent.

There is another way to store the boot manager, using initramfs on a mmcblk0 partition. I will have to explore that as an alternative if many people start getting the write errors on mtd4.

humble 2013-03-04 10:19

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?)

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?)


try:

Code:

opensh
aegisctl +r

then see if that worked.

death_jax 2013-03-04 11:31

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

Originally Posted by juiceme (Post 1326723)
OK, but those are bugs of N9QTweak, they are not related to open mode in any way, IMHO.

BTW, I am not using any modifications on my device like N9QTweak, FasterN9, OC modules, etc. Only extra "tweaks" I have are Profilematic and Home Screen Settings. I have NOT tested ubiboot with any other setup.

The problem is not related with N9QTweak (there are many discussions about it), because I wrote that also with normal app installation there was that bug.. In addition to that, the N9QTweak use only dpkg -i command prompt, in fact when I tried to install some apps with command prompt, I had the same issue, the command prompt automatically exits before the installation was completed.


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

vBulletin® Version 3.8.8