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)

EgyptRocks265 2014-01-04 13:21

Re: Introducing ubiboot N9 (multiboot OS loader)
 
hey juicemee after a very long time i'm sure the problem wasn't with the kernel everytime i flash a kernel ( which i don't have to do thanks to ubiboot)

it takes about half and hour to locate and then after instantly not sure why ! :0

also this is probably the wrong place but with nitdroid when i enter my ssdi and passwords (which is wpa) it says failed to connect would you happen to know why if not then all is well :) !

cthorell 2014-01-04 13:37

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

Originally Posted by juiceme (Post 1403541)
Released ubiboot-02 (integrated) version, rev. 0.3.6. minimal

Thanks juiceme, that solved the problem. Just got Sailfish running on my N9 :)

neph 2014-01-04 16:33

Re: Introducing ubiboot N9 (multiboot OS loader)
 
First of all, hello everyone!

I'm interested in differences in charging between ubiboot and factory harmattan.

I've found some informations here:

http://wiki.maemo.org/Ubiboot#Charging

Quote:

Charging

Ubiboot handles rtc and usb events to boot up device from power off state:

a) to Ubiboot telnet console (when connected to PC USB), device will not be charged.

b) to configured default kernel (harmattan) to charge (when connected to wall charger).

c) to configured default kernel (harmattan) to trigger alarm.


"Case a" works flawlessly.

"Case b" sometimes does not work, but reboots and then starts up Ubiboot console/screen (not charging).

"Case c" needs some precondition. Make sure you have shutdown your device from Harmattan. Otherwise the alarm may not be triggered in NITDroid or will not be triggered in Nemo.
So let's transform this into real world scenario. Is it possible to brick the phone because of battery run out and ubiboot won't charge them by simply plug a wall charger? By bricking the phone I also mean a situation when phone won't get up by itself and there is a need for some emergency tricks.

juiceme 2014-01-04 18:26

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

Originally Posted by neph (Post 1403765)
I'm interested in differences in charging between ubiboot and factory harmattan.

So let's transform this into real world scenario. Is it possible to brick the phone because of battery run out and ubiboot won't charge them by simply plug a wall charger? By bricking the phone I also mean a situation when phone won't get up by itself and there is a need for some emergency tricks.

Yes, it is possible to run out of charge, but I wouldn't reallt say it's bricked, as procedure for charging exists (flasher)

It's possible to do also, for example if you select an OS menu entry and after that leave it there, without booting to a kernel. The device will run out of battery in a few hours.

