Short kernel compile howto for Debian/Ubuntu
September 10, 2013
linux
- Download the kernel’s source from http://kernel.org;
- Unpack it somewhere (will use
~/src/linux-3.11
here); Copy the config from the distribution over;
cp /boot/config-3.8.0.30-generic ~/src/linux-3.11/.config
Apply any patches;
Go to the kernel source and create an up to date config.
make oldconfig
Just use the defaults for all the questions you’ll get;
Compile the kernel into a debian package for easy installation and removal.
fakeroot make-kpkg --initrd -j 8 --revision 3.11custom kernel_image
Install the resulting .deb file and reboot.
sudo dpkg -i ../linux-image-3.11.0_3.11custom_amd64.deb && sudo reboot