modify_compile_linux_kernel_in_ubuntu

This is an old revision of the document!


Modify / Compile linux kernel for ubuntu

there are thousands of methods to do this, but let's do it with all the nice help we can get from ubuntu..

these steps are based on the ubuntu documentation about building a kernel and some Ubuntu community howto about compiling a kernel

  • cd into a directory where you want to have your kernel sources downloaded to
  • install all the packages needed and download the sources
apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5-dev
sudo apt-get build-dep linux
apt-get build-dep --no-install-recommends linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
  • cd into the linux-xxx directory that was created containing the sources
  • if edit the config
make menuconfig
  • compile and build a deb package
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom.1.0 kernel_image kernel_headers
  • install the new kernel
dpkg -i ../linux-image-.....deb
dpkg -i ../linux-headers-.....deb
  • reboot :)
  • modify_compile_linux_kernel_in_ubuntu.1284989298.txt.gz
  • Last modified: 20.09.2010 15:28
  • by Pascal Suter