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-03 15:30

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

Originally Posted by coderus (Post 1349186)
/boot/Nitdroid/boot ?
why not
/boot/Harmattan/boot ?

That's because of the partition configurability support, for example if you want to have your Nitdroid on mmcblk0p5.
Of course, as long as your Nitdroid is on same partition as your Harmattan, also "/boot/Harmattan/boot" works for both :)

MAX9 2013-06-03 19:34

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

Originally Posted by peterleinchen (Post 1349069)
About modules you do not need to care, if you do not know.

ok

Quote:

Originally Posted by peterleinchen (Post 1349069)
Simple question: where did you put the harmattan kernels (when under harmattan OS itself)? Hopefully directly under '/boot' directory?
To me it looks like it just does not find specified kernel. Or just a typo in image names (not really, as it seems
same for all harmattan kernels).
Another question: Nitdroid starts? As that kernel is located in same directory.

after i read the README once again and sleep tonight, i put the kernels under harmattan /boot.

Quote:

Originally Posted by juiceme (Post 1349142)
What is your variant, is it 16/64G and what color?

RM-696 NDT Vietnam Black 16gb
059J661

now boot into Nitdroid/Nemo. And Harmattan sometimes?! min. 3 starts i need to really boot up. I will check in a few days.

many thanks in advance

coderus 2013-06-03 20:47

Re: Introducing ubiboot N9 (multiboot OS loader)
 
recently i had same issue with booting Harmattan.

if no actions after selecting Harmattan - it can boot or can not boot. 1/3, or so.
but! if i touching screen repeatedly after selecting harmattan - it booting fine always!

there is some extra hw input watchdog, i think.
but it very nice to see when phone need to be touched for boot. it need more care and love :D

HtheB 2013-06-03 23:38

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Somehow, my phone can't boot anymore

I wanted to flash the kernel, but I forget to turn off the lock code.
But now, it just shows the Nokia logo, and turn it self off.
After just pressing the power button once, the phone turns on again, shows the nokia logo, and turns off again after like 5-7 seconds.

What should I do (to save the data at least)?

flashing the original kernel didn't solve the problem:
Code:

flasher -f -F main.img --flash-only=kernel
Edit:
meh, to preserve data... I've flashed with:
Code:

flasher -f -F main.bin
it booted fine again after that...
I really dont know why I couldnt boot anymore after trying to flash :/

juiceme 2013-06-04 06:42

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

Originally Posted by HtheB (Post 1349340)
Somehow, my phone can't boot anymore

I wanted to flash the kernel, but I forget to turn off the lock code.
But now, it just shows the Nokia logo, and turn it self off.
After just pressing the power button once, the phone turns on again, shows the nokia logo, and turns off again after like 5-7 seconds.

What should I do (to save the data at least)?

flashing the original kernel didn't solve the problem:
Code:

flasher -f -F main.img --flash-only=kernel
Edit:
meh, to preserve data... I've flashed with:
Code:

flasher -f -F main.bin
it booted fine again after that...
I really dont know why I couldnt boot anymore after trying to flash :/

About the lock code, if it's enabled it should not even try to flash any open mode kernel, the flasher will refuse to do it at some point during the flashing and the device should be left in a normally bootable state... however just as everything even that can go wrong and the device left in boot loop...

So, you did manage to boot it after all, OK?

I am just a bit confused but I guess you had the problem first but now it's fixed.
Sometimes it happens that the device goes in a state it will not really boot correctly, but most often that can be solved by forcing it down with 8s press to the power button and then reflashing.

About the ubiboot versions you asked on IRC; nowdays it's strongly suggested that you use ubiboot-02.
if you do not know why you should use ubiboot-01, do not use it. version 02 is better, and I am no longer supporting 01.
Version 01 has some problems that possibly CAN brick your device to FOREVER. It has happened just once AFAIK but even once is enough, and for that reason version 02 was done.

juiceme 2013-06-04 06:45

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

Originally Posted by MAX9 (Post 1349299)
RM-696 NDT Vietnam Black 16gb 059J661

now boot into Nitdroid/Nemo. And Harmattan sometimes?! min. 3 starts i need to really boot up. I will check in a few days.

many thanks in advance

Do you have some tweaks active on your device, like fasterN9, overclocking etc...?

Harmattan bootup procedure is fairly fragile, and there are tweaks that when used together might have an undesirable end result.

juiceme 2013-06-04 06:57

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

Originally Posted by coderus (Post 1349314)
if no actions after selecting Harmattan - it can boot or can not boot. 1/3, or so.
but! if i touching screen repeatedly after selecting harmattan - it booting fine always!

there is some extra hw input watchdog, i think.
but it very nice to see when phone need to be touched for boot. it need more care and love :D

That's really cute :D

What I have found up to now, at least with 1603 which is the most troublesome revision, the problem really is not the watchdog, the doggy is just the thing that will cause the phone to boot but the root cause is the fact that DSME stops feeding the watchdog.

I made a preinit script that forces the watchdog to be kept happy no matter what, and then the phone does not reboot but it will have massive problems accessing the HW, as DSME does not get connection to battery status and shuts itself down. When that happens the device does not go to normal operation mode, but you can ssh into it and check what's going on there.

