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)

taixzo 2013-12-17 07:27

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

Originally Posted by juiceme (Post 1397413)
I do not understand what you mean by Nemo preinit??
Nemo (Like SailfishOS) do not use /sbin/preinit* on the Harmattan root partition, instead they use /sbin/init from their own partition... :)

ok, I am slightly confused. I thought that all the preinits were in the harmattan partition, as that was where the preinit_harmattan and preinit_nitdroid were. So the start of my entry for nitdroid looks like:

Code:

G_OS1_NUM=3
G_OS1_AUTOBOOT=0
G_OS1_PARTITION=3
G_OS1_NAME="Nitdroid"

On rootfs partition (/dev/mmcblk0p3 on my setup) in /sbin/ I have /sbin/preinit, /sbin/preinit_harmattan, /sbin/preinit_firefox and /sbin/preinit_nitdroid. And the partition with my nitdroid files is /dev/mmcblk0p5, which contains /nitdroid, /firefox_os, /developer and /user.

coderus 2013-12-17 07:36

Re: Introducing ubiboot N9 (multiboot OS loader)
 
confused with what? you using mmcblk0p5 for nitdroid, set G_OS1_PARTITION to 5 then.

juiceme 2013-12-17 07:44

Re: Introducing ubiboot N9 (multiboot OS loader)
 
For Nitdroid there's a lot of possibilities to set it up, since it's started as a chroot environment, so basically where you put it and how decrees what you mount in your preinit.

But I still wonder about your Nemo preinit, what do you use that for?

taixzo 2013-12-17 08:02

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

Originally Posted by coderus (Post 1397419)
confused with what? you using mmcblk0p5 for nitdroid, set G_OS1_PARTITION to 5 then.

I was confused because the comments say that G_OS_PARTITION refers to the partition that the kernel is on, and I thought the kernel was on my rootfs partition (at any rate, I've got a nitdroid kernel in /boot on mmcblk0p3, and setting G_OS1_PARTITION to 5 gives me the dreaded "Please run a maintanance boot" screen (whereas setting it to 3 merely gives me a black screen)).

Quote:

Originally Posted by juiceme
But I still wonder about your Nemo preinit, what do you use that for?

No idea; it came with Nemo, I didn't touch it.

taixzo 2013-12-17 08:03

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

Originally Posted by juiceme (Post 1397422)
For Nitdroid there's a lot of possibilities to set it up, since it's started as a chroot environment, so basically where you put it and how decrees what you mount in your preinit.

So is there something I should change in my preinit_nitdroid to make it look in the right place for things to mount?

peterleinchen 2013-12-17 08:07

Re: Introducing ubiboot N9 (multiboot OS loader)
 
-- edit
Yes, exactly (you were faster ;))

@taixzo
What about reflashing back to stock partitioning ?
And use moslo p4 for nemo/sailfish. It seems like you dnkwtd ...

If you set the nitdroid / firefox to different partition than p3/home, then you will need to adapt the specific preinits themselves internally.

@coderus: yes, as kernel (nitdroid one) is probably on harmattan rootfs. [may also be different, but here it will be like that]
--edit
erm, NO. Got also confused with taixzos layout again. ubiboot.conf needs to point to kernel partition, preinit_nitdroid needs to mount nitdroid home partition. Sorry.

juiceme 2013-12-17 08:18

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

Originally Posted by taixzo (Post 1397433)
I was confused because the comments say that G_OS_PARTITION refers to the partition that the kernel is on, and I thought the kernel was on my rootfs partition (at any rate, I've got a nitdroid kernel in /boot on mmcblk0p3, and setting G_OS1_PARTITION to 5 gives me the dreaded "Please run a maintanance boot" screen (whereas setting it to 3 merely gives me a black screen)).

You are correct, G_OS_PARTITION tells bot the location of the kernel and also that the partition is to be mounted as root for that kernel.
Setting it to 5 and having no kernel there will of course give you an error since the system will kook for kernel and find none.
Setting it to 3 will find your kernel and boot it, but if your preinit script is not finding your Nitdroid installation the kernel will panic and just hang there doing nothing.

Quote:

Originally Posted by taixzo (Post 1397433)
No idea; it came with Nemo, I didn't touch it.

Why did you talk about Nemo preint, then??

juiceme 2013-12-17 08:21

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

Originally Posted by taixzo (Post 1397434)
So is there something I should change in my preinit_nitdroid to make it look in the right place for things to mount?

Of course.
It's okay to change locations and assignments on your device just as you please but do not feel surprised if you only do a partial change to some parts of boot process and end up with nonfunctioning device :)

taixzo 2013-12-17 08:41

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

Originally Posted by peterleinchen (Post 1397439)
-- edit
Yes, exactly (you were faster ;))

@taixzo
What about reflashing back to stock partitioning ?
And use moslo p4 for nemo/sailfish. It seems like you dnkwtd ...

I wanted to have an extended partition so as to be able to run six OSs on my N9. As I already have the most essential one (Harmattan) working again, I am probably going to stick with this layout if I can.

Quote:

Originally Posted by juiceme (Post 1397443)
You are correct, G_OS_PARTITION tells bot the location of the kernel and also that the partition is to be mounted as root for that kernel.
Setting it to 5 and having no kernel there will of course give you an error since the system will kook for kernel and find none.
Setting it to 3 will find your kernel and boot it, but if your preinit script is not finding your Nitdroid installation the kernel will panic and just hang there doing nothing.

Ok, that makes sense.

Quote:

Originally Posted by juiceme (Post 1397443)
Why did you talk about Nemo preint, then??

Because along with the preinit_harmattan, preinit_nitdroid and preinit_firefox, there was just a plain preinit and as the ubiboot.conf just has "preinit" for Nemo, I assumed that that was the nemo preinit.

Quote:

Originally Posted by juiceme (Post 1397444)
Of course.
It's okay to change locations and assignments on your device just as you please but do not feel surprised if you only do a partial change to some parts of boot process and end up with nonfunctioning device :)

What changes would I need to make to the preinit script to make it boot from a different partition? I don't really understand how that script works.

juiceme 2013-12-17 09:33

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

Originally Posted by taixzo (Post 1397451)
What changes would I need to make to the preinit script to make it boot from a different partition? I don't really understand how that script works.

Well, if you review the preinit files against each other, you will see that both the Nitdroid preinit and Firefox preinit work the way that you create a mountpoint for a partition where you have the the directory that contains the filesystem, and then mount that to /mnt and chroot the /init of the OS you want to run.

I'd imagine you should be able to boot by setting that mount to point to the location of your OS.
The kernel and rootFS should be the same as Harmattan rootfs location. (altough if you want to, you might change this also, but the you'd need to have access to the /bin to get the needed tools; mount, chroot, whatever....)


All times are GMT. The time now is 16:25.

vBulletin® Version 3.8.8