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)

pasko 2014-04-16 06:53

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
O.K. I think I got it all.:)

I'll try first disabling the watchdogs and if it doesn't work I'll go for the compile option.
I remember recompiling some years ago the software for my WiFi router....
From what you explained, the kernel for sailfish is OpenSource?

Regards.

juiceme 2014-04-16 07:31

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

Originally Posted by pasko (Post 1421556)
Hi.
O.K. I think I got it all.:)

I'll try first disabling the watchdogs and if it doesn't work I'll go for the compile option.
I remember recompiling some years ago the software for my WiFi router....
From what you explained, the kernel for sailfish is OpenSource?

Yes, all that you need is open source. What you need is the kernel sources, I'd have to check what is the latest version of the Nemo kernel build tree and what is the correct config to use.

To compile, you'll need to install gcc-arm-linux-gnueabi package to your distribution (I use version 4.6.3)
Then, just patch your configuration, and configure and make the kernel (and also make the modules if you are building another version that what you already have on your FS image...):
ARCH=arm make n9_mer_defconfig // <-- if that is the correct config file...
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make modules
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=. make modules_install

And finally, copy the modules to your FS (if you needed to make them) and flash the kernel just as you would flash any normal Open Mode kernel for Harmattan, and you are ready to go :D

pasko 2014-04-16 21:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.

I've spent all night just to be at the same point I was yesterday (I screwed something and had to start from scratch) and then being able to enable the R&D mode..... and nothing happened.
This means we'll have to go via the compiling option, but this will be next week.

I'm going to spend a few days with spare internet access for Easter Holiday.

Thank you.
Regards.

pasko 2014-04-16 22:11

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
Before I go to sleep I would like to ask:

1.- Which Linaro packages do I need to install in Ubuntu 12.04 just to be able to build the kernel?
2.- Where can I get the sources for the Sailfish kernel?

Regards.

juiceme 2014-04-17 09:54

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

Originally Posted by pasko (Post 1421645)
Hi.
Before I go to sleep I would like to ask:

1.- Which Linaro packages do I need to install in Ubuntu 12.04 just to be able to build the kernel?

gcc-arm-linux-gnueabi and build-essential are enough.


Quote:

Originally Posted by pasko (Post 1421645)
2.- Where can I get the sources for the Sailfish kernel?

Well, the kernel is some Mer/Nemo kernel, and I could not find the sources for the exact version. However, I got kernel-adaptation-n950-n9-mer-n9-2.6.32-20121301 and am now building that, to try if it works with SailfisOS.
I'll report back when I have tested it.

pasko 2014-04-17 10:33

Hi.
Thank you again.
I will try it later when I'm back.
Regards.

juiceme 2014-04-17 10:55

Re: Introducing ubiboot N9 (multiboot OS loader)
 
As it happens, kernel-adaptation-n950-n9-mer-n9-2.6.32-2012130 seems to work nice on my device.

Would you like me to build you a version that hardboots from partition 4? (that is capable to be flashed directly to device, no ubiboot required...)

juiceme 2014-04-17 11:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Damn, just noticed that this branch is a bit older, to does not have the option CONFIG_CMDLINE_OVERRIDE available...

What this means is I need to either update to more recent source tree or patch the command line selection code to the current tree.

Anyway I cannot finish it now, I'll have to continue later.

pasko 2014-04-18 14:03

Hi.
Will this mean that the modules should be also recompiled? If so, the flashed image is no longer valid..
Regards.

juiceme 2014-04-18 15:38

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

Originally Posted by pasko (Post 1421819)
Hi.
Will this mean that the modules should be also recompiled? If so, the flashed image is no longer valid..
Regards.

Yes, you need both modules and the kernel.
However, nothing in the world is simpler than putting the new modules in, you just need to boot the device with ubiboot (just as you did when you untarred the FS originally there) and then copy the modules under the /lib/modules/<whatever_version>/ directory on your SailfishOS partition.

BTW, you do not need to flash ubiboot permanently to device, it it enough to use flasher to run it, just as you do when for example running maintanance kernel for malf-repairing.

Also, I just got near a computer, so when I get some time maybe today, I'll patch the CONFIG_CMDLINE_OVERRIDE option to my sources and recompile it (and modules) for you.


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

vBulletin® Version 3.8.8