coderus, what's the variant, model/color and HWREV of your device?

HtheB 2013-06-04 08:48

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

Originally Posted by juiceme (Post 1349388)
About the lock code, if it's enabled it should not even try to flash any open mode kernel, the flasher will refuse to do it at some point during the flashing and the device should be left in a normally bootable state... however just as everything even that can go wrong and the device left in boot loop...

So, you did manage to boot it after all, OK?

I am just a bit confused but I guess you had the problem first but now it's fixed.
Sometimes it happens that the device goes in a state it will not really boot correctly, but most often that can be solved by forcing it down with 8s press to the power button and then reflashing.

About the ubiboot versions you asked on IRC; nowdays it's strongly suggested that you use ubiboot-02.
if you do not know why you should use ubiboot-01, do not use it. version 02 is better, and I am no longer supporting 01.
Version 01 has some problems that possibly CAN brick your device to FOREVER. It has happened just once AFAIK but even once is enough, and for that reason version 02 was done.

The boot files were messed up somehow I guess, 8 seconds power button didn't work.
But after flashing the device, it booted, backup up my files, than did a total flash with emmc :p

juiceme 2013-06-04 09:26

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Released ubiboot-02 (integrated) version, rev. 0.3.3.
  • Fixed problems booting Harmattan on HW revision 1603 devices.
Get it fresh from HERE
See the README file
See the Changelog

If you have installed/downloaded the previous release 0.3.2, you need only update the new kernel to your device as the configuration file and cpio are compatible with previous release.
You can find the correct kernel image here

The files are also uploaded at Skeiron, for your convenience:
ubiboot-02_040613.tar
zImage_2.6.32.54-ubiboot-02_040613

MAX9 2013-06-04 16:34

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

Originally Posted by juiceme (Post 1349390)
Do you have some tweaks active on your device, like fasterN9, overclocking etc...?

Yes, overclock and many tweaks....but:

I flash my device with your new kernel image, now, 6 starts with 6x boot into Harmattan :)

juiceme 2013-06-04 21:57

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

Originally Posted by MAX9 (Post 1349542)
Yes, overclock and many tweaks....but:

I flash my device with your new kernel image, now, 6 starts with 6x boot into Harmattan :)

Yes, I finally tackled that ominous 1603 problem, and it seems that helps with other versions too :)

Hurrian 2013-06-04 22:53

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Confirmed working for 1507 black N9.

Finally, I don't have to wait for the system to settle and drop down to 0MHz at sleep to use it.

TMavica 2013-06-05 15:58

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

I confirmed latest kernel worked with my 1603 version
Thanks you!

peterleinchen 2013-06-19 21:16

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@juiceme Congrats for finding 1603 problem.

Finally I managed to update to -02.
And it worked out of the box :)

I still have some remarks.

First one is just "cosmetic". Would you mind taking out partition 8 and 9 from configuration and init? Our standard compiled kernels only support up to 8 devices (7 partitions). We would need to have recompiled kernel to support more than 7 partitions (and that would count for ubi kernel as well as harmattan/nitdroid/nemo (possibly sailfish? ;)) kernels.

Second one is I would like to give my device(s) a unique IP address. Even for telnet usage. I know x.x.x.15 is kind of standard, but would like to have my own. So just adding a G_IP_ADDRESS would be fine. (after reading sources I think just adding IP_ADDRESS= to ubiboot.conf will work. Not yet tested) So maybe obsolete.

Third one is a bug (probably). Did you or anyone else was successful with version -02 and using mtd5?
I moved my old v-01 sources to mtd and worked flawlessly with mtd5 kernel. Then I copied ubiboot.conf and cpio to root of mtd5 and also to MyDocs/boot. But the files from mtd are never read and always MyDocs/boot config used. Of course flashe v-02 ubi kernel.
I think you not only need to detach mtd device, but also delete ubi device (-d 0); otherwise moslo will be mounted to ubi1:moslo. So either add ubidetach -d 0 or just exchange ubi0:moslo to ubi1:moslo.

I also moved my nemo from p7 to p6 and everythings works.
Nitdroid without any changes work.

I wanted to boot nit from p5:
I copied my full p2 to p5 (of course together with all kernels in boot), moved nit folder to p5, changed nitdroid partition number to 5 in config. And here comes my problem. Nitdroid does not want to start. It always shuts down with black screen: selection in ubi works, selecting nit kernel works (ubi log kexec load success), but then I have dim-lighted black screen for about a few (30?) seconds and device is off. Power button for 3 s jsust boots up again. I have nfc what is biting me here? Maybe watchdog, as it seems not to be started by default. Maybe we can discuss this on irc next days?
I already added some logging to preinit_nitdrod, and it seems execution gets stuck randomly during execution (sometimes during check_rootfs, sometimes a bit later at mounting p3, but never getting to droidboot???

--edit
Ah and maybe one more (to be confirmed tomorrow morning).
Charging an empty device with wall charger works in act-dead mode. :) But this morning it was still connected to charger and an alarm fired up: no light on display, no UI at all, no possibility to stop the alarm ...

