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)

Garp 2013-12-12 00:09

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

Originally Posted by juiceme (Post 1328315)
Hey, for the people that have Nemo in non-standard location!!

As peterleinchen got it, I have indeed hardcoded the Nemo partition to be "/dev/mmcblkp04# in the menu selection logic!

When I made it I did not think that people would ever put Nemo somewhere else.

However, it is easy to correct:
Just edit your "/boot/menu/select_os_animated.sh", and find the function load_nemo()
On that function, replace the sed script "s/root\=\/dev\/mmcblk0p2/root\=\/dev\/mmcblk0p4/" with "s/root\=\/dev\/mmcblk0p2/root\=\/dev\/mmcblk0p7/", for example, if your Nemo is on partition#7

Is Nemo partition still hard coded as p4?
If so how to editing the script? (sorry but normally I use KhtSimple Text (root) to handle this - is it nano to use here?):(

juiceme 2013-12-12 06:15

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

Originally Posted by arthurartoria (Post 1395234)
Hi, guys. I have finished flashing sailfish and installing multiboot. THe sailfish is workable, but now I cannot boot into the harmattan. Here is ubiboot.log. Anyone could help me? Thank you so much.

......
Dec 11 22:48:47 (none) user.notice root: Selecting Harmattan OS, running kernel /boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix
Dec 11 22:48:48 (none) user.notice root: Loading kernel /boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix
Dec 11 22:48:48 (none) user.notice root: kexec_load() successful
Dec 11 22:48:48 (none) user.notice root: Restarting to selected OS
Dec 11 22:48:48 (none) user.notice root: Saving ubiboot log files

Since you get this far, it means that ubiboot is able to find and load your kernel correctly.
Does the device just hang, with a black screen?

The most propable cause is that you are missing the preinit file for harmattan, or that the preinit is not marked executable.
Ubiboot uses a set of preinit files for Harmattan, Nitdroid and FirefoxOS that you can download from here.
If you do not use any of those except Harmattan, the quick fix is to copy your /sbin/preinit to /sbin/preinit_harmattan
Be sure to check that the preinit file has the execute permissions set.

juiceme 2013-12-12 06:29

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

Originally Posted by gdelca5 (Post 1395235)
sorry if the topic does not belong to this thread,

The infamous simlock issue:

Yes, this is the same problem that @flotron has.
I think it is particulary nasty that this exists, as I was sure that N9's were not sold simlocked.


Quote:

Originally Posted by gdelca5 (Post 1395235)
Can 2ndboot help to load an unsigned kernel image ?
http://forum.xda-developers.com/show....php?t=1942319

I thought about this a bit, and yes, it is doable but it is not simple.
Also, every time you boot you'd need to run the same thing again :(

How I'd take a go at it if I was you;
  • 1.) first thing you need is to port the boot module to 2.6.32.54 so it is usable on N9. The userspace utilities propably compile without modifications.
  • 2.) as you are stuck permanently in Closed Mode due to simlock, you need inception to install the module.
  • 3.) Possibly some modification on the 2nd stage kernel? using kexec() chainloading does not need this but I am not famliar with 2ndboot.

juiceme 2013-12-12 06:32

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

Originally Posted by Garp (Post 1395243)
Is Nemo partition still hard coded as p4?
If so how to editing the script? (sorry but normally I use KhtSimple Text (root) to handle this - is it nano to use here?):(

No, these issues were for older version of ubiboot :)
0.3.5 is fairly flexible in this, for example my ow device's got radicalily different partition layout and just about anything can be configured in your ubiboot.conf :D

romu 2013-12-12 15:36

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi,
Just tried to install Uniboot and this was not a success. Indeed, it is a success, but I can't boot Harmattan anymore.

I didn't install Sailfish nor other OS, just Harmattan for the moment. I've successfully open my N9, and re-partioned it, without any issue. Troubles being with Ubiboot.

First, to copy the "zImage_2.6.32.54-openmode_l2fix" to /media/<login>/rootfs/boot, I had to switch to sudo, normal? I asked because this is not explicitely described in the tutorial.

Now when I start my N9, if I let the default OS starting, I see...nothing, just a black screen. Nothing happens, and I had to press the power off button few seconds to shutdown the device.

Of course, that's the same if I click the second icon on the left (the one with 2 characters "fighting"), and choose "Openmode + L2fix".

Any help to get back my device would be great, preferably without having to reflash a stock ROM.

Another question, is there a way to remove non wanted OSes? By tweaking the ubiboot.conf?

Thanks...pretty urgent.

juiceme 2013-12-12 15:46

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

Originally Posted by romu (Post 1395582)
Hi,
Just tried to install Uniboot and this was not a success. Indeed, it is a success, but I can't boot Harmattan anymore.

I didn't install Sailfish nor other OS, just Harmattan for the moment. I've successfully open my N9, and re-partioned it, without any issue. Troubles being with Ubiboot.

First, to copy the "zImage_2.6.32.54-openmode_l2fix" to /media/<login>/rootfs/boot, I had to switch to sudo, normal? I asked because this is not explicitely described in the tutorial.

Now when I start my N9, if I let the default OS starting, I see...nothing, just a black screen. Nothing happens, and I had to press the power off button few seconds to shutdown the device.

Of course, that's the same if I click the second icon on the left (the one with 2 characters "fighting"), and choose "Openmode + L2fix".

Any help to get back my device would be great, preferably without having to reflash a stock ROM.

Another question, is there a way to remove non wanted OSes? By tweaking the ubiboot.conf?

Thanks...pretty urgent.

I guess you are propably another one who has missed the part that explains about preinit scripts in the ubiboot README file.

As for modifying the menus, that can be done by recompiling the CPIO, an easy thing to do really. I actually already considered of maybe doing a special one that contains just the Harmattan menu and Sailfish menu, if people need something like that...

romu 2013-12-12 16:59

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Thanks, been able to start Harmattan again, guess the Sailfish tutorial should talk about these scripts, this is not currently the case.

Garp 2013-12-12 19:54

Re: Introducing ubiboot N9 (multiboot OS loader)
 
My partitions are not in disk order. Anyone have experience with using x) exstra functionality f) fix?
Is it risky business to use fix and has this missing order any impact on devise function?

Disk /dev/mmcblk0: 64.1 GB, 64130908160 bytes
4 heads, 16 sectors/track, 1957120 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 17 1359680 43509248 c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2 1760513 1891584 4194304 83 Linux
/dev/mmcblk0p3 1891585 1957120 2097152 83 Linux
/dev/mmcblk0p4 1359681 1760512 12826624 5 Extended
Partition 4 does not end on cylinder boundary
/dev/mmcblk0p5 1629473 1760512 4193280 83 Linux
/dev/mmcblk0p6 1494593 1629440 4315136 83 Linux
/dev/mmcblk0p7 1359713 1494560 4315136 83 Linux

Partition table entries are not in disk order

peterleinchen 2013-12-12 20:23

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@garp
Everything is alright. Just a small cylinder boundary inconsistency, which should not affect anything as on the endd. If they were at the head they could make disk access a bit slower.
So no need to change. Or you have again to change ubiboot.conf, /etc/fstab and so on ....

taixzo 2013-12-13 06:59

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

Originally Posted by coderus (Post 1394062)
show logfile :)

Logfile: http://pastebin.com/dxCxp6Vk


All times are GMT. The time now is 21:47.

vBulletin® Version 3.8.8