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)

peterleinchen 2013-03-10 20:28

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

sorry for being frank.
If you do not know how to do the above, this tweak may not be for you (at this time). At least minmimum Linux/shell knowledge might be needed.
The boot.conf is located in folder etc/ in root of ubifs, so
/mnt/etc/boot.conf
and use vi to edit on device. Or extract from tar, edit on (Linux) PC and copy to device.

peterleinchen 2013-03-10 21:35

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hey juiceme,

many many thanks for this release. I have been waiting for this since I read about multiboot for N9.
It was a hell of a ride. But now I got (almost) all working.
Nit is starting, Harmattan with all kernels.
Very very nice.

I only have problems with Nemo. But I think it is my own fault. I have installed Nemo on mmcblk0p7.
I modified boot.conf, fstab, init, select_os_animated.sh, kexec_load to match my needs (grepped for mmcblk and replaced p4 with p7). But still Nemo does not boot up.
Is there more to adapt?
Or any chance to find logs, what went wrong? ubifs/mnt/var/log/messages does not show anything, neither logs of Nemo partition.
--edit2
Just found that cmdline of Nemo also points to mmcblk0p4. Modified, but still to no avail. Somenone knows where p4 is also hardcoded on Nemo partition?

Again thanks for that piece of OSS.

P.S.: a request: is there a possibility to add a shell to the boot menu, maybe under info tab? So it is much easier/faster to recover from bad tweaking or log checking on device without need of USB/PC.


--edit
P.P.S.: I have another problem, but related to repartitioning. So a bit offtopic here, that is why I posted here my question regarding maximum number of devices/partitions on mmcblk0

byteninja2 2013-03-11 03:05

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

Originally Posted by peterleinchen (Post 1328216)
Hi byteninja2,

sorry for being frank.
If you do not know how to do the above, this tweak may not be for you (at this time). At least minmimum Linux/shell knowledge might be needed.
The boot.conf is located in folder etc/ in root of ubifs, so
/mnt/etc/boot.conf
and use vi to edit on device. Or extract from tar, edit on (Linux) PC and copy to device.

I got this far, and I have experience with Linux. But how do I use vi? And which tar, there are multiple tars for download.

coderus 2013-03-11 04:39

Re: Introducing ubiboot N9 (multiboot OS loader)
 
nano /mnt/etc/boot.conf

byteninja2 2013-03-11 06:59

Re: Introducing ubiboot N9 (multiboot OS loader)
 
/bin/sh: nano: not found
Now i get this with that command.

coderus 2013-03-11 07:04

Re: Introducing ubiboot N9 (multiboot OS loader)
 
install Developer mode "Utilities"

btw, i agree with peterleinchen about your linux knowledge. you haven't it.

peterleinchen, have you created mnt/5 mnt/6 mnt/7 for partitions? have you modifyed init # Mount the partitions that got kernels on them section?

peterleinchen 2013-03-11 08:40

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

Originally Posted by coderus (Post 1328295)
peterleinchen, have you created mnt/5 mnt/6 mnt/7 for partitions? have you modifyed init # Mount the partitions that got kernels on them section?

Yep, yep and yep for other sections, too. (will add my mods later)
Maybe I missed something, but after I found hard-coded "mmcblkp04" in /boot/cmdline of Nemo image, I believe the problem is with that?

Or maybe, as thinking while writing, I have added p7 to "kernels on them" section, maybe just replace? (i could not dig any deeper into code due to missing free time. It took me already two days to get here :( OK, with a lot of breaks ;))

coderus 2013-03-11 08:46

Re: Introducing ubiboot N9 (multiboot OS loader)
 
i think you should look into nemo code and recompile some tools or hex edit it

theyosh 2013-03-11 09:07

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

Originally Posted by peterleinchen (Post 1328302)
Yep, yep and yep for other sections, too. (will add my mods later)
Maybe I missed something, but after I found hard-coded "mmcblkp04" in /boot/cmdline of Nemo image, I believe the problem is with that?

Or maybe, as thinking while writing, I have added p7 to "kernels on them" section, maybe just replace? (i could not dig any deeper into code due to missing free time. It took me already two days to get here :( OK, with a lot of breaks ;))

Hmm, not sure if p4 is required. Here are the manual installation information: https://wiki.merproject.org/wiki/Nemo/Installing

I think you know them already.? The only I can think of is that in the old days, you were not allowed to boot an OS from an extended / logical partition.

And you can have max 4 partitions if you don't use extended and logical partitions. So I get the feeling, it is not booting because the OS is placed on a logical partition......

But I don't have any information that can confirm this. It is just a thought.

juiceme 2013-03-11 09:32

Re: Introducing ubiboot N9 (multiboot OS loader)
 
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


All times are GMT. The time now is 17:54.

vBulletin® Version 3.8.8