--edit2
Confirming the total absence of UI, when device is on charger in act-dead and an alarm triggers.
An alarm triggered when off (not charging) works nice. Even so when the device is powered on.

Furthermore I experienced that the act#ead charging mode worked only 1 out of 3 times. I had device off, plugged charger, then it booted, shut down (steady LED) and rebooted to telnet console. I pulled charger, pushed power button for 8s and tried again. Same. Only af the third time I saw the charging symbol.
Logs do not tell any suspicious (to me ;)).

death_jax 2013-06-20 10:04

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

Originally Posted by peterleinchen (Post 1353298)
@juiceme Congrats for finding 1603 problem.

Finally I managed to update to -02.
And it worked out of the box :)

I still have some remarks.

First one is just "cosmetic". Would you mind taking out partition 8 and 9 from configuration and init? Our standard compiled kernels only support up to 8 devices (7 partitions). We would need to have recompiled kernel to support more than 7 partitions (and that would count for ubi kernel as well as harmattan/nitdroid/nemo (possibly sailfish? ;)) kernels.

Second one is I would like to give my device(s) a unique IP address. Even for telnet usage. I know x.x.x.15 is kind of standard, but would like to have my own. So just adding a G_IP_ADDRESS would be fine. (after reading sources I think just adding IP_ADDRESS= to ubiboot.conf will work. Not yet tested) So maybe obsolete.

Third one is a bug (probably). Did you or anyone else was successful with version -02 and using mtd5?
I moved my old v-01 sources to mtd and worked flawlessly with mtd5 kernel. Then I copied ubiboot.conf and cpio to root of mtd5 and also to MyDocs/boot. But the files from mtd are never read and always MyDocs/boot config used. Of course flashe v-02 ubi kernel.
I think you not only need to detach mtd device, but also delete ubi device (-d 0); otherwise moslo will be mounted to ubi1:moslo. So either add ubidetach -d 0 or just exchange ubi0:moslo to ubi1:moslo.

I also moved my nemo from p7 to p6 and everythings works.
Nitdroid without any changes work.

I wanted to boot nit from p5:
I copied my full p2 to p5 (of course together with all kernels in boot), moved nit folder to p5, changed nitdroid partition number to 5 in config. And here comes my problem. Nitdroid does not want to start. It always shuts down with black screen: selection in ubi works, selecting nit kernel works (ubi log kexec load success), but then I have dim-lighted black screen for about a few (30?) seconds and device is off. Power button for 3 s jsust boots up again. I have nfc what is biting me here? Maybe watchdog, as it seems not to be started by default. Maybe we can discuss this on irc next days?
I already added some logging to preinit_nitdrod, and it seems execution gets stuck randomly during execution (sometimes during check_rootfs, sometimes a bit later at mounting p3, but never getting to droidboot???

--edit
Ah and maybe one more (to be confirmed tomorrow morning).
Charging an empty device with wall charger works in act-dead mode. :) But this morning it was still connected to charger and an alarm fired up: no light on display, no UI at all, no possibility to stop the alarm ...

--edit2
Confirming the total absence of UI, when device is on charger in act-dead and an alarm triggers.
An alarm triggered when off (not charging) works nice. Even so when the device is powered on.

Furthermore I experienced that the act-dead charging mode worked only 1 out of 3 times. I had device off, plugged charger, then it booted, shut down (steady LED) and rebooted to telnet console. I pulled charger, pushed power button for 8s and tried again. Same. Only af the third time I saw the charging symbol.
Logs do not tell any suspicious (to me ;)).

Also for me charging a powered off phone (obviously with a wall charger) didn't work; instead of charging was activated only maintenance mode.. In fact I used the flasher trick to do it..
The second edit seems the same problem of the first start alarm bug (maybe isn't this the case) that have users (me too) that installed the CODeRUS Unrestricted System UI, solvable with the deactivation of the orientation widget with:
Code:

gconftool -s --type=bool /desktop/meego/status_menu/widgets/orientation/working false

ncik 2013-06-20 17:42

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I feel really stupid posting it. But I seem to have hit a roadblock. Where do I place the kernels? What do I mount what folders do I create? I do have the open kernel and I am able to perform all the steps correctly. but I don't know where to place the kernel. I am stumped having been trying this for over a week now. Can someone please help?:confused:

death_jax 2013-06-20 18:15

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

Originally Posted by ncik (Post 1353525)
I feel really stupid posting it. But I seem to have hit a roadblock. Where do I place the kernels? What do I mount what folders do I create? I do have the open kernel and I am able to perform all the steps correctly. but I don't know where to place the kernel. I am stumped having been trying this for over a week now. Can someone please help?:confused:

You don't have to mount any partition, because you'd better use (because it's updated) the ubiboot-02 method.
The kernel/kernels (I put in mind that everything else is in place), with correct names as writed in the README file, for the Harmattan and NITdroid must be placed into the /boot directory of the Harmattan root; the ubiboot-02.menus.cpio file and ubiboot.conf (this one edited with the correct names that you have given to kernels) file must be placed into /boot of the Harmattan eMMC.

Recapitulating with full path, starting from the root (/), for clarity:
  • The kernels (only for Harmattan and NITdroid because for Nemo it's different) must be placed into /boot directory.
  • The Ubiboot files (described above) must be placed into /home/user/MyDocs/boot directory

peterleinchen 2013-06-20 19:44

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

Originally Posted by death_jax (Post 1353533)
You don't have to mount any partition, because you'd better use (because it's updated) the ubiboot-02 method.
Recapitulating with full path, starting from the root (/), for clarity:
  • The kernels (only for Harmattan and NITdroid because for Nemo it's different) must be placed into /boot directory.
  • The Ubiboot files (described above) must be placed into /home/user/MyDocs/boot directory

Exactly.

Quote:

Originally Posted by death_jax (Post 1353412)
Also for me charging a powered off phone (obviously with a wall charger) didn't work; instead of charging was activated only maintenance mode.. In fact I used the flasher trick to do it..
The second edit seems the same problem of the first start alarm bug (maybe isn't this the case) that have users (me too) that installed the CODeRUS Unrestricted System UI, solvable with the deactivation of the orientation widget with:
Code:

gconftool -s --type=bool /desktop/meego/status_menu/widgets/orientation/working false

flasher trick? Did I miss something? Could you please elaborate?

I do not (yet) have unrestricted system UI installed. Nor do I have that tree in gconf settings.

thedead1440 2013-06-20 20:09

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

The "flasher trick" is not a trick but just using flasher to charge the phone to around 10% before plugging it into a wall charger to continue charging... since a flash doesnt occur before the battery is at 11%, flasher charges it to that level...

Regarding the alarms, maybe death_jax is referring to unrestricted sys-ui as its known to cause the same issue on non-ubiboot phones too. However although the symptoms are the same here, your case seems to be caused by ubiboot while his problem is a common unrestricted sys-ui issue...

juiceme 2013-06-20 22:57

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Allright, I have been off-line for a longish time, sorry for that. I was off on a trip to Far North, and after some incident with shovel&wheelbarrows called physical work I hurt my back. I have been on sick leave for few days...

Here's some combination of answers I can dream up at the spur of the moment. Later to follow... :D

Quote:

Originally Posted by peterleinchen (Post 1353298)
First one is just "cosmetic". Would you mind taking out partition 8 and 9 from configuration and init? Our standard compiled kernels only support up to 8 devices (7 partitions).

Yes, no problem in that. Will do it in the next release.

Quote:

Originally Posted by peterleinchen (Post 1353298)
Second one is I would like to give my device(s) a unique IP address. Even for telnet usage. I know x.x.x.15 is kind of standard, but would like to have my own.

A reasonable request, can do that in the next release.
Also might add something on the DHCP side, currently it gives 192.168.0.100 as the address of the USB device on the PC, should maybe set that also as configurable...

Quote:

Originally Posted by peterleinchen (Post 1353298)
Third one is a bug (probably). Did you or anyone else was successful with version -02 and using mtd5?

Yes, I did test it on my device, but of course it might be that I made a typo or missed a line in the version I actually released... silly things like that happen all the time.
I'll have to test that, and if found guilty, it'll be corrected.

Quote:

Originally Posted by peterleinchen (Post 1353298)
I wanted to boot nit from p5:
I copied my full p2 to p5 (of course together with all kernels in boot), moved nit folder to p5, changed nitdroid partition number to 5 in config. And here comes my problem. Nitdroid does not want to start. It always shuts down with black screen: selection in ubi works, selecting nit kernel works (ubi log kexec load success), but then I have dim-lighted black screen for about a few (30?) seconds and device is off. Power button for 3 s jsust boots up again. I have nfc what is biting me here? Maybe watchdog, as it seems not to be started by default. Maybe we can discuss this on irc next days?

This I have to confess I have not tested. I have NIT only on the default loction, and did not try to place it on a different partition.
It sure sounds like a WD problem, and those are a bitch to debug...

Quote:

Originally Posted by peterleinchen (Post 1353298)
Ah and maybe one more (to be confirmed tomorrow morning).
Charging an empty device with wall charger works in act-dead mode. :) But this morning it was still connected to charger and an alarm fired up: no light on display, no UI at all, no possibility to stop the alarm ...

Hmm, never tested that, true. I'll have to see what's with the selection logic but it should actually work, as it detects the mode first and then launches the kernel with the appropriate mode.
Actually when it's in the charging/ACT_DEAD mode, when the alarm later triggers it should not restart ubiboot as it is already running a Harmattan instance, just without user input functionality.

Quote:

Originally Posted by peterleinchen (Post 1353298)
Furthermore I experienced that the act#ead charging mode worked only 1 out of 3 times. I had device off, plugged charger, then it booted, shut down (steady LED) and rebooted to telnet console. I pulled charger, pushed power button for 8s and tried again. Same. Only af the third time I saw the charging symbol.
Logs do not tell any suspicious (to me ;)).

Well, there is some starngeness going on when the device is in ACT_DEAD mode, I have myself noticed that it can start Harmattan more or less spontaniously without going down to ubiboot, when the charger is disconnected and the power button is pressed. I assume tht's a shortcut that has been created to make it boot a bit quicker.

Quote:

Originally Posted by death_jax (Post 1353412)
Also for me charging a powered off phone (obviously with a wall charger) didn't work; instead of charging was activated only maintenance mode.. In fact I used the flasher trick to do it...

So, your device always wakes up to ubiboot when you plug in the wall charger in a powered-down mode?
That should not happen, do you have the setting "G_OVERRIDE_USB_CHARGER_BOOT=1" in your ubiboot.conf?
Also you do need to have G_DEFAULT_OS and G_DEFAULT_KERNEL set up to start a Harmattan kernel.

Quote:

Originally Posted by ncik (Post 1353525)
I feel really stupid posting it. But I seem to have hit a roadblock. Where do I place the kernels?

No need to feel stupid, I have found out that quite a few people have trouble figuring out that. The problem is that when you are running Harmattan you have a different view of the mounted filesystem than when you are running ubiboot. The README document evidently does not make that clear enough.
I hope you managed to do that with the good advice people gave you here...

Quote:

Originally Posted by thedead1440 (Post 1353545)
Regarding the alarms, maybe death_jax is referring to unrestricted sys-ui as its known to cause the same issue on non-ubiboot phones too. However although the symptoms are the same here, your case seems to be caused by ubiboot while his problem is a common unrestricted sys-ui issue...

Indeed, I am fairly sure these problems are not caused by the same thing, even as the symptoms are same.
More testing is obviously required.

Some additional random things; I still have not had time to fix the ssh server to ubiboot. I hope to get to that sometime soonish... Also I thought of adding WLAN configuration to ubiboot, enabling telnet to the device without having the USB connection present.

ncik 2013-06-21 05:33

Re: Introducing ubiboot N9 (multiboot OS loader)
 
You don't have to mount any partition, because you'd better use (because it's updated) the ubiboot-02 method.
The kernel/kernels (I put in mind that everything else is in place), with correct names as writed in the README file, for the Harmattan and NITdroid must be placed into the /boot directory of the Harmattan root; the ubiboot-02.menus.cpio file and ubiboot.conf (this one edited with the correct names that you have given to kernels) file must be placed into /boot of the Harmattan eMMC.

Recapitulating with full path, starting from the root (/), for clarity:

The kernels (only for Harmattan and NITdroid because for Nemo it's different) must be placed into /boot directory.
The Ubiboot files (described above) must be placed into /home/user/MyDocs/boot directory


[QUOTE=juiceme;1353573]
No need to feel stupid, I have found out that quite a few people have trouble figuring out that. The problem is that when you are running Harmattan you have a different view of the mounted filesystem than when you are running ubiboot. The README document evidently does not make that clear enough.
I hope you managed to do that with the good advice people gave you here...]

Thanks a lot for the advice. I was finally able to boot using ubiboot but for some reason it boots into Harmattan even when I pick Nitdroid. I am not sure what to do to resolve this issue. Also where to I find the modules to put in the "/lib/modules" directory. Where can I find instructions to install Nemo. Thanks for all the help.

death_jax 2013-06-21 09:24

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

Originally Posted by ncik (Post 1353601)
You don't have to mount any partition, because you'd better use (because it's updated) the ubiboot-02 method.
The kernel/kernels (I put in mind that everything else is in place), with correct names as writed in the README file, for the Harmattan and NITdroid must be placed into the /boot directory of the Harmattan root; the ubiboot-02.menus.cpio file and ubiboot.conf (this one edited with the correct names that you have given to kernels) file must be placed into /boot of the Harmattan eMMC.

Recapitulating with full path, starting from the root (/), for clarity:

The kernels (only for Harmattan and NITdroid because for Nemo it's different) must be placed into /boot directory.
The Ubiboot files (described above) must be placed into /home/user/MyDocs/boot directory


Quote:

Originally Posted by juiceme (Post 1353573)
No need to feel stupid, I have found out that quite a few people have trouble figuring out that. The problem is that when you are running Harmattan you have a different view of the mounted filesystem than when you are running ubiboot. The README document evidently does not make that clear enough.
I hope you managed to do that with the good advice people gave you here...]

Thanks a lot for the advice. I was finally able to boot using ubiboot but for some reason it boots into Harmattan even when I pick Nitdroid. I am not sure what to do to resolve this issue. Also where to I find the modules to put in the "/lib/modules" directory. Where can I find instructions to install Nemo. Thanks for all the help.

There is no need, for us, to use the /lib/modules..
For Nemo installation I advise you not to think about it now, but maybe later, after a better understanding of boot of Harmattan/NITdroid.
For NITdroid boot problem: did you put the NITdroid kernel file in the right place?
Did you edited correctly the Ubiboot.conf file?
Did you extracted the NITdroid system files correctly?

death_jax 2013-06-21 09:29

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

Originally Posted by juiceme (Post 1353573)
So, your device always wakes up to ubiboot when you plug in the wall charger in a powered-down mode?
That should not happen, do you have the setting "G_OVERRIDE_USB_CHARGER_BOOT=1" in your ubiboot.conf?
Also you do need to have G_DEFAULT_OS and G_DEFAULT_KERNEL set up to start a Harmattan kernel.

Yes, both G_OVERRIDE_RTC_ALARM_BOOT=1 and G_OVERRIDE_USB_CHARGER_BOOT=1, the same for G_DEFAULT_OS="Harmattan" and G_DEFAULT_KERNEL="/boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix", setted as you can see (the latter is the same as G_HARMATTAN_1_FILE="/boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix").

ncik 2013-06-21 14:41

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

Originally Posted by death_jax (Post 1353632)
There is no need, for us, to use the /lib/modules..
For Nemo installation I advise you not to think about it now, but maybe later, after a better understanding of boot of Harmattan/NITdroid.
For NITdroid boot problem: did you put the NITdroid kernel file in the right place?
Did you edited correctly the Ubiboot.conf file?
Did you extracted the NITdroid system files correctly?

I placed the NITdroid kernel at the same place as the other kernel which is /boot. Does the ubiboot.conf need to be changed or should it be the default one I did extract the files to /home/nitrdoid using the instructions provided in the other thread. I was able to successfully boot in nitrdoid before installing ubiboot. Again thanks for your help.:)

peterleinchen 2013-06-21 17:12

Re: Introducing ubiboot N9 (multiboot OS loader)
 
/boot is correct place and /home/nitdroid also correct ...

What about posting output of
ls -al /boot
nitdroid section of ubiboot.conf
/var/log/ubiboot.log and /var/log/ubiboot.dmesg
?

death_jax 2013-06-21 17:15

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

Originally Posted by ncik (Post 1353704)
I placed the NITdroid kernel at the same place as the other kernel which is /boot. Does the ubiboot.conf need to be changed or should it be the default one I did extract the files to /home/nitrdoid using the instructions provided in the other thread. I was able to successfully boot in nitrdoid before installing ubiboot. Again thanks for your help.:)

The only reason why you have to change the default values of ubiboot.conf is, as I did, to delete the unnecessary kernel entries for both Harmattan and NITdroid.
As peterleinchen wroted, in order to help you, you must post the file in the /boot folder and the content and your NITdroid entries section in ubiboot.conf file (starting from # Nitdroid kernels)

ncik 2013-06-21 19:06

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

Originally Posted by peterleinchen (Post 1353751)
/boot is correct place and /home/nitdroid also correct ...

What about posting output of
ls -al /boot
nitdroid section of ubiboot.conf
/var/log/ubiboot.log and /var/log/ubiboot.dmesg
?


Thanks a lot. I got everything working. Just wasn't waiting long enough. Android is really slow though. I am not sure why. Now I have to learn more and install Nemo. Thanks a lot for your support. :)

peterleinchen 2013-06-21 20:09

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Ah yes, especially on first boot it takes ages.

Furthermore you should get the latest nit kernel from e-yes with juiceme's L2 cache fix. Check http://downloads.nitdroid.com/e-yes/n9/ubiboot/

juiceme 2013-06-21 23:07

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

Originally Posted by ncik (Post 1353601)
Thanks a lot for the advice. I was finally able to boot using ubiboot but for some reason it boots into Harmattan even when I pick Nitdroid. I am not sure what to do to resolve this issue. Also where to I find the modules to put in the "/lib/modules" directory. Where can I find instructions to install Nemo. Thanks for all the help.

The difference of the Harmattan boot and Nitdroid boot is in the preinit file it launches, you propably should check that your "/sbin/preinit_nitdroid" file is corret.

And also, as long as you ar onto it, I'd advice you to use the default Harmattan preinit file instead of the one I provide as "/sbin/preinit_harmattan" in the preinits.tar file... many people report that the file in the archive is not so reliable as the original Harmattan preinit. (I trimmed it down a bit, removed parts that I did not think were that useful and maybe I went a bit too far...)

peterleinchen 2013-06-22 09:00

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

Originally Posted by juiceme (Post 1353810)
... preinit file ...

That reminds me of another remark :cool::
in your cut down preinit_harmattan is only one problem (compared your version with original one), the early start up of usb network! You remember?
I have it commented out, but now as I write I believe a configurable option could be nice to have early telnet/ssh possibilty during harmattan as we have in nitdroid and nemo. But I do not know if it makes sense at all and how to fetch config values in preinit? Do you get me, juiceme? Or just talking bullsh.t? ;)

For preinit_nitdroid I also would like to fetch config values from ubiboot.conf, but who cares? Only me probably and so I just edit the preinit_nitdroid directly. Maybe one day I will get it starting from p5 !?

ncik 2013-06-22 17:13

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

Originally Posted by juiceme (Post 1353810)
The difference of the Harmattan boot and Nitdroid boot is in the preinit file it launches, you propably should check that your "/sbin/preinit_nitdroid" file is corret.

And also, as long as you ar onto it, I'd advice you to use the default Harmattan preinit file instead of the one I provide as "/sbin/preinit_harmattan" in the preinits.tar file... many people report that the file in the archive is not so reliable as the original Harmattan preinit. (I trimmed it down a bit, removed parts that I did not think were that useful and maybe I went a bit too far...)

It is working fine with the prenits that you have provided so I am going to run with it for now. My main aim of getting ubiboot was to install nemo so I can decide on my next phone. I am thinking b/w sailfish and canonical right now. Hope this helps me decide. :cool:

juiceme 2013-06-22 20:39

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

Originally Posted by peterleinchen (Post 1353874)
That reminds me of another remark :cool::
in your cut down preinit_harmattan is only one problem (compared your version with original one), the early start up of usb network! You remember?
I have it commented out, but now as I write I believe a configurable option could be nice to have early telnet/ssh possibilty during harmattan as we have in nitdroid and nemo. But I do not know if it makes sense at all and how to fetch config values in preinit? Do you get me, juiceme? Or just talking bullsh.t? ;)

Well yes you are right maybe that should be removed once and for all... Having that option in preinit messes up the VOIP and in Harmattan you cannot really access the device via SSH until fairly late stage of boot, it's better to get to the device via seral adapter and R&D mode*if that is required.

Quote:

Originally Posted by peterleinchen (Post 1353874)
For preinit_nitdroid I also would like to fetch config values from ubiboot.conf, but who cares? Only me probably and so I just edit the preinit_nitdroid directly. Maybe one day I will get it starting from p5 !?

First thing that comes up my mind is tagging the place in the preinit with some nice symbol, something like G_IP_ADDRESS_TO_BE_ASSIGNED and then in ubiboot domain to run sed on the file and replace that with the desired address.
That would work just once, though as of course on the second run it had already been changed.
Having a bit more complex sed script, you could well have a marker there to signify the place of replacement so that is leaves the marker section there for subsequent runs.
Possible, but is it useful for many people?

peterleinchen 2013-06-23 11:15

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

Originally Posted by juiceme (Post 1353998)
Well yes you are right maybe that should be removed once and for all... Having that option in preinit messes up the VOIP and in Harmattan you cannot really access the device via SSH until fairly late stage of boot, it's better to get to the device via seral adapter and R&D mode*if that is required.

Yep, please remove that then.
And thanks for confirmation (of my bs talk :))! I had smth like that in mind, but ...


Quote:

First thing that comes up my mind is tagging the place in the preinit with some nice symbol, something like G_IP_ADDRESS_TO_BE_ASSIGNED and then in ubiboot domain to run sed on the file and replace that with the desired address.
That would work just once, though as of course on the second run it had already been changed.
Having a bit more complex sed script, you could well have a marker there to signify the place of replacement so that is leaves the marker section there for subsequent runs.
Possible, but is it useful for many people?
Nope, probably not.
But again thanks for pointing to me a possible way to do it (in init of ubiboot). If I am going to do so, I will send you sources. But I do not think so, as it will be only me using p5 for nitdroid nd wanting an own unique IP address. So direct edit will be okay.

But configuration for IP and DHCP range would be nice in ubiboot.


--info
today I got nitdroid booted from p5 :) (call me dumb *ss, as it was again a wrong link :mad:
but some error popped up about android worker process stopped
now I need to fix that :( but maybe it is just due to some SIM card registration failure I have since today?!?

Yes! It is working.

Next step will be booting harmattan with rootfs from p5.
Any idea how to block access to p2, so we can be sure that everything is loaded from p5?

topet2k12001 2013-06-23 18:28

Documentation for ubiboot-02 Installation
 
Hi Friends,

It's been quite a while since I have posted...this "ubiboot-02" is great!

I gave it a try and so far so good; was able to boot up with Harmattan/NITDroid/Nemo. However, I got a little confused with the steps documented in the README file. I participate in a local forum site here in the Philippines where there are also enthusiasts of the Nokia N900 and Nokia N9/50. They are also interested in ubiboot-02, but they did share the same sentiment (that they got confused with the README).

So what I did is to document the steps that I took to get this to work. Initially I intended to have this for personal use, but then again, I thought it might benefit others. Hence, I hope you won't mind if I share this here too. I already converted it to PDF, but I also have the original document.

There are file size restrictions so I wasn't able to attach the documents directly using the Attachment Tool. I uploaded it via Mediafire instead: http://www.mediafire.com/folder/4zua...6cy/ubiboot-02

I have also recorded a video of the steps. I am just converting the videos and will upload (will edit this post accordingly).

topet2k12001 2013-06-24 08:28

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

I attempted to make my first Wiki Page. :) I used the Ubiboot Steps to make it. Please review and hope you like it. Feedback is most welcome (preferably via PM as I am not always online on the forums).

http://wiki.maemo.org/Ubiboot

juiceme 2013-06-25 06:11

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

Originally Posted by topet2k12001 (Post 1354353)
Hi Friends,

I attempted to make my first Wiki Page. :) I used the Ubiboot Steps to make it. Please review and hope you like it. Feedback is most welcome (preferably via PM as I am not always online on the forums).

http://wiki.maemo.org/Ubiboot

Thanks, on first reading the guide seems to be pretty complete :)
I also attempted my first wiki page edit, and I added skeiron as the mirror location of ubiboot files.

peterleinchen 2013-06-25 16:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
1 Attachment(s)
Hej juiceme,

I think I spotted some hurdle when trying to boot harmattan from p5.

Taking a deeper look into the files compiled into the kernel, I have seen that you symlink /etc/passwd and /etc/group directly hardcoded from /mnt/2/etc/ passwd respective /mnt/2/etc/group.
This is what I wanted to avoid (to have the need for some harmattan files/dirs accessible on p2).

I edited /init (attached), but I am absolutely not sure if this will work.
When, at what time, the ubi system needs passwd and group?
If it is only when launching a shell, I think my small modification (peterleinchen 1) may work. But when it is already needed for starting /init itself, then I am doomed. In first case what about the maintenance mode: do we need it here also as it starts a shell (I have begun to modify: peterleinchen 2)?
Please take a look and let me know, please.


And i thought about changing the log location to /mnt/p1/boot/log (peterleinchen 3) as this location is visible to all operating systems and easily to access for everybody. I thought also about saving log to the selected OS /var/log location, but after rethinking discarded this idea. What do you think? (of course this needs to be fixed in all files then as well)

And I edited the wiki for the open mode preparation as Jonni told us. I did not do it this way, but it cannot harm nor cause trouble to try out (if you wanna flash)!

-- oops
forgot the attachment, corrected.

