Recompile your kernel
Linux
CentOS
Debian
Here is a list of packages needed to recompile the kernel:
|
|
Let’s go to /usr/src
:
|
|
Then, go to www.kernel.org and download the latest version in “Full” of the latest kernel. Here, it’s version 4.8.4, then we extract it:
|
|
Now let’s create a symbolic link:
|
|
The kernel is ready to be configured. Let’s launch the configuration tool:
|
|
Or copy the configuration of your existing kernel:
|
|
To avoid a “x509_certificate” error during compilation, we will disable the kernel signature (we don’t have the signature key, it belongs to Debian):
|
|
It’s possible to use all of your cores to speed up compilation time:
|
|
New method
Once configured, all that’s left is to launch the compilation:
|
|
You can change the name of LOCALVERSION to a name that suits you better and increment KDEB_PKGVERSION each time you compile.
Old method
Once configured, all that’s left is to launch the compilation:
|
|
or without initrd:
|
|
The revision tag is used to put a version number on your kernel. That way, if during the next boot you get a kernel panic, restart with the old one and start over. When recompiling it, increment the version by 1 (ex: –revision=2.0).
Your kernel is now finished, let’s install it:
|
|
Now restart your machine and boot on your new kernel :-)
Here are other documentations:
Debian Kernel 2.4
Debian Kernel 2.6
Fedora Core
Mandriva
Suse
Ubuntu
Last updated 10 Nov 2016, 23:54 +0200.