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-04-05 06:30

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Okay, now a new version of ubiboot-02 (rev. 0.3.1) is ready for download at swagman.

Props for coderus with helping to debug the race condition I had in the previous version :)

peterleinchen 2013-04-05 07:50

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

Originally Posted by juiceme (Post 1334177)
Well, updating from 01 -> 02 is really easy, just grab the ubiboot-02_040413.tar, put the ubiboot.conf and ubiboot-02.menus.cpio in the root of your ubifs partition (since you already have prepared that) and check the content of the ubiboot.conf.

Well, I thought more about using sequence from 01 (mtd4/5 r/w). And new logic from 02.
As I see the init code is compiled into the kernel, so there is no chance for own debugging any more, right?


And out of curiosity: what was the problem with harmattans autoboot? I took a look, but did not see nay suspicious.

juiceme 2013-04-05 07:58

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

Originally Posted by peterleinchen (Post 1334225)
Well, I thought more about using sequence from 01 (mtd4/5 r/w). And new logic from 02.
As I see the init code is compiled into the kernel, so there is no chance for own debugging any more, right?

What about the ubiboot-01 you find that you need, is it the softlinks in /boot/, like do you need Nemo->/mnt/8 or something like that?
The links are in the cpio, so it's only necessary to change that.

Quote:

Originally Posted by peterleinchen (Post 1334225)
And out of curiosity: what was the problem with harmattans autoboot? I took a look, but did not see nay suspicious.

The root cause was not the G_HARMATTAN_AUTOBOOT=1 setting, and neither it was the VFAT on /mtd/4. Actually it was a race condition in init that caused /mtd/2 to be umounted before the kernel selection :eek:
For the whole story, see the IRC log at http://www.swagman.org/juice/ubiboot/irclog

meemorph 2013-04-05 08:42

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

Originally Posted by peterleinchen (Post 1334170)
@mmemorph
Do you have set the G_HARMATTAN_AUTOBOOT=1 ?

Then reset it to '0' and you should be OK. See irclog...

no that dosn't matter. Will try the 0.3.1 next.

meemorph 2013-04-05 08:50

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

Originally Posted by juiceme (Post 1334177)
Well, updating from 01 -> 02 is really easy, just grab the ubiboot-02_040413.tar, put the ubiboot.conf and ubiboot-02.menus.cpio in the root of your ubifs partition (since you already have prepared that) and check the content of the ubiboot.conf.

...

I think that won't fit. My mtd5 is ~25MB the cpio file >50MB. Have to use it on ~/MyDocs/boot.

The mtd5 is a nice fallback, if you have to debug a little more ;-)

juiceme 2013-04-05 08:50

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

Originally Posted by meemorph (Post 1334234)
no that dosn't matter. Will try the 0.3.1 next.

Please do, that one fixes the selection bug.

What's your HW revision btw? I am still collecting data about revisions where ubiboot has problems, to find out if rev.1603 is the only problematic device.

meemorph 2013-04-05 09:10

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

Originally Posted by juiceme (Post 1334238)
Please do, that one fixes the selection bug.

What's your HW revision btw? ...

1501

The 0.3.1 did the first successfull boot. I only changed the cpio-file and flashed the new kernel.

Thanks.

juiceme 2013-04-05 11:19

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

Originally Posted by meemorph (Post 1334237)
I think that won't fit. My mtd5 is ~25MB the cpio file >50MB. Have to use it on ~/MyDocs/boot.

The mtd5 is a nice fallback, if you have to debug a little more ;-)

You can actually trim down thd cpio quite a lot. Most of the 50M is extra kernel modules which I included just in case (for future expansion needs).

You can delete the /lib/modules hierarchy from the cpio and repack it, and the size will be about 3.6M :D

peterleinchen 2013-04-05 22:50

Re: Introducing ubiboot N9 (multiboot OS loader)
 
3 Attachment(s)
@juiceme
Could you please post the command for cpio, as I am not used to that format and do not know which parameters to give for packing (unpacking is easy :)).


I had a deeper look into sources this evening, and I was a bit "disappointed" (dont get me wrong!). I thought with G_MOUNTABLE_PARTITIONS we also got configurable Nemo partition. But that is not the case. So I made my own configuration. Not yet tested, as I am on the road without flasher tools, so if you could check that and use that maybe?
I think it will work and all changes are based on 05042013 version. So a diff will let you know easily.
Of course I do need it only for Nemo. But maybe later I want to move Nit to another real partition. And for Harmattan this maybe could also be usable to have a safe copy (dd p2 to p5) of a bootable Harmattan version for developers/tweakers?

--edit
I forgot about the links /boot/Nemo and /boot/Harmattan to /mnt/x.
Attached is v2 of my mods (only affected:@select_animated_os.sh).
They are checked to point to correct configured partition number, else they are removed and created again. I do not know if this is possible with cpio version?

--edit
corrected nit partition number in conf
set chroot folder for nit back to 0p3/nitdroid (default)
added hack for aegis store (.aegisfs, .account, .activesync), onyl needed (or maybe not at all, discussion ongoing) for switching between stock and openmode kernel (hereby creating accounts)

juiceme 2013-04-06 08:44

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

Originally Posted by peterleinchen (Post 1334380)
@juiceme
Could you please post the command for cpio, as I am not used to that format and do not know which parameters to give for packing (unpacking is easy :)).

To unpack the cpio archive to current directory with command: "cpio -id --no-absolute-filenames < ubiboot-02.menus.cpio"

Tp repack the current directory to cpio archive, use command "find . | cpio -H newc -o > ../ubiboot-02.menus.cpio"


Quote:

Originally Posted by peterleinchen (Post 1334380)
I had a deeper look into sources this evening, and I was a bit "disappointed" (dont get me wrong!). I thought with G_MOUNTABLE_PARTITIONS we also got configurable Nemo partition. But that is not the case. So I made my own configuration. Not yet tested, as I am on the road without flasher tools, so if you could check that and use that maybe?
I think it will work and all changes are based on 05042013 version. So a diff will let you know easily.
Of course I do need it only for Nemo. But maybe later I want to move Nit to another real partition. And for Harmattan this maybe could also be usable to have a safe copy (dd p2 to p5) of a bootable Harmattan version for developers/tweakers?

Yes, you are of course correct :)
At some point I thought about that, just like I have the initscript defined like in G_HARMATTAN_INITSCRIPT I should perhaps have the partition also configurable...
I just did not implement it at that time :D

Maybe the partition should also be defined like a sed replacement string for the whole partition name
(something like G_HARMATTAN_PARTITION="\/dev\/mmcblk0p2")


All times are GMT. The time now is 06:55.

vBulletin® Version 3.8.8