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-18 04:58

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

Originally Posted by explit (Post 1336840)
Hello juiceme, hello guys.
The ubiboot_01 version for the mtd5 Partition working perfect for me, but ubiboot_02 not working at all... I put ubiboot-02.menus.cpio, ubiboot.conf and my kernels inside the MyDocs/boot folder. Also copied the kernel zImages into /boot on my N9 rootfs.
in the ubiboot.cfg I adjusted folders to /boot/.

I see the menus, can choose the kernel (or not choose them)...
Then i got black screen and nothing happen....

Any ideas ?

PS: inside the mtd5 i have a fully working ubifs_01 with all kernels inside /mnt/boot

Can you post the log files that ubiboot-02 creates on your Harmattan partition?
Each time it runs it will log to /var/log/ubiboot.dmesg and /var/log/ubiboot.log
If you copy those logs to pastebin.com, for example, I will see what's happening on your device.

explit 2013-04-18 07:28

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

Originally Posted by juiceme (Post 1336909)
Can you post the log files that ubiboot-02 creates on your Harmattan partition?
Each time it runs it will log to /var/log/ubiboot.dmesg and /var/log/ubiboot.log
If you copy those logs to pastebin.com, for example, I will see what's happening on your device.

Thank you very much juiceme for Your patience with us ;-)
Here are my log files, but I i take this files now (running ubiboot_01 on my mtd5)
I don't know if the log shows previos messages, where the ubiboot_02 was active...

ubiboot.log
http://pastebin.com/pkEGB2Dh

ubiboot.dmesg
http://pastebin.com/6jiRzFjw

juiceme 2013-04-18 08:31

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

Originally Posted by explit (Post 1336932)
Thank you very much juiceme for Your patience with us ;-)
Here are my log files, but I i take this files now (running ubiboot_01 on my mtd5)
I don't know if the log shows previos messages, where the ubiboot_02 was active...

ubiboot.log
http://pastebin.com/pkEGB2Dh

ubiboot.dmesg
http://pastebin.com/6jiRzFjw

Okay, from your ubiboot.log I can see the following things:
(I am here looking at the second-latest boot in the file, as that is a normal non-maintanance boot)

Code:

Apr 17 19:37:29 (none) syslog.info syslogd started: BusyBox v1.19.4
Apr 17 19:37:29 (none) user.notice 0: No archive found from mtd5
Apr 17 19:37:31 (none) user.notice 0: Copied archive ubiboot-02.menus.cpio from mmcblk0p1/boot
Apr 17 19:37:31 (none) user.notice 0: N9 ubiboot ver. 0.3.1
Apr 17 19:37:31 (none) user.notice 0: kernel Linux (none) 2.6.32.54-ubiboot-02 #9 PREEMPT Fri Apr 5 08:49:40 EEST 2013 armv7l GNU/Linux

ubiboot-02 has started corectly, and found the cpio archive from your MyDocs/boot directory

Code:

Apr 17 19:37:31 (none) user.notice 0: bootreason: pwr_key
Apr 17 19:37:31 (none) user.notice 0: bootmode: normal
Apr 17 19:37:31 (none) user.notice 0: Exit maintanance mode

Normal boot detected, no USB cables connected

Code:

Apr 17 19:37:31 (none) user.notice 0: Mounting /mnt/2
Apr 17 19:37:31 (none) user.notice root: Mounting /mnt/4
Apr 17 19:37:32 (none) user.notice root: Starting menu launcher
Apr 17 19:37:32 (none) user.notice root: Reached end of init!
Apr 17 19:37:32 (none) user.notice root: Loading animation control file
Apr 17 19:37:32 (none) user.notice root: touchdevice: /dev/input/event3
Apr 17 19:37:32 (none) user.notice root: O_COMMAND_LINE:  init=/sbin/preinit root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=tty0 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config
Apr 17 19:37:32 (none) user.notice root: Started animated OS selection menu

Menu is loaded and shown for user

Code:

Apr 17 19:37:51 (none) user.notice root: Selecting Harmattan OS, running kernel /boot/zImage.nit
Apr 17 19:37:52 (none) user.notice root: kexec_load() successful
Apr 17 19:37:52 (none) user.notice root: Restarting to selected OS
Apr 17 19:37:52 (none) user.notice root: Saving ubiboot log files

Finally the selection is booted and ubiboot log ends.

Now, this kernel location looks like it's trying to load something that does not exist. As the root of ubiboot-02 is on the ramFS, when kernel is specified as "/boot/zImage.nit", it is trying to load from /boot of the ramFS, not from mmcblk/mtd partitions.

For example, on my device the Harmattan kernel line from my last boot reads like this:

Code:

Apr 18 07:18:02 (none) user.notice root: Selecting Harmattan OS, running kernel /boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix
Of course that is also possible to boot kernel from ubiboot-02 rootfs, but then you would need to put the kernel inside the cpio to be loaded into ramFS.

juiceme 2013-04-18 09:24

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

Originally Posted by explit (Post 1336840)
I put ubiboot-02.menus.cpio, ubiboot.conf and my kernels inside the MyDocs/boot folder. Also copied the kernel zImages into /boot on my N9 rootfs.
in the ubiboot.cfg I adjusted folders to /boot/.

To sum it up, you need to specify the Harmattan/Nitdroid kernel locations like this in your ubiboot.conf:

"/boot/Harmattan/boot/zImage-2.6.32.54-dfl61-20121301"
"/boot/Harmattan/boot/zImage.nit"

Then, it will load the kernels from your "mmcblk0p2:/boot/", the location that appears as "/boot/" on your Harmattan installation.

michaelmhk 2013-04-18 14:49

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Finially got triple boot!!!
Stuck at the preinit without x premission and where the zImage should place.
Thanks a lot!!!

explit 2013-04-18 19:20

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

Originally Posted by juiceme (Post 1336947)
To sum it up, you need to specify the Harmattan/Nitdroid kernel locations like this in your ubiboot.conf:

"/boot/Harmattan/boot/zImage-2.6.32.54-dfl61-20121301"
"/boot/Harmattan/boot/zImage.nit"

Then, it will load the kernels from your "mmcblk0p2:/boot/", the location that appears as "/boot/" on your Harmattan installation.

Thank you very much juiceme, now i understand.

One last question:

mmcblk0p:/boot/ is it the /boot/ Folder on Harmattan rootfs or /home/user/MyDocs/boot/ ?

Now i have the kernels on both places, but this is not necessary, i think ?

juiceme 2013-04-18 19:59

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

Originally Posted by explit (Post 1337115)
Thank you very much juiceme, now i understand.

One last question:

mmcblk0p:/boot/ is it the /boot/ Folder on Harmattan rootfs or /home/user/MyDocs/boot/ ?

Yes, mmcblk0p1:/boot/ is the /home/user/MyDocs/boot/

Quote:

Originally Posted by explit (Post 1337115)
Now i have the kernels on both places, but this is not necessary, i think ?

You need only to have kernels on mmcblk0p2:/boot/, just like when using ubiboot-01. This is compability feature, I kept the kernel repository location same on both -01 and -02.

On first glance this might look a bit funny, that kernels are not on the same directory as the ubiboot-02 configuration file and cpio archive, but that is a concious design.

juiceme 2013-04-19 20:40

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Mirrored the ubiboot repository on swagman.org to skeiron.org.
It might be that for some people access to skeiron is faster.

The mirror url is http://juiceme.cloud-7.de/ubiboot/

KTy 2013-04-20 06:27

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Is it reasonable to think that thanks to this multiboot OS loader we will have in the future a working Android and Jolla on our N9 ?
I mean, thinking out load, now with the ability to boot custom kernel, there are no more limitations, right ?

juiceme 2013-04-20 19:15

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

Originally Posted by KTy (Post 1337491)
Is it reasonable to think that thanks to this multiboot OS loader we will have in the future a working Android and Jolla on our N9 ?
I mean, thinking out load, now with the ability to boot custom kernel, there are no more limitations, right ?

Well, booting alternate OS'es has been possible on the device for quite a some time, ubiboot only makes it very handy to do due to no external flasher required and via nice boot menu.

There are always limitations, for example the primary boot loader and NOLO are still locked but to most things there exist workarounds.


All times are GMT. The time now is 10:18.

vBulletin® Version 3.8.8