Build a kernel

Applies to kernels prior to 5.xx

Prior to building a custom kernel add the patches

You may have to manually make changes to the patches, though by opening the files you can see where the changes are made. Due to there being only three patches, I prefer to add them manually, checking for any errors. You could also manually make the changes to the relevant files (I did) but best not to with the sound one. ;-) See build.txt for the actual commands used.

Example

patch -p1 < ../sound_click_mini.patch

Once added, go on to build your own custom kernel - see the DIY section.

Credit to zaurus.org.uk for making these files and others available.

Existing installations

Updating your kernel - example

Noting the order, install via

sudo dpkg -i linux-libc-dev-4.14.18-ejsolutions-5_amd64.deb -i linux-headers-4.14.18-ejsolutions-5_amd64.deb -i linux-image-4.14.18-ejsolutions-5_amd64.deb

Replace 4.14.18-ejsolutions-5 with the relevant versions for your build.

If you experience issues with bluetooth, then try older drivers..

sudo dpkg --force-overwrite -i rtl8723bt_4.12.0_amd64.deb

The overwrite is required due to existing files in kernel-firmware.