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-11-07 08:26

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@juiceme
I have sometimes strange selection behaviour?

I have 5 items for harmattan (also configured number correctly), but sometimes when I press a bit below the fifth entry, I get:

Quote:

Nov 6 08:40:08 (none) user.notice root: Started animated OS selection menu
Nov 6 08:40:12 (none) user.notice root: Selected second level menu for OS2
Nov 6 08:40:14 (none) user.notice root: Drawing second level menu items for OS2
Nov 6 08:40:14 (none) user.notice root: Get menuitem for OS2 (5 lines)
Nov 6 08:40:18 (none) user.notice root: Selecting Harmattan OS, running kernel
Nov 6 08:40:19 (none) user.notice root: Cannot load Harmattan kernel
Nov 6 08:40:19 (none) user.notice root: Boot OS/kernel selection failed
Nov 6 08:40:19 (none) user.notice root: Saving ubiboot log files

But when I reboot and take care to press the fifth row(s) exactly then it boots up fine:
Quote:

Nov 6 08:41:08 (none) user.notice root: Get menuitem for OS2 (5 lines)
Nov 6 08:41:12 (none) user.notice root: Selecting Harmattan OS, running kernel /boot/Harmattan/boot/zImage_2.6.32.61-plus_20131030
Nov 6 08:41:13 (none) user.notice root: Loading kernel /boot/Harmattan/boot/zImage_2.6.32.61-plus_20131030
Nov 6 08:41:13 (none) user.notice root: kexec_load() successful
Nov 6 08:41:13 (none) user.notice root: Restarting to selected OS
Nov 6 08:41:13 (none) user.notice root: Saving ubiboot log files
Any idea? [maybe next logger version outputs also number of selected item? ]

juiceme 2013-11-07 08:40

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

Originally Posted by peterleinchen (Post 1384839)
@juiceme
I have sometimes strange selection behaviour?

I have 5 items for harmattan (also configured number correctly), but sometimes when I press a bit below the fifth entry, I get:

Quote:

Nov 6 08:40:08 (none) user.notice root: Started animated OS selection menu
Nov 6 08:40:12 (none) user.notice root: Selected second level menu for OS2
Nov 6 08:40:14 (none) user.notice root: Drawing second level menu items for OS2
Nov 6 08:40:14 (none) user.notice root: Get menuitem for OS2 (5 lines)
Nov 6 08:40:18 (none) user.notice root: Selecting Harmattan OS, running kernel
Nov 6 08:40:19 (none) user.notice root: Cannot load Harmattan kernel
Nov 6 08:40:19 (none) user.notice root: Boot OS/kernel selection failed
Nov 6 08:40:19 (none) user.notice root: Saving ubiboot log files
Any idea? [maybe next logger version outputs also number of selected item? ]

This sure looks like the tap was registered for the non-existing sixth line. I'll have to see the scripts whether there's a bug in them.
What should happen is that the touch-map that is generated contains hooks only for the number of lines present in the menu.

juiceme 2013-11-07 08:51

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

Originally Posted by juiceme (Post 1384842)
This sure looks like the tap was registered for the non-existing sixth line. I'll have to see the scripts whether there's a bug in them.
What should happen is that the touch-map that is generated contains hooks only for the number of lines present in the menu.

Oh yeah, there's a bug indeed! Nicely spotted. :D

Code:

juice@osiris:~/animatronics$ svn diff menuscripts/select_os_animated.sh
Index: menuscripts/select_os_animated.sh
===================================================================
--- menuscripts/select_os_animated.sh        (revision 70)
+++ menuscripts/select_os_animated.sh        (working copy)
@@ -429,7 +429,7 @@
  else
    mapfile_line_5=$(echo -e "# mapfile_line_5")
  fi
-  if [ $maplines -gt 4 ]; then
+  if [ $maplines -gt 5 ]; then
    mapfile_line_6=$(echo -e "$X6B 0 $X6E 480 6 65 $7")
  else
      mapfile_line_6=$(echo -e "# mapfile_line_6")
juice@osiris:~/animatronics$

I'll fix that and make you a new cpio to test :)

peterleinchen 2013-11-07 09:01

Re: Introducing ubiboot N9 (multiboot OS loader)
 
most rapid bug solving ever :D

( yes. I forgot to mention that nothing is highlighted on selection)

juiceme 2013-11-07 09:14

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

Originally Posted by peterleinchen (Post 1384848)
most rapid bug solving ever :D

( yes. I forgot to mention that nothing is highlighted on selection)


And here's the correction; http://www.swagman.org/juice/ubiboot..._07112013.cpio :D

peterleinchen 2013-11-07 20:37

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

Originally Posted by juiceme (Post 1384855)
And here's the correction :D

And here is the confirmation. :)
Everything fine now. Thanks.

Mric 2013-11-10 16:20

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hey everyone,
In order to use ubiboot I have flashed my device with openkernel mode but I forgot to delete my accounts and therefore I had to re-renter all my passwords after every boot. I have have tried to fix my account problems but I made it worse and now I can't connect as all to any service, it keeps telling me "unknown error, try again later".
I have backed up all my important files and pictures and now I would like 'reflash' harmattan. If I understand right I don't need to flash it because I'm using ubiboot right ? So my question is what is the equivalent of flashing to start fresh under ubiboot?
Thank you

juiceme 2013-11-10 17:30

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

Originally Posted by Mric (Post 1385490)
Hey everyone,
In order to use ubiboot I have flashed my device with openkernel mode but I forgot to delete my accounts and therefore I had to re-renter all my passwords after every boot. I have have tried to fix my account problems but I made it worse and now I can't connect as all to any service, it keeps telling me "unknown error, try again later".
I have backed up all my important files and pictures and now I would like 'reflash' harmattan. If I understand right I don't need to flash it because I'm using ubiboot right ? So my question is what is the equivalent of flashing to start fresh under ubiboot?
Thank you

Yes, to correctly flash the device for OpenMode is not just for ubiboot, but it's best to do that for any kind of OpenMode kernel.

The correct way to enter Open Mode is the back-to-back flashing where you first flash the device like in "normal closed mode flashing", both emmc and rootfs. Then you immediately flash the device with an Open Mode kernel, without letting the device to boot up between the two flashing rounds.

If you perform this correctly, the device will start up in Open Mode so that aegis keys are created correctly. This will help you avoid all odd problems caused by running device with incorrect credentials (password problems, strange hangups and boots, general slowing and lagging of device...)

I recommend you do this first, and install ubiboot only after it.

peterleinchen 2013-11-10 20:50

Re: Introducing ubiboot N9 (multiboot OS loader)
 
If you feel like you do not like the warranty warning on boot do the following before above procedure:

- flash device fully (rootfs and emmc).
- boot up, get internet connection, enable developer mode from security settings, open a terminal (console) and type
disclaimer-cal remove View-openmode
- now continue with above guide ()


@juiceme
wouldnt it be easier for you to copy that to first post and only give a pointer ;)

Eztran 2013-11-11 15:59

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

Originally Posted by juiceme (Post 1385500)
The correct way to enter Open Mode is the back-to-back flashing...
...If you perform this correctly, the device will start up in Open Mode so that aegis keys are created correctly. This will help you avoid all odd problems caused by running device with incorrect credentials (password problems, strange hangups and boots, general slowing and lagging of device...)

Does this include the apps crashing on app install thing? I kinda assumed that was related to this problem, but a successful back-to-back flash didn't help. Sorry for offtopic'ing.


All times are GMT. The time now is 09:27.

vBulletin® Version 3.8.8