Let your Linux kernel recompilation go smoothly-Linux general technology-Linux programming and kernel information. The following is a detailed description. Kernel re-compilation is a great challenge for many Linux enthusiasts. I believe that many Linux users often have a misunderstanding about the kernel. They think that common users cannot adjust the kernel. In fact, this recognition is not comprehensive in actual situations. It should be said that kernel re-compilation has a certain depth and complexity, and is also easy to fail the configuration work. Next, I will share my experiences with you so that you can avoid detours.
If you pay attention to the authoritative Linux reference tool books, you will find that many original books describe kernel recompilation as an important chapter. This article will introduce to readers not how to re-compile the Linux kernel step by step, but to collect and sort out several of the most common faults and solutions in the Linux Kernel re-compilation, if you encounter a similar fault during kernel compilation, this article will help you.
Linux Kernel re-compilation Common Faults
Before introducing common Linux kernel recompilation faults, let's assume that we have configured the Linux kernel according to the steps in the reference tool book.
Linux Kernel recompilation usually involves many steps. If you are lucky, the Linux kernel re-compilation can be successful at one time. If the system prompts an error message when the computer or kernel is started after compilation is complete, the five most likely to appear are: 1. the kernel cannot be started; 2. exception I/O error; 3. slow kernel response; 4. the kernel cannot be compiled correctly. 5. the system restarts again.
Fault Analysis and Solution
The kernel cannot be started.
When we re-create the Linux kernel, we mainly choose the devices and services that the user needs or does not need to use in the system. Starting from the 2.0 kernel, Linux introduced a brand new design feature to the kernel and provided a compromise solution: components can be dynamically and at any time transferred to and called out the kernel. For example, we have to restart the system after modifying/etc/lilo. conf. If your kernel cannot be started and the following information is displayed on the screen: