Adding kernel modules to SailfishX
I've been searching for information about patching the kernel and I'm not sure if it's even possible. Is it possible to download sources, compile and add modules to the running Kernel?
I have SailfishX Beta running on a Sony Xperia XA2 variant.
In my case I want to try docker so I need some extra modules, but the question is open: Can we add not currently enabled kernel modules? And if it is possible, how?
Thanks.
Review 2/14/2019:
I've been looking at SW_binaries provided by Sony, they are .so files for hardware components: camera, FW radio sensor...
Going back to the file Jolla provides I've found a kernel candidate, altought not being sure it is being used, it's a kernel and an initrd.
Uncompressing Sailfish_OS-Jolla-3.0.1.14-h4413-0.0.7.14.zip
shows a file named hybris-boot.img
. By using:
I've uncompressed this boot image and it contains hybris-boot.img-zImage
and hybris-boot.img-ramdisk.gz
among other files. So it looks like kernel is provided by Jolla. Then googling for it I've found it is a MER project:
https://github.com/mer-hybris/hybris-boot
Which does not contain kernel sources and I assume they are provided by Jolla.
And again I ask for the same question:
how do I compile a new kernel/modules?
where is kernel source? Do we use one patched by Jolla?
how do we use hybris-boot to compile Jolla kernel
Am I totally wrong and the kernel is not provided by jolla?
Thanks again.
Update 2/15/2019:
I asked Jolla support and they provided this wiki page as an starting point to look at:
https://sailfishos.org/wiki/Sailfish_X_Build_and_Flash
It's meant to be used for Xperia X. I'll try to reproduce updating versions for XA2. If I succeed I'll post it here.
Thanks,
Try looking into http://releases.sailfishos.org/sources/3.0.1.12/
velemas ( 2019-02-15 11:07:56 +0200 )edit