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)

explit 2013-05-06 16:45

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hello Juiceme,

I have a question, if it would be possible to switch between Harmattan PR1.3 OpenMode-Kernel and Stock Nokia PR1.3 Kernel. Would it be possible ?
I want to switch between Stock and OpenMode because OpenMode has Problems with creating SIP Accounts. Do you know where i can get a stock Nokia PR1.3 Kernel?

Or how i can extract a kernel file from Fiasco Image ?

N900 Fremantle Flasher has a option --unpack, but it don't work with harmattan fiasco images.... Or I don't know how to do it...

THX

juiceme 2013-05-06 21:41

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

Originally Posted by explit (Post 1341668)
Hello Juiceme,

I have a question, if it would be possible to switch between Harmattan PR1.3 OpenMode-Kernel and Stock Nokia PR1.3 Kernel. Would it be possible ?
I want to switch between Stock and OpenMode because OpenMode has Problems with creating SIP Accounts. Do you know where i can get a stock Nokia PR1.3 Kernel?

Or how i can extract a kernel file from Fiasco Image ?

N900 Fremantle Flasher has a option --unpack, but it don't work with harmattan fiasco images.... Or I don't know how to do it...

THX

Hi!

You should be able to unpack the firmware image with 0xFFFF, however I could not do that, it just complained about "Next valid header not found"

However, I remembered that the previous version of the Nokia flasher, the version 3.5 still has the "-u" optin available, and it seems to work on Harmattan images too.

So,do "flasher-3.5 -u -F firmware.bin" and you will get a laod of images out. Among all the files is the zImage file:
Code:

juice@puuma:~/n9_stuff$
juice@puuma:~/n9_stuff$ ls -l zImage
-rw-r--r-- 1 juice juice 2779776 2013-05-07 00:31 zImage

However, I'd like to get your help too on debugging the reason the L2fixed image does not work with SIP when booted with kexec().

explit 2013-05-06 21:49

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

Originally Posted by juiceme (Post 1341729)
Hi!

You should be able to unpack the firmware image with 0xFFFF, however I could not do that, it just complained about "Next valid header not found"

However, I remembered that the previous version of the Nokia flasher, the version 3.5 still has the "-u" optin available, and it seems to work on Harmattan images too.

So,do "flasher-3.5 -u -F firmware.bin" and you will get a laod of images out. Among all the files is the zImage file:
Code:

juice@puuma:~/n9_stuff$
juice@puuma:~/n9_stuff$ ls -l zImage
-rw-r--r-- 1 juice juice 2779776 2013-05-07 00:31 zImage

However, I'd like to get your help too on debugging the reason the L2fixed image does not work with SIP when booted with kexec().

Thank you, juiceme.

I tryed alredy with Fremantle Flasher, it finds all parts of the fiasco image (also the kernel zImage), but it gives an error an the end "Wrong size of the image" and don't unpack the files....

Of course i try to help you with the sip accounts problem, but i think, it is not ubiboot-problem, it's openmode problem. (I have 2 AVM FritzBox Routers with SIP ability). N900: No problem. N9 closed mode: No problem. N9 OpenMode: No connection to sip.

peterleinchen 2013-05-06 22:28

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@explit
The way juiceme described how to get the kernel is exactly what I have done earlier. So I am sure it works. Maybe your firmware file is corrupted (during download)? Do not know the command by heart, but something as above.

About SIP problem: I am struggling with this since the beginning.
And now I am sure it is kexec causing this. Not openmode itsellf (what I thought before, too). I flashed the open mode kernel and all problems were gone. Back to ubiboot no SIP with open mode.

And yes you may switch between stock and open mode kernel. Just make sure you create your first account under open mode.

--
Oh. And could you give us your hardware revision, please?
Code:

hal-device | grep hardware
--
And another Oh @juiceme
Quote:

Originally Posted by juiceme (Post 1341729)
However, I'd like to get your help too on debugging the reason the L2fixed image does not work with SIP when booted with kexec().

