Active Topics

 


Reply
Thread Tools
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#1191
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.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#1192
Originally Posted by pasko View Post
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
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#1193
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.
 
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#1194
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.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#1195
Originally Posted by pasko View Post
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.


Originally Posted by pasko View Post
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.
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#1196
Hi.
Thank you again.
I will try it later when I'm back.
Regards.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#1197
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...)
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#1198
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.
 
Posts: 290 | Thanked: 385 times | Joined on Jan 2012 @ Madrid, Spain
#1199
Hi.
Will this mean that the modules should be also recompiled? If so, the flashed image is no longer valid..
Regards.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#1200
Originally Posted by pasko View Post
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.
 
Reply


 
Forum Jump


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