Custom Kernels on Debian

  1. Download a kernel tarball from kernel.org and put it in a new directory and extract
  2. Install the ‘kernel-package’ package
  3. If you’d like to make any modifications, do so and run ‘make-kpkg –initrd kernel_image’ (with sudo or fakeroot if you’re not root) in the root of the kernel source
  4. It will base the configuration on your running kernel and prompt for new features/drivers/etc. If you’re unsure or don’t care about a question, just press enter.
  5. After the process is complete, you’ll have a brand new kernel package one directory up. All you need to do is install it using “dpkg -i”. It will create an initramfs image and add it all to GRUB for you in the postinst scripts.
  6. Reboot to run the new kernel.
Powered by http://jonathancarter.org/2011/02/03/custom-kernels-on-debian/

Leave a Reply

Your email address will not be published. Required fields are marked *