I am thinking of the charging scheme, but have not yet really found a simple solution :(

Ta76eem 2014-01-05 10:42

Re: Introducing ubiboot N9 (multiboot OS loader)
 
after flashing ubiboot kernel I get:
no boot menu script found..
..
ubiboot-02.menu.cpio and ubiboot.conf are already in /home/user/MyDocs/boot

juiceme 2014-01-05 11:00

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

Originally Posted by Ta76eem (Post 1403923)
after flashing ubiboot kernel I get:
no boot menu script found..
..
ubiboot-02.menu.cpio and ubiboot.conf are already in /home/user/MyDocs/boot

Check that the name of the CPIO file is correct in the ubiboot.conf file. (key G_UBIBOOT_ARCHIVE)

Ta76eem 2014-01-05 11:26

Re: Introducing ubiboot N9 (multiboot OS loader)
 
it is the same as the file in /home/user/MyDocs/boot

Ta76eem 2014-01-05 13:22

Re: Introducing ubiboot N9 (multiboot OS loader)
 
they both have the same file name

juiceme 2014-01-05 15:38

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

Originally Posted by Ta76eem (Post 1403975)
they both have the same file name

Hmm. Which exactly is the error message, is it "Boot menu archive not found!" or is it "Boot menu script not found!"

Can you post what gets written in your /home/user/MyDocs/boot/ubiboot.log ?

Ta76eem 2014-01-05 17:24

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

Originally Posted by juiceme (Post 1404012)
Hmm. Which exactly is the error message, is it "Boot menu archive not found!" or is it "Boot menu script not found!"

Can you post what gets written in your /home/user/MyDocs/boot/ubiboot.log ?

it is Boot Menu Script not found
no ubiboot.log was created

Lucazz990 2014-01-05 18:09

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I had the same problem yesterday, but reflashing ubiboot kernel fixed that!!

marmistrz 2014-01-05 19:58

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi,

I've just installed ubiboot, and have some doubts...

1. I can't notice the dfl openmode kernel. Should it be added manually
2. What's the difference between dfl openmode and the l2fix openmode?
3. What are those other entries in the Harmattan section of ubiboot?

Thanks

juiceme 2014-01-05 21:22

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

Originally Posted by Ta76eem (Post 1404036)
it is Boot Menu Script not found
no ubiboot.log was created

Do you have an older ubiboot version installed, then?
If so, your log will be in /var/log/ubiboot.log

juiceme 2014-01-05 21:24

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

Originally Posted by marmistrz (Post 1404066)
Hi,

I've just installed ubiboot, and have some doubts...

1. I can't notice the dfl openmode kernel. Should it be added manually
2. What's the difference between dfl openmode and the l2fix openmode?
3. What are those other entries in the Harmattan section of ubiboot?

Thanks

There are a fair number of "example entries" as the config was oiginally pulled from my device which had a number of test kernels installed :D

peterleinchen 2014-01-05 22:11

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@juiceme

It seems there are a few people out there fetching older revisions/kernels and 'claiming' a non-working ubiboot.

One suggestion/beg from my side.
What would you think of changing the naming style of your revisions to something like
ubiboot_vX.Y.Z_yyyymmdd ?
This way the listing would always be ordered and easily searchable. And it would make it easier to fetch the latest revision.
The way you give dates is local way and confusing (english/american style) /and not sortable. [in your notation: 15 aug is earlier than 17 may, but later 12 dec]

Just a (late) thought. :)

juiceme 2014-01-05 22:21

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

Originally Posted by peterleinchen (Post 1404086)
@juiceme

It seems there are a few people out there fetching older revisions/kernels and 'claiming' a non-working ubiboot.

One suggestion/beg from my side.
What would you think of changing the naming style of your revisions to something like
ubiboot_vX.Y.Z_yyyymmdd ?
This way the listing would always be ordered and easily searchable. And it would make it easier to fetch the latest revision.
The way you give dates is local way and confusing (english/american style) /and not sortable. [in your notation: 15 aug is earlier than 17 may, but later 12 dec]

Just a (late) thought. :)

You do have a point there... In the newer versions am using the finnish way of marking dates, that is ddmmyyyy and indeed that does not sort correctly with unix directory listing. On some of the earlier releases I used just what I happened to make it at that given moment. :(

Maybe I should put a directory "histrorical" under the ubiboot main directory and move all non-current stuff there :D

However the version number is the more important indication on which is the latest version.

peterleinchen 2014-01-05 22:28

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

Originally Posted by juiceme (Post 1404091)
Maybe I should put a directory "historical" under the ubiboot main directory and move all non-current stuff there :D

However the version number is the more important indication on which is the latest version.

Yeah, maybe. :D
But even same revision had small (date numbered) updates.

Again, just a thought. I will find my way through your 'jungle' (erm sorry: 'ice cave') ;)

marmistrz 2014-01-06 09:09

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

Originally Posted by juiceme (Post 1404078)
There are a fair number of "example entries" as the config was oiginally pulled from my device which had a number of test kernels installed :D

Thanks, but repeating my question, which wasn't replied :)
2. What's the difference between dfl openmode and the l2fix openmode?

coderus 2014-01-06 09:24

Re: Introducing ubiboot N9 (multiboot OS loader)
 
l2fix need for faster booting kernel with kexec()

and all custom kernels are openmode :)

juiceme 2014-01-06 14:25

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

Originally Posted by marmistrz (Post 1404158)
Thanks, but repeating my question, which wasn't replied :)
2. What's the difference between dfl openmode and the l2fix openmode?

It is exactly as @coderus states. The dfl-openmode is the simplest aegis-neutering modification on kernel, it stubs out the aegisfs calls so that if caller is root everything is always allowed.
(in contrast, in the Closed Mode kernels everything is checked against the aegis capability flags the caller is holding, regardless of whether it is user or root...)

