[OS / Linux] Kernel compil & Install

Hi all,

I’m looking for a tuto to compile & install Linux kernel on my Xperias (XA2, XA2 Plus, XA2 Ultra and Xperia 10). Actual 4.4 kernel is quite good, and I use the last 5.16 on my desktops. I just want to use/test it on my Sailfish devices.

Mes meilleurs regards.

Thank you @TNZ for asking this question!

This is very interesting for keeping compatibility of these devices for future updates! I’m also very interested!

This is NOT as easy as you (seem to) think it is.

Vanilla Linux (most likely) lacks some of the drivers needed for the Sony devices, plus you need firmware blobs and other things.

Then you will have to creata a flashable image and put that on your device(s).

This amounts to basically a new port of an existing device (without the userland stuff), so I will point you to the Platform SDK docs on what all of this entails.

That being said, you don’t have to start from zero, there’s:

2 Likes

Just for fun and if you like compiling kernels, /proc/config.gz is available on Xperia devices, you can try to put that into a vanilla 5.x kernel tree and see what you get. Which will not be of any use to anyone most likely.

In fact, I have a tool to manage kernel compil & install. Inside, I have a mode for ArchLinux distro based on /proc/config.gz
My idea is to install this tool on a Xperia device to download / compil / install last Linux version over existing image :smiley:

1 Like

Yeah, that is not going to work. An Android device is not a Linux PC. You need to create a boot.img and flash it/fastboot it.

My recommendation is to not waste your time on it.

1 Like