Skip to main content

You are here

Compiling the Linux Kernel

You can't call yourself a serious GNU/Linux user if you have never successfully compiled the Linux kernel at least once in your life.

The following were the steps I made to compile the Linux kernel over 4 years ago (I just happened to find my reference text file that I saved, buried within my home directory).

1. Download kernel source code from .
2. Extract kernel source.
3. Update EXTRAVERSION variable on Makefile
4.(only do steps 4 if a previous kernel compilation was made within this source tree) make mrproper (goes through the source tree and cleans out temp files)

make mrproper
make clean

6. make menuconfig (actual configuration of the kernel compilation. creates .config file)

make menuconfig

7. make (performs the actual compilation. creates bzimage file. makes the modules)


8. make modules_install (install modules into /lib/modules)

make modules_install

9. make install (will automatically copy the kernel and initrd file to /boot and modify the boot loader config file)

make install

(reference one liner):

make clean dep bzImage modules install modules_install

Premium Drupal Themes by Adaptivethemes