It is not only the L2fixed kernel, but any open mode kernel has this problem when started via kexec.

dex87 2013-05-07 00:23

Re: Introducing ubiboot N9 (multiboot OS loader)
 
http://en.wikipedia.org/wiki/File:U-...freerunner.jpg

Is this possible on our N9??? with power off & reboot commands??? :)

juiceme 2013-05-07 05:20

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

Originally Posted by dex87 (Post 1341755)
http://en.wikipedia.org/wiki/File:U-...freerunner.jpg

Is this possible on our N9??? with power off & reboot commands??? :)

Yes, you could add power off & reboot commands to ubiboot, that's no problem.

Also, it's possible to port u-boot to N9, that would not be a big problem altough ubiboot is more versatile than u-boot.

juiceme 2013-05-07 05:25

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

Originally Posted by explit (Post 1341730)
I tryed alredy with Fremantle Flasher, it finds all parts of the fiasco image (also the kernel zImage), but it gives an error an the end "Wrong size of the image" and don't unpack the files....

Get the image I extracted from here:
http://www.swagman.org/juice/zImage_...13_nokiasigned
(md5sum = 1c080ed7d8cb3341e1610939838ea5d4)

explit 2013-05-07 09:36

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

Originally Posted by juiceme (Post 1341786)
Get the image I extracted from here:
http://www.swagman.org/juice/zImage_...13_nokiasigned
(md5sum = 1c080ed7d8cb3341e1610939838ea5d4)

Thank you, juiceme, i not seen your answer. Will try it now.

How did You did it (extract the kernel) ?

juiceme 2013-05-07 10:08

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

Originally Posted by explit (Post 1341840)
Thank you, juiceme, i not seen your answer. Will try it now.

How did You did it (extract the kernel) ?

I spliced it off the PR1.3 firmware image (DFL61_HARMATTAN_40.2012.21-3_PR_LEGACY_001-OEM1-958_ARM.bin, actually) with the Maemo version of flasher, which understands the --unpack flag.

Nokia seems to have removed that option (propably as a security-by-obscurity-measures reason) from the Harmattan version of the flasher utility, but fortunately the older flasher understands the Harmattan FIASCO images too :D

explit 2013-05-07 12:02

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

Originally Posted by juiceme (Post 1341848)
I spliced it off the PR1.3 firmware image (DFL61_HARMATTAN_40.2012.21-3_PR_LEGACY_001-OEM1-958_ARM.bin, actually) with the Maemo version of flasher, which understands the --unpack flag.

Nokia seems to have removed that option (propably as a security-by-obscurity-measures reason) from the Harmattan version of the flasher utility, but fortunately the older flasher understands the Harmattan FIASCO images too :D

Now i know, what my problem was:
I renamed the DFL61_HARMATTAN_40.2012.21-3_PR_LEGACY_001-OEM1-958_ARM.bin to firmware.bin and got File size mismatch with Fremantle flasher...

Thanks

explit 2013-05-07 12:06

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

Originally Posted by peterleinchen (Post 1341736)
@explit
The way juiceme described how to get the kernel is exactly what I have done earlier. So I am sure it works. Maybe your firmware file is corrupted (during download)? Do not know the command by heart, but something as above.

About SIP problem: I am struggling with this since the beginning.
And now I am sure it is kexec causing this. Not openmode itsellf (what I thought before, too). I flashed the open mode kernel and all problems were gone. Back to ubiboot no SIP with open mode.

And yes you may switch between stock and open mode kernel. Just make sure you create your first account under open mode.

--
Oh. And could you give us your hardware revision, please?
Code:

hal-device | grep hardware
--
And another Oh @juiceme

It is not only the L2fixed kernel, but any open mode kernel has this problem when started via kexec.

Danke, Peter,
I have a 1601 rev.
With ubiboot-02 and Stock PR1.3 Kernel, i could create and use SIP Account of my AVM FritzBox.

The problem with the extraction of kernel zImage from Fiasco was, that i renamed the original DFL~ File Name to firmware.bin.
:mad:


/home/user # hal-device | grep hardware
system.hardware.vendor = 'Nokia' (string)
system.hardware.product = 'board' (string)
system.hardware.uuid = '1601' (string)
system.hardware.version = '1601' (string)
system.hardware.serial = '0000000000000000' (string)
/home/user #

juiceme 2013-05-07 14:42

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

Originally Posted by explit (Post 1341871)
The problem with the extraction of kernel zImage from Fiasco was, that i renamed the original DFL~ File Name to firmware.bin.
:mad:

Actually, I just tried that, copied the firmware to another name and guess what; extraction succeeds.

explit 2013-05-07 17:36

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

Originally Posted by juiceme (Post 1341891)
Actually, I just tried that, copied the firmware to another name and guess what; extraction succeeds.

Unbelievable....:o

I tryed 2 times.
with the original name: No problem
after copy the file to firmware.bin: error...

:confused:

Maybe date/time of file creation or attributes?
Renamed under Debian Linux 6 / Midnight commander...

dexterous21 2013-05-10 18:07

Re: Introducing ubiboot N9 (multiboot OS loader)
 
pls i need a guide to install ubiboot .. i have the file and wud it also resolve the password always prompting wen switching from NITDROID.. PLS NEED HELP ASAP....THANK U

explit 2013-05-10 18:54

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Juiceme Readme File contains all information, you need for installing and configuring ubiboot:
http://www.swagman.org/juice/ubiboot/README
Promt for Password is normal, because of openmode Nitdroid Kernel. Delete All Accounts and recreate them under OpenMode Kernel.

Good luck.

dexterous21 2013-05-12 13:02

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

Originally Posted by explit (Post 1342690)
Juiceme Readme File contains all information, you need for installing and configuring ubiboot:
http://www.swagman.org/juice/ubiboot/README
Promt for Password is normal, because of openmode Nitdroid Kernel. Delete All Accounts and recreate them under OpenMode Kernel.

Good luck.

i removed all account ..switched off my fone and reg again but d same ish is still happening(i ve not installed ubiboot yet)

peterleinchen 2013-05-12 18:18

Re: Introducing ubiboot N9 (multiboot OS loader)
 
You need to remove the content of the following directories
(as user) type

