We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-02-13 17:12:20 +0200

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.

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/2091: 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: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android-serialport-api/android_bootimg_tools.tar.gz 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.

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/2091: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: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android-serialport-api/android_bootimg_tools.tar.gz 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.

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... 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. initrd.

Uncompressing Sailfish_OS-Jolla-3.0.1.14-h4413-0.0.7.14.zip shows a file named hybris-boot.img. By using: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android-serialport-api/android_bootimg_tools.tar.gz using:

https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android-serialport-api/android_bootimg_tools.tar.gz

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 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: - question:

  • how do I compile a new kernel/modules? - kernel/modules?

  • where is kernel source? Do we use one patched by Jolla? - Jolla?

  • how do we use hybris-boot to compile Jolla kernel - kernel

  • Am I totally wrong and the kernel is not provided by jolla?

Thanks again.

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:

https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android-serialport-api/android_bootimg_tools.tar.gz

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,