- Download a kernel tarball from kernel.org and put it in a new directory and extract
- Install the ‘kernel-package’ package
- 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
- 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.
- 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.
- Reboot to run the new kernel.
Powered by http://jonathancarter.org/2011/02/03/custom-kernels-on-debian/