Building a New Kernel

One distinct advantage of Linux is the capability to truly recompile the complete operating system, rather than just reconfigure some of the system parameters. Because Linux comes complete with the source code, you can optimize the code for a specific hardware configuration as well as design the kernel. The steps to building a new kernel are as follows:

Obtain the kernel source.
Prepare the source tree.
Configure the source.
Build the source and install the modules.
Move the kernel.
Configure and run LILO or GRUB.
Verify module support.
Reboot the system and try out your new kernel.

It is important that all the necessary steps be performed in the correct order.

If you've already performed these steps at one ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.