Kernel Compilation
Kernel Compilation
org
Aim:
To upgrade the kernel file of the linux operating system using kernel compilation
process.
Apparatus Required:
S.No
Apparatus
.
1 Linux OS
2 Personal Computer
Theory:
Linux kernel compilation provides the user to unlock the features which are not available
for the standard users. Linux compilation process allows the users to modify their kernel
depending on their hardware and software application environment. Following points
shows the steps involved in compiling a kernel.
Steps in Linux Kernel Compilation
Installing the sources.
Configuring the kernel (choosing which features and Drivers to compile).
Compiling the kernel (i.e. typing a single command, and watching...).
Installing the compiled kernel.
Updating the boot loader to recognize the new kernel.
Booting...
Making the new kernel become the default.
Figure 4 Install build-essential libncurses5-dev gcc libssl-dev bc
Then press “Ok” / “enter” / “Save” for all other windows without changing
anything refer Fig. 9 and Fig.10
The command will execute for long time depend on the processor and RAM
power as shown in Fig.11
After that, restart the computer ($ sudo reboot) and your boot screen will
show the updated kernel version as shown in Fig.12
Step12 Kernel version can also be checked in Terminal window, by typing the
following command
$uname -r
Figure 11 Output of dep-pkg command
Thus the procedure was followed and the kernel file of Linux OS was updated.