rm -fr .accounts/*
rm -fr .activesync/*
rm -fr .aegis/*

this will remove all accounts, then reboot and recreate your accounts.

n0x 2013-05-30 00:04

Re: Introducing ubiboot N9 (multiboot OS loader)
 
1 Attachment(s)
Forgive me if this has been asked before. Has anyone been able to run the ADB enabled kernel by e-yes in the NITdroid forum using this?

http://forum.nitdroid.com/index.php?...sg6693#msg6693

it doesn't seem to recognize my ubiboot.conf file properly (well, it does for the others configs, but it doesn't for that specific kernel. Am i missing something? :[

juiceme 2013-05-30 05:19

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

Originally Posted by n0x (Post 1347910)
Forgive me if this has been asked before. Has anyone been able to run the ADB enabled kernel by e-yes in the NITdroid forum using this?

http://forum.nitdroid.com/index.php?...sg6693#msg6693

it doesn't seem to recognize my ubiboot.conf file properly (well, it does for the others configs, but it doesn't for that specific kernel. Am i missing something? :[

How does it behave exactly?
Does it attempt to boot the kernel, and then fail or does it not even try, so that you are thrown back to the menu?

n0x 2013-05-30 06:01

Re: Introducing ubiboot N9 (multiboot OS loader)
 
It does not even list in the menu itself. Lemme try to take a screencap. Apologies for the crappy picture

http://i.imgur.com/0EpQgnI.jpg
http://i.imgur.com/0EpQgnI.jpg

coderus 2013-05-30 06:25

Re: Introducing ubiboot N9 (multiboot OS loader)
 
set
Code:

G_NITDROID_NUM=2
maybe?

juiceme 2013-05-30 06:44

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

Originally Posted by n0x (Post 1347940)
It does not even list in the menu itself. Lemme try to take a screencap. Apologies for the crappy picture

Allright, I did not try this but I guess the problem could be this:

Code:

...
G_NITDROID_2_LABEL="E-yes Kernel with ADB/USB"
...

Try to change "ADB/USB" to something else, and see if that helps.
It might be that the slash is seen as an escape character here... (maybe "ADB\/USB" could help...)

n0x 2013-05-30 07:02

Re: Introducing ubiboot N9 (multiboot OS loader)
 
my bad, it was indeed the

G_NITDROID_NUM=2

=__= how stupid of me.

juiceme 2013-05-30 07:22

Re: Introducing ubiboot N9 (multiboot OS loader)
 
But of course! Props for sharp-eyed coderus for spotting it :D
I just looked at the slash in the label and did not check around the othe rows...

BTW, how does it run with the ADB-enabled kernel, any noticeable differences?

n0x 2013-05-31 03:15

Re: Introducing ubiboot N9 (multiboot OS loader)
 
It runs quite fine! you can now access device without needing to connect to an I.P. address and perform things you want :)

that being said, I cannot seem to install apks via adb (always invalid apk), so I just push them to sdcard, go in as root (adb shell) and pm install the apk.

I've made all the necessary adjustments (omap.so replace, force GPU 2D render and removed animations), and it's pretty much usable :) WiFi's still an ***, though. :P

edit: I just love flush it looks
http://i.imgur.com/qxCjEHO.jpg

juiceme 2013-05-31 10:16

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Released ubiboot-02 (integrated) version, rev. 0.3.2.
  • Configurable boot partitions by peterleinchen.
  • Fixed module dependencies for extra module loaded off cpio archive.
  • Serial console logging for 1st stage boot.
  • New BME initialization.
  • Watchdog kicker by Jonni.
Get it fresh from HERE
See the README file
See the Changelog

peterleinchen 2013-05-31 11:21

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Yippie :)
Will try as soon as I can. Unfortunately on the road now and next week also. Maybe I will find some time and a flashing PC earlier.

Thanks.

coderus 2013-06-01 06:10

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@juiceme can you share cpio and config separately? i cannot download 60M over EGDE right now :D
please =)

TMavica 2013-06-01 07:50

Will it fix 1603 autoreboot problems?

juiceme 2013-06-01 14:13

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

Originally Posted by coderus (Post 1348536)
@juiceme can you share cpio and config separately? i cannot download 60M over EGDE right now :D
please =)

I could make you a cpio without extra modules, that would be only about 5...10 megs.
now I am on the road, but when I get home tomorrow I can look onto it.

juiceme 2013-06-01 14:14

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

Originally Posted by TMavica (Post 1348544)
Will it fix 1603 autoreboot problems?

Unfortunately not, but I am working on it.

juiceme 2013-06-01 21:34

Re: Introducing ubiboot N9 (multiboot OS loader)
 
This is special "tiny" version for Coderus :)

The extra kernel modules have been removed from the cpio, reducing the size of the total tar file to 11 megs of size. Get it from Here
(md5sum=bb48badc8102a43fb96e0b52e3fae876)

The basic behaviour is same as in the full version, it's just not as extensible as the version with all modules.

juiceme 2013-06-01 21:57

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Updated the files also to the ubiboot repository at Skeiron
This might have higher download bandwidth for some people.

MAX9 2013-06-02 19:32

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I have BackupMenu, Nitdroid and Harmattan works....all ok. Nemo mobile boot it with load the kernel....

But i can not find the mistake with Ubiboot, only Nemo boots up.
A Black screen by Harmattan...

ubiboot.dmesg

ubiboot.log

juiceme 2013-06-02 20:32

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

Originally Posted by MAX9 (Post 1349040)
I have BackupMenu, Nitdroid and Harmattan works....all ok. Nemo mobile boot it with load the kernel....

But i can not find the mistake with Ubiboot, only Nemo boots up.
A Black screen by Harmattan...

I can see you tried it with normal kernel, l2fixed kernel and nitdroid kernel, do all behave the same way?

Did you have/try any previous version of ubiboot, and if you did, was the result any different?

One thing you could do; the /sbin/preinit_harmattan in my setup seems to not work correctly for all people, so you could use the original preinit.
Just do "cp /sbin/preinit /sbin/preinit_harmattan" as root and try again.

MAX9 2013-06-02 21:04

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

Originally Posted by juiceme (Post 1349054)
I can see you tried it with normal kernel, l2fixed kernel and nitdroid kernel, do all behave the same way?

yes

Quote:

Did you have/try any previous version of ubiboot, and if you did, was the result any different?
no

Quote:

Just do "cp /sbin/preinit /sbin/preinit_harmattan" as root and try again.
the same, black screen.

the modules....don't really understand this section:

Code:

The modules for the kernels are located in each OS's hierarchy, normally in the
    "/lib/modules" directory.
    Do not forget to have the correct modules there, and remember to do "depmod -a <name>"
    if you are copying new modules to the directory!

in /lib/modules (Harmattan fs) must be the same inside with /boot/lib/modules/ on ubifs ?

peterleinchen 2013-06-02 22:08

Re: Introducing ubiboot N9 (multiboot OS loader)
 
About modules you do not need to care, if you do not know.
Simple question: where did you put the harmattan kernels (when under harmattan OS itself)? Hopefully directly under '/boot' directory?
To me it looks like it just does not find specified kernel. Or just a typo in image names (not really, as it seems
same for all harmattan kernels).
Another question: Nitdroid starts? As that kernel is located in same directory.

juiceme 2013-06-03 07:59

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

Originally Posted by peterleinchen (Post 1349069)
To me it looks like it just does not find specified kernel. Or just a typo in image names (not really, as it seems
same for all harmattan kernels).
Another question: Nitdroid starts? As that kernel is located in same directory.

I am fairly sure Max9 has the kernels in the correct place, since in the ubiboot log the loading is done sucessifully:
Code:

Jun  2 18:52:13 (none) user.notice root: Selecting Harmattan OS, running kernel /boot/Harmattan/boot/zImage-2.6.32.54-dfl61-20121301
Jun  2 18:52:14 (none) user.notice root: kexec_load() successful
Jun  2 18:52:14 (none) user.notice root: Restarting to selected OS
Jun  2 18:52:14 (none) user.notice root: Saving ubiboot log files

If the kernel location was wrong, if there was a typo in the kernel string or if a partition was unmounted then the line "user.notice root: kexec_load() successful" would read as something else.

Also, as the Nitdroid OS boots with the Nitdroid kernel, then Harmattan should also boot with any of the standard kernels, because this way we KNOW that the modules for at least the kernel zImage.pr13 are present and all of those kernels use the same 2.6.32.54-dfl61-20121301 modules.

No, this is something else now.

I can see that your HWREV is 1507, and there are some mixed results with that device.
Valdur55 and Hurrian have 16G/black devices with same HWREV, and at least Hurrian cannot boot L2fixed kernel, but others are OK. I cannot remember for sure how it was with Valdur55's device, did he have some problems with Harmattan also.

What is your variant, is it 16/64G and what color?

peterleinchen 2013-06-03 11:26

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Sorry, I was scrolling through these huge listings on N9 only.
And I just did see this
Quote:

Jun 2 18:59:25 (none) user.notice root: Selecting Nitdroid OS, running kernel /boot/Nitdroid/boot/zImage.pr13
Jun 2 18:59:27 (none) user.notice root: kexec_load() returned 1
Jun 2 18:59:27 (none) user.notice root: Boot OS/kernel selection failed
Jun 2 18:59:27 (none) user.notice root: Saving ubiboot log files
And this told me smth wrong. Or?

But okay I am keeping my fingers still now ;)

coderus 2013-06-03 11:34

Re: Introducing ubiboot N9 (multiboot OS loader)
 
/boot/Nitdroid/boot ?
why not
/boot/Harmattan/boot ?


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

vBulletin® Version 3.8.8