Reply
Thread Tools
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#981
Originally Posted by juiceme View Post
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's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#982
confused with what? you using mmcblk0p5 for nitdroid, set G_OS1_PARTITION to 5 then.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#983
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?
 
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#984
Originally Posted by coderus View Post
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)).

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.
 
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#985
Originally Posted by juiceme View Post
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's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#986
-- 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.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-12-17 at 08:42.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#987
Originally Posted by taixzo View Post
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.

Originally Posted by taixzo View Post
No idea; it came with Nemo, I didn't touch it.
Why did you talk about Nemo preint, then??
 

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
#988
Originally Posted by taixzo View Post
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
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#989
Originally Posted by peterleinchen View Post
-- 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.

Originally Posted by juiceme View Post
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.

Originally Posted by juiceme View Post
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.

Originally Posted by juiceme View Post
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.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#990
Originally Posted by taixzo View Post
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....)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:49.