You are on page 1of 2

Existen muchas maneras de compilar el kernel (casi una por cada distribucin).

Esto significa que para cada distro, ya sea basada en Red Hat, Debian o Slackware, debemos documentarnos muy bien antes de comenzar tan importante tarea, porque si se nos queda algn mdulo excluido o incluido sin necesidad podra generar conflictos e incluso no funcionar correctamente.

Occasionally you may experience problems in a specific kernel module that requires a patch. Once patched, you can follow these directions to compile only the module affected, saving a bunch of time. Assume the following, for this example:

You are building a module for Ubuntu 3.2.0-21-generic kernel. Your source tree with the patched module is located in /usr/src/linuxsource-3.2.0 Your linux header source is located in /usr/src/linux-headers-3.2.0-21generic Your working folder ( where you are building the new module ) is /usr/src/mytree In this case, your EXTRAVERSION is -21-generic ( this is the specific flavor of the 3.2.0 kernel we are building ) this is important to note, and will be used later in this example. Now to create your working folder and change into it:
1 2
mkdir /usr/src/mytree cd /usr/src/mytree

This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction . . . all the while sneaking in little nuggets of UNIX wisdom and lore. It serves as a textbook, a manual for self-study, and as a reference and source of knowledge on shell scripting techniques. The exercises and heavilycommented examples invite active reader participation, under the premise that the only way to really learn scripting is to write scripts.

Este proceso puede ser una excelente manera de ajustar nuestro sistema para que soporte nuevo hardware o para hacerlo ms liviano quitando, cuidadosamente, mdulos que no utilizaremos. De cualquier manera es recomendable que aparte de esta gua busques la ayuda de personas ms experimentadas si tienes una buena razn para hacerlo, an si lo haces por puro placer o aprendizaje. For most part, you dont need to compile the kernel, as it is installed by default when you install the OS. Also, when there is a critical update done to the kernel, you can use yum, or apt-get to update the kernel on your Linux system. However you might encounter certain situation, where you may have to compile kernel from source. The following are few situation where you may have to compile Kernel on your Linux system.