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)

juiceme 2013-06-27 18:33

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

Originally Posted by ncik (Post 1355193)
I checked both the log files but can't make out what is wrong with them. Hope you could help me find it. Thanks

Based on the logs there should be no reason why Nemo would not boot, the important thing here is to look for entry "kexec_load() successful" adter the selection, this tells that the kernel was found from the specified location and after that it can be booted correctly.

There actually seems to be 2 cases kernel loading fails, and neither is with Nemo; first being the default boot (when nothing is selected from menu), it looks like then the boot does not succeed and second being Nitdroid boot with "zImage_e-yes_nitdroid+l2fix" kernel, I guess you do not have that kernel installed?

Other things that might affect the Nemo boot; when the kernel is selected at the same time the init line for it is constructed, and this uses the G_NEMO_INITSCRIPT variable, if this is incorrect, then Nemo cannot find its init and will propably fail.

Do you have possibility to use serial console to see the boot messages? You can access the RxD & GND pins fairly easily from the SIMcard slot.

topet2k12001 2013-06-27 21:29

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

Originally Posted by death_jax (Post 1355054)
In fact I didn't write to put bzImage into /boot of Nemo, I only adviced to check if the path in ubiboot.conf is the right path to that (symlink, I know ;) ) file, because maybe he could have modified the name of it, never exclude each possibily track when you helps someone.

I also know what you wrote in the wiki, I took the liberty to edit parts of it when you posted the message of its creation ;)

Thanks...sorry I think I misunderstood your prior post (English is not my first language).

Thanks as well for the help in editing!

peterleinchen 2013-06-27 22:30

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I also could not see anything wrong in logs, so ubi is not to blame.
I had similar problem when tried to boot nitdroid from p5. For me it was just a wrong link (to nitdroid folder itself). I had just black screen.
So it seems ubiboot can see the nemo kernel, but execution with given init fails.
Please give us also your ubiboot.conf.
And make sure you extracted the nemo.tar correctly (tar --numeric-owner -xf nemo.tar) on device itself and on correct partition (p4). Unzip the nemo.tar.bz2 on PC before copying to N9 of course.

peterleinchen 2013-06-27 22:41

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Another oddity report:

I already mentioned about missing UI bug when device is charging in actdead mode and an alarm is triggered. No chance to stop/snooze :(
Today I did not get any alarm at all. Reason (confirmed) was that I did shut down device from Nemo.
Like: Nemo booted, shut down, device off > no alarm

With Nidroid it was a bit different (not yet confirmed):
boot nit shut down, device off, 2s alarm rin and then device did shut down on its own again

This would need a lot of testing.
Just wanted to inform you to take care that you boot to jarmattan when you have the need for reliable alarm (wake ups)!

Maybe we can add a section to wiki to list all that stuff?

topet2k12001 2013-06-28 03:48

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

Originally Posted by peterleinchen (Post 1355247)
Another oddity report:

I already mentioned about missing UI bug when device is charging in actdead mode and an alarm is triggered. No chance to stop/snooze :(
Today I did not get any alarm at all. Reason (confirmed) was that I did shut down device from Nemo.
Like: Nemo booted, shut down, device off > no alarm

With Nidroid it was a bit different (not yet confirmed):
boot nit shut down, device off, 2s alarm rin and then device did shut down on its own again

This would need a lot of testing.
Just wanted to inform you to take care that you boot to jarmattan when you have the need for reliable alarm (wake ups)!

Maybe we can add a section to wiki to list all that stuff?

Nice idea...will add a section. :)

Just to confirm my understanding (again, English is not my first language): what your post says is basically to ensure that if you want alarms to work properly (while it is shutdown), that the last OS you should have booted (prior to shutting down) is Harmattan...did I get it right?

topet2k12001 2013-06-28 04:19

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

Originally Posted by juiceme (Post 1355084)
Normally when the Nemo rootFS is extracted to device partition, all the files needed to boot it up (including the most recent kernel at the time of package creation) are set to correct locations.
This is why ubiboot refers to the Nemo kernel as "/boot/Nemo/boot/bzImage", which in turn is the symlink inside Nemo to the vmlinuz-2.6.32.xxxxxxxx in the same directory.

It just works, out-of-the-box.

One thing, when you say the device "turns off after Nemo boot", did you check that it did not actually start Nemo, but without GUI?
If you plug the device in USB, if the IP interface appears on your computer, you can configure, for example 192.168.0.100 as the IP address there and SSH as root to your Nemo in 192.168.2.15

If that happens, rebooting the device should get you GUI on the next boot.

BTW, can you check the ubiboot logs on Harmattan side /var/log/ubiboot.log and /var/log/ubiboot.dmesg. From there you can see if there was some problem in the kernel selection.

Thanks for the tip. Right now I already have Ubiboot set up and using the N9 regularly...I will take some time during the weekend to repeat the process and see if I can replicate. And then if I am unable to replicate (which means booting Nemo with Ubiboot works out-of-the-box without having to copy-paste Nemo's "vmlinuz..." file), I will edit the Wiki to omit that copy-paste step, which will make the process easier for end-users. :)

juiceme 2013-06-28 04:53

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

Originally Posted by topet2k12001 (Post 1355271)
Nice idea...will add a section. :)

Just to confirm my understanding (again, English is not my first language): what your post says is basically to ensure that if you want alarms to work properly (while it is shutdown), that the last OS you should have booted (prior to shutting down) is Harmattan...did I get it right?

It's possible this is actually so, even though I have not tested that. (I rarely ever power off my device, it's on even during the night...)

I'd imagine Harmattan does some magic to the RTC when it shuts down, ensuring that the wakeup signal is triggered correctly at the time of the next alarm. Propably Nemo and Nitdroid do not handle things the same way.

topet2k12001 2013-06-28 05:34

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

Originally Posted by juiceme (Post 1355278)
It's possible this is actually so, even though I have not tested that. (I rarely ever power off my device, it's on even during the night...)

I'd imagine Harmattan does some magic to the RTC when it shuts down, ensuring that the wakeup signal is triggered correctly at the time of the next alarm. Propably Nemo and Nitdroid do not handle things the same way.

Got it...thanks for the heads up, will test as well. :)

topet2k12001 2013-06-30 06:50

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

Just wanted to give some updates:

Quote:

Originally Posted by juiceme (Post 1355084)
Normally when the Nemo rootFS is extracted to device partition, all the files needed to boot it up (including the most recent kernel at the time of package creation) are set to correct locations.
This is why ubiboot refers to the Nemo kernel as "/boot/Nemo/boot/bzImage", which in turn is the symlink inside Nemo to the vmlinuz-2.6.32.xxxxxxxx in the same directory.

It just works, out-of-the-box.

One thing, when you say the device "turns off after Nemo boot", did you check that it did not actually start Nemo, but without GUI?
If you plug the device in USB, if the IP interface appears on your computer, you can configure, for example 192.168.0.100 as the IP address there and SSH as root to your Nemo in 192.168.2.15

If that happens, rebooting the device should get you GUI on the next boot.

BTW, can you check the ubiboot logs on Harmattan side /var/log/ubiboot.log and /var/log/ubiboot.dmesg. From there you can see if there was some problem in the kernel selection.

@juiceme: I tried to replicate by deleting the "bzImage" file (which is originally "vmlinuz-2.6.32.20130129.1-n950") that I got from Nemo's /boot partition and saved in /boot of Harmattan's partition to see if Nemo will still boot up (i.e. Nemo install with Ubiboot should work out-of-the-box without this copy-paste step). I can confirm that I am able to boot to Nemo with Ubiboot. :)

Quote:

Originally Posted by peterleinchen (Post 1355247)
Another oddity report:

I already mentioned about missing UI bug when device is charging in actdead mode and an alarm is triggered. No chance to stop/snooze :(
Today I did not get any alarm at all. Reason (confirmed) was that I did shut down device from Nemo.
Like: Nemo booted, shut down, device off > no alarm

With Nidroid it was a bit different (not yet confirmed):
boot nit shut down, device off, 2s alarm rin and then device did shut down on its own again

This would need a lot of testing.
Just wanted to inform you to take care that you boot to jarmattan when you have the need for reliable alarm (wake ups)!

Maybe we can add a section to wiki to list all that stuff?

@peterleinchen: I added a section in the Wiki. :)

All: I reorganized the WIki a bit. Please review and let me know your thoughts.

1. Removed "FINAL STEPS" since I have confirmed that Nemo works out-of-the-box. No need to copy-paste "vmlinuz..." in Nemo's /boot partition to Harmattan's /boot partition.

2. Flashing tip that flashes the device to "Open-Mode" right from the start - I moved this to the "Prerequisites" section, and edited the process a bit to be more descriptive.

Apologies it is taking time to finish the video tutorial...too many chores at home and at work. :o

juiceme 2013-06-30 20:09

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

Originally Posted by topet2k12001 (Post 1355701)
@juiceme: I tried to replicate by deleting the "bzImage" file (which is originally "vmlinuz-2.6.32.20130129.1-n950") that I got from Nemo's /boot partition and saved in /boot of Harmattan's partition to see if Nemo will still boot up (i.e. Nemo install with Ubiboot should work out-of-the-box without this copy-paste step). I can confirm that I am able to boot to Nemo with Ubiboot. :)

Good, it is just as it should be :D

I sustepect thet the problem Ncik is having are due to something in the Nemo rootFS, propably something has gone awry in the FS unpacking.


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

vBulletin® Version 3.8.8