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)

plourde 2013-10-30 05:12

Re: Introducing ubiboot N9 (multiboot OS loader)
 
right now i have sillyboot on my device for NITDroid and its working, I wanted to transition over to ubiboot, is there an easy way to install this without any reflashing? I would like to try a few different kernels and the device I am used to in my N900 but i got this phone off ebay and have loved it ever since, any guidance would be very appreciated, I am just a bit confused. Thanks again for keeping this project going and giving all us N9 users fresh with all these great tools

Hurrian 2013-10-30 05:21

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

Originally Posted by plourde (Post 1383289)
is there an easy way to install this without any reflashing?

Install ubiboot as usual.
Ubiboot runs /sbin/preinit_harmattan or preinit_nitdroid, skipping over sillyboot (custom /sbin/preinit).

plourde 2013-10-30 05:28

Re: Introducing ubiboot N9 (multiboot OS loader)
 
so my device is ready? im sorry for bothering you I just dont want to make my device unbootable, how would i go upon removing sillyboot and swapping to ubiboot? thanks again, I will need to do lots of research on where to put kernels and what to edit to make it boot different kernels and OS's thanks for the patience and sorry again

juiceme 2013-10-30 07:24

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@plourde, you do not need to remove sillyboot at all, sillyboot and ubiboot operate at different boot phases.

How sillyboot works:
  • boot loader starts up the flashed kernel just as usual
  • last part of kernel startup is call to /sbin/preinit which does number of things before launching up /sbin/init
  • sillyboot is a modification of /sbin/preinit which allows starting up different init, based on user selection

How ubiboot works:
  • boot loader starts up the ubiboot kernel instead of device kernel
  • ubiboot runs a self-contained linux minidistro which has many things, including the boot menu selection
  • based on user selection, ubiboot loads up the next level kernel and set sup the correct boot environment.
    a) for Harmattan, it prepares kernel to run /sbin/preinit_harmattan from mmcblk0p2.
    b) for Nitdroid, it prepares kernel to run /sbin/preinit_nitdroid from mmcblk0p2.
    c) for Nemo, it prepares kernel to run /sbin/init from mmcblk0p4.
    d) for Firefox, it prepares kernel to run /sbin/preinit_firefox from mmcblk0p2.
    e) and so on...
  • last thing what happens, is that ubiboot executes the loaded 2nd level kernel, which goes on and starts the prepared preinit/init file.

So, now you understand that when you use ubiboot, your sillyboot will never be run at all, the modified /sbin/preinit that is sillyboot is sidestepped totally.

To install ubiboot, this is the simple list of things what to do:
1.) copy the file ubiboot.conf to your /home/userMyDocs/boot/ directory
2.) copy the cpio archive to your /home/user/MyDocs/boot/ directory
3.) copy your kernels to /boot/ directory
4.) copy the preinits to /sbin/ directory
5.) flash the ubiboot kernel

That's it. And remember to check that ubiboot.conf has the correct list of kernels that you copied to /boot/

There are dozens of things you could do differently but this is the basic setup.

Garp 2013-10-30 08:38

@juiceme before install ubiboot would't it be an idea or needed to establish ext4 (or 2,3) partition to avoid the limitation of 4GB for operating systems etc. and make effective use of space on a 16GB?
I have used 3GB before ubiboot with only one (Openmode) kernel?

juiceme 2013-10-30 08:50

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

Originally Posted by Garp (Post 1383320)
@juiceme before install ubiboot would't it be an idea or needed to establish ext4 (or 2,3) partition to avoid the limitation of 4GB for operating systems etc.?
I have used 3GB before ubiboot with only one (Openmode) kernel?

Do you mean, to change your mmcblk0p1 from vfat to some better FS?
The 4G limitation is only for files on vfat, not filesystems. Or are you talking about a case where you have a loop-mounted filesystem on a file on your vfat partition, something like EasyDebian?
In that case, yes, it's better to change the vfat to something else, like exfat or ext4fs.

Garp 2013-10-30 09:05

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

Originally Posted by juiceme (Post 1383324)
Do you mean, to change your mmcblk0p1 from vfat to some better FS?
The 4G limitation is only for files on vfat, not filesystems. Or are you talking about a case where you have a loop-mounted filesystem on a file on your vfat partition, something like EasyDebian?
In that case, yes, it's better to change the vfat to something else, like exfat or ext4fs.

I'm thinking of doing this:
http://talk.maemo.org/showthread.php?t=86662

and this http://talk.maemo.org/showpost.php?p...3&postcount=28

TMavica 2013-10-30 09:15

I will wait for nitdroid support ext2 etc format, before formating MyDocs

but seem not much news

Garp 2013-10-30 09:29

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

Originally Posted by TMavica (Post 1383327)
I will wait for nitdroid support ext2 etc format, before formating MyDocs

but seem not much news

What about Nemo etc don't support ext 2 etc. either?

juiceme 2013-10-30 09:40

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

Originally Posted by Garp (Post 1383326)

Well, that mostly concerns if you want to mount your MyDocs to some windows-computer.
If you only use Linux, or if you never export your USB drives you can just format your mmcblk0p1 as ext4fs, it will work like that, no problems.

This has no effect to ubiboot, of course, excepting the fact that people normally put ubiboot configuration files in MyDocs/boot/ directory as that is the default location.
(but as well you could put them in mmcblk0p2:/boot/, it does not matter :D)


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

vBulletin® Version 3.8.8