Monday 31 January 2011

How to recompile your kernel

http://www.question-defense.com/2010/09/26/how-to-recompile-your-ubuntu-10-10-kernel-for-patching-or-to-add-support-for-a-specific-device

What options was my kernel compiled with?

I needed to find out what options my kernel was compiled with, quick Google and here is the answer:
cat /boot/config-$(uname -r)
$(uname -r) replaces itself with the name of your kernel.
There is a corresponding file called config- for each installed kernel in the /boot folder.
Find the option you want by piping it through grep with:
cat /boot/config-$(uname -r) | grep YOUR_OPTION_HERE