The l2-fix is a change on the L2-cache enabling code in the kernel chainloading sequence when it is started as a 2nd stage kernel via kexec() from previously running kernel. There are number of things that are done when kernel is restarted, among them the L2 cache is turned off before the kexec() call.
Now, originally the cache was not re-enabled until very much later, actually only after the CPU went to sleep first time after a whole lot of things should already been initialized and done. This meant that the boot was extremely slow, taking minutes of wathching the spinner rotate before it got to user-interactive stage.

Lucazz990 2014-01-07 15:18

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hey guy's just a question! If i want to reinstall ubiboot and sailfish again and enter in open mode with back-to-back procedure (last time i did not) can i go straight with flashing firmware + emmc or do i have to remove the Alt_OS partition before with the autopartition.sh script as in the nemo wiki? Thanks :)

peterleinchen 2014-01-07 19:59

Re: Introducing ubiboot N9 (multiboot OS loader)
 
As mentioned a few times in the thread (but easy to miss ;)), just give the
Code:

--no-preserve
parameter with flashing command. This will restore original partition layout.

Lucazz990 2014-01-07 20:55

Quote:

Originally Posted by peterleinchen (Post 1404630)
As mentioned a few times in the thread (but easy to miss ), just give the
Code:

--no-preserve
parameter with flashing command. This will restore original partition layout.

It's a 110 pages thread, have mercy :D
So it's ok if the command looks like:

Code:

flasher -f -F main.bin -F emmc.bin --no-preserve
One more thing, with back-to-back flashing there's no way to remove the scary warranty message right?

peterleinchen 2014-01-07 21:06

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Yep.

And there is (or should be as never tested by me :) nor confirmed).
Flash closed, boot, enable developer mode, remove warning message, flash closed rootfs, (do NOT boot), flash open mode kernel, boot.

Lucazz990 2014-01-07 23:27

Quote:

Originally Posted by peterleinchen (Post 1404646)
Yep.

And there is (or should be as never tested by me nor confirmed).
Flash closed, boot, enable developer mode, remove warning message, flash closed rootfs, (do NOT boot), flash open mode kernel, boot.

I thought that flashing the firmware also restores the scary warranty message!! It would be nice if this works :)

Garp 2014-01-08 00:52

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

Originally Posted by Lucazz990 (Post 1404665)
I thought that flashing the firmware also restores the scary warranty message!! It would be nice if this works :)

It does if you don't boot after ex.
sudo flasher -F <yourmainfirmware.bin> -f

but immediately run ex.
sudo flasher -a <yourmainfirmware.bin> -k zImage_2.6.32.54-openmode_l2fix --flash-only=kernel -f -R

http://wiki.maemo.org/Ubiboot#Moving...g_Filebox_Root

taixzo 2014-01-08 03:30

Re: Introducing ubiboot N9 (multiboot OS loader)
 
So, as I understand it, Firefox OS is basically set up as a second copy of Nitdroid. What would I need to do to get a third copy of Nitdroid booting? I've made a copy of my Nitdroid folder, and added entries in the "Ubuntu" section of ubiboot, but it just gives me a black screen.

coderus 2014-01-08 04:25

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@taixzo you need to edit preinit to load os from folder you have, call it preinit_nitdroid2 and add it to ubuntu entry in ubiboot config

peterleinchen 2014-01-08 06:29

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@taixzo
Do you really need 2 nitdroid entries selectable in menu? Then proceed as coderus said.

I also have two nitdroid instances, but have to do a command line one-liner on harmattan before booting up (as I normally know which instance I want).
I have two nitdroid folders named nit_ics and nit_jelly. Furthermore one link named nitdroid (the one mentioned in preinit_nitdroid) pointing to one of those two folders.
Easy peasy. :D

Shadwblade2652 2014-01-09 05:06

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I have the sailfish version (made only for dualbooting with sfos), and I want to uninstall it and change it so I can boot into Nitdroid or Firefox OS.

Help needed :)

juiceme 2014-01-09 06:05

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

Originally Posted by Shadwblade2652 (Post 1405017)
I have the sailfish version (made only for dualbooting with sfos), and I want to uninstall it and change it so I can boot into Nitdroid or Firefox OS.

Help needed :)

Well, what you need is the 6-boot-icon version of the CPIO and a new ubiboot.conf.
You can download a default set from here, for example.
The tarfile includes also the kernel but you do not need that as you already have it flashed on your device.
  • 1. extract the files from the archive and copy the ubiboot-02.menus.cpio to your MyDocs/boot/
  • 2. edit the provided ubiboot.conf so that you have a working configuration and copy it to your MyDocs/boot/
    Note that in your current (SF only) conf you have only entries for Harmattan (G_OS1_*) and Sailfish (G_OS4_*)
    In your new you need to move the sections of those to your G_OS2_* and G_OS6_* because the placement of the icons determines the configuration section that is used :D
    Then fix the remaining G_OS* entries to your liking.

Shadwblade2652 2014-01-09 06:10

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

Originally Posted by juiceme (Post 1405019)
Well, what you need is the 6-boot-icon version of the CPIO and a new ubiboot.conf.
You can download a default set from here, for example.
The tarfile includes also the kernel but you do not need that as you already have it flashed on your device.
  • 1. extract the files from the archive and copy the ubiboot-02.menus.cpio to your MyDocs/boot/
  • 2. edit the provided ubiboot.conf so that you have a working configuration and copy it to your MyDocs/boot/
    Note that in your current (SF only) conf you have only entries for Harmattan (G_OS1_*) and Sailfish (G_OS4_*)
    In your new you need to move the sections of those to your G_OS2_* and G_OS6_* because the placement of the icons determines the configuration section that is used :D
    Then fix the remaining G_OS* entries to your liking.

okay so that's how to change my sfos ubiboot,
but how do I install nitdroid from there? It extracts to a different folder. Or can I just change the name in the entry to Nitdroid and extract the nitdroid files to /sailfish? Would this be a problem? I would assume that the bootloader is different for each os, at least the steps to load each different one.

juiceme 2014-01-09 06:54

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

Originally Posted by Shadwblade2652 (Post 1405020)
okay so that's how to change my sfos ubiboot,
but how do I install nitdroid from there? It extracts to a different folder. Or can I just change the name in the entry to Nitdroid and extract the nitdroid files to /sailfish? Would this be a problem? I would assume that the bootloader is different for each os, at least the steps to load each different one.

Nothing to fo with /sailfish, this!
Nitdroid you need to install just as always, just make a directory /home/nitdroid/ and extract your FS image there.
Don't forget to install the preinit files for Nitdroid :)
And you also need to copy a Nitdroid-type kernel to your /boot directory as the default one you have now (L2-fixed Open Mode) does not work with Nitdroid...

The bootloader (ubiboot) is same for all the OS'es you can imagine, you just specify the kernel and initscript in your ubiboot.conf file for each OS/kernel you want to run.

Shadwblade2652 2014-01-09 07:01

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

Originally Posted by juiceme (Post 1405026)
Nothing to fo with /sailfish, this!
Nitdroid you need to install just as always, just make a directory /home/nitdroid/ and extract your FS image there.
Don't forget to install the preinit files for Nitdroid :)
And you also need to copy a Nitdroid-type kernel to your /boot directory as the default one you have now (L2-fixed Open Mode) does not work with Nitdroid...

The bootloader (ubiboot) is same for all the OS'es you can imagine, you just specify the kernel and initscript in your ubiboot.conf file for each OS/kernel you want to run.

So where do I install the preinits?

So what you're telling me is:
1. I need a different kernel. I put this in /boot of my harmattan partition?

2. I extract Nitdroid to /home/nitdroid

3. I install the modified version of ubiboot.


Okay this all makes sense, but the problem is, I have the 16GB model. My entire user space is just 8GB. Is there a way to partition more space towards the user?

juiceme 2014-01-09 07:25

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

Originally Posted by Shadwblade2652 (Post 1405029)
So where do I install the preinits?

The preinit files for Harmattan, Nitdroid and FirefoxOS (if you need that) all should be located in the /sbin/ directory of your Harmattan installation.


Quote:

Originally Posted by Shadwblade2652 (Post 1405029)
So what you're telling me is:
1. I need a different kernel. I put this in /boot of my harmattan partition?

Yes. You need to get that kernel from the same place you get your Nitdroid FS archive.
Note that there are few different Nitdroid kernel varieties that @e-yes has made, and you want the one that contains the L2-fix, it boots quicker when launched from ubiboot.


Quote:

Originally Posted by Shadwblade2652 (Post 1405029)
2. I extract Nitdroid to /home/nitdroid

Yes.

Quote:

Originally Posted by Shadwblade2652 (Post 1405029)
3. I install the modified version of ubiboot.

You only need to get the CPIO and ubiboot.conf, like I say in my posting http://talk.maemo.org/showpost.php?p...postcount=1111
Actually, if you look in the top of your ubiboot.conf you notice a key G_UBIBOOT_ARCHIVE which specifies the CPIO to use; You can have multiple CPIO's in your device at the same time, the one given in your config is the one used.
(The CPIO contains the menus and graphics, it is tha part that defines the look and feel of your ubiboot)


Quote:

Originally Posted by Shadwblade2652 (Post 1405029)
Okay this all makes sense, but the problem is, I have the 16GB model. My entire user space is just 8GB. Is there a way to partition more space towards the user?

By default 16GB devices are partitioned like this;
/MyDocs 10G
/root 4G
/home 2G

Now, as you have SailfishOS your device looks like this:
/MyDocs 6G
/ALT_OS 4G
/root 4G
/home 2G

Depending on the applicatons and data you have on your device it is usually either your /root or /home that runs out of memeory.
If you have lot of applications, your /root runs out
if you have a lot of emails, your /home runs out

When you install Nitdroid it is by default suggested that you do it in your /home, but nothing really prevents you putting it on /root if there's more space there.
The only restriction is that you cannot put it on your /MyDocs as that's formatted as FAT and android needs to live on an EXTFS partition.
(Well I have formated my /MyDocs also as ext4, but that is another story alltogether)

Shadwblade2652 2014-01-09 08:10

Re: Introducing ubiboot N9 (multiboot OS loader)
 
How do I flash my new kernel without screwing over the entire OS? I still do want openmode on my N9, can I have both at once?

juiceme 2014-01-09 08:28

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

Originally Posted by Shadwblade2652 (Post 1405042)
How do I flash my new kernel without screwing over the entire OS? I still do want openmode on my N9, can I have both at once?

If you have ubiboot, you already are in Open Mode.
What do you want to flash anyway?

Shadwblade2652 2014-01-09 08:32

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

Originally Posted by juiceme (Post 1405046)
If you have ubiboot, you already are in Open Mode.
What do you want to flash anyway?

Well don't I need a new kernel to run nitdroid since it isn't compatible with openmode?

juiceme 2014-01-09 08:39

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

Originally Posted by Shadwblade2652 (Post 1405048)
Well don't I need a new kernel to run nitdroid since it isn't compatible with openmode?

You need a new kernel, yes, but there's no flashing required :)

ubiboot is a boot loader, it loads your selected kernel from a file in userspace filesystem to memory and boots it.
That's the reason it can boot many OS'es, each with up to 6 selectable kernels. (there's the README document that tells you some things on how it works...)

Now, what you do, is you just copy the kernel image that's suitable for Nitdroid into /boot/ directory of your Harmattan installation, the same place that you now have your L2-fixed kernel, and then you write up a configuration entry for it in your ubiboot.conf file.

That's it. No flashing required, never again :)

juiceme 2014-01-09 12:37

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Did some re-organizing of the ubiboot repositories on Swagman and Skeiron.
  • moved old stuff under "historical"
  • updated the tiny-kernel version to frozen one

ADDITION: There's also a new beautiful ubiboot theme made by @FotixChiang called "Arctic"
  • The icons are better drawn than in my version :D
  • The menu screen has white background
  • It is compatible with ubiboot 0.3.5 and 0.3.6
  • Get it from swagman.org or from skeiron repositories

This is English localization but there is also a Chinese version available :)


All times are GMT. The time now is 12:08.

vBulletin® Version 3.8.8