Chapter 5. Building and installing a custom kernel

Table of Contents
5.1. GCC compiler
5.1.1. Native build
5.1.2. Cross compiled build
5.2. Kernel configuration
5.2.1. Configuring 2.4 kernels
5.2.2. Configuring 2.6 kernels
5.3. Kernel installation

To build a Linux kernel, you need a compiler and the kernel source. The first element is not a trivial thing to find because it depends on how you want to build your kernel. The second is easier since it can be found at the official CVS site. First, we will discuss about GCC compiler. Then, the preparation of the build will be explained. The last paragraph will deal with the installation of this new kernel.


We will deal only with a kernel built without modules, to simplify the explanations.