topet2k12001 2013-06-25 17:42

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@juiceme: thanks for reviewing and for adding the mirror site.

@peterleinchen: thanks for adding the tip. :) Actually, I am aware that when the device is newly flashed, the "prepare for Open-Mode" steps will not be required because the folders ./accounts, ./aegis, and ./activesync are still at an empty state, but I just had to put it in there for "mistake-proofing" of "fool-proofing" (I conscientiously thought that there will be a lot of end-users who will try out Ubiboot), just to be sure.

By the way, I cleaned up your edit a bit for formatting consistency, hope you won't mind. :)

juiceme 2013-06-25 20:49

Re: Introducing ubiboot N9 (multiboot OS loader)
 
1 Attachment(s)
Quote:

Originally Posted by peterleinchen (Post 1354645)
Taking a deeper look into the files compiled into the kernel, I have seen that you symlink /etc/passwd and /etc/group directly hardcoded from /mnt/2/etc/ passwd respective /mnt/2/etc/group.
This is what I wanted to avoid (to have the need for some harmattan files/dirs accessible on p2).

I edited /init (attached), but I am absolutely not sure if this will work.
When, at what time, the ubi system needs passwd and group?
If it is only when launching a shell, I think my small modification (peterleinchen 1) may work. But when it is already needed for starting /init itself, then I am doomed. In first case what about the maintenance mode: do we need it here also as it starts a shell (I have begun to modify: peterleinchen 2)?
Please take a look and let me know, please.

And i thought about changing the log location to /mnt/p1/boot/log (peterleinchen 3) as this location is visible to all operating systems and easily to access for everybody. I thought also about saving log to the selected OS /var/log location, but after rethinking discarded this idea. What do you think? (of course this needs to be fixed in all files then as well)

Hi!

I reviewed your changes, and there are some things to note.

First thing, though, you have an older version of init, where you are placing your modifications. Your version does not contain the corrected watchdog kicker and it has the incorrect BME initialization which cause the rev.1603 boot problems with Harmattan. Also the boot partition configuration changes are missing.

Here is the current version of init from the latest ubiboot-02: Attachment 32482

Then, comments about the edits:

1. Actually the symlinks to /etc/passwd and /etc/group are not used for anything at all at the moment. The files are there just as I am trying to get SSHD to work. SSHD requires the entries to manage userids, and my idea here was to symlink those from the Harmattan side so that I could reuse the Harmattan credentials on ubiboot domain. This is maybe a futile idea anyway, so the files are totally excess as of current. (meaning, just do not care if the links point to nothing at all...)

2. About choosing the logging location. Yes, you are absolutely correct there are far better places than Harmattan's /var/log/ to store the logs, obvious location would be of course where ubiboot.conf and the cpio are. Or it could be made configurable in the conf file.
I do not remember exactly what I was thinking when decided to put the logs there... maybe it went on something like, if there's a problem with something users tend do look into /var/log/ to see if there's a hint of the cause...

caveman 2013-06-25 21:09

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

Originally Posted by juiceme (Post 1354693)
1. Actually the symlinks to /etc/passwd and /etc/group are not used for anything at all at the moment. The files are there just as I am trying to get SSHD to work. SSHD requires the entries to manage userids, and my idea here was to symlink those from the Harmattan side so that I could reuse the Harmattan credentials on ubiboot domain. This is maybe a futile idea anyway, so the files are totally excess as of current. (meaning, just do not care if the links point to nothing at all...)

There is a similar situation when remote-unlocking an encrypted hard drive. In that scenario, passwd is empty and the auth is key-based. This may be feasible in this case.


All times are GMT. The time now is 04:03.

vBulletin® Version 3.8.8