Article title: master advanced re-compile the Linux operating system kernel. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
An important feature of Linux is its open source code. any software engineer in the world can add code that he thinks is excellent, one obvious benefit of this is the fast fixing of Linux Vulnerabilities and the use of the latest software technologies. The Linux kernel is the most direct representative of these features.
Why do we need to upgrade the kernel?
As its name literally means, the Linux kernel undertakes the most core task of the Linux operating system and is the arbitration of other programs and hardware in the running process: it needs to manage the memory of all processes to ensure that they can get the same time slot of the processor. It also provides interfaces between programs and hardware.
Generally, the updated kernel supports more hardware, provides better process management capabilities, and runs faster and more stably. It also fixes many vulnerabilities found in earlier versions, it is necessary for Linux users to regularly upgrade and update the system kernel.
Generally, the kernel version serial number is represented by three numbers, for example, 2.2.14. the higher the version number, the stronger the function. The version number is divided into two series: one is the product series, named after an even number, such as 1.2.x, 2.0.x, and 2.2.x. the version number is stable and has been thoroughly tested; the other is the development and testing series, which is named after an odd number for testing the latest functions. it is not recommended for beginners and production.
Later in this article, we will introduce the steps, concepts, precautions, and more documents used for Kernel upgrade from the kernel 2.0.34 to 2.2.14, respectively, the italics in the text are directly input commands.
Kernel configuration and compilation
Linux currently supports the following CPU types: x86, arm, DEC Alpha, SUN iSCSI, M68000, MIPS, and PowerPC. the above types already include CPU models used by most users. During installation and configuration, Linux automatically identifies these models.
The first command to be run is: # cd/usr/src/linux; make mrproper. Make sure that there are no correct. o files and file dependencies in the source code directory.
The following kernel configuration process is cumbersome, but the proper configuration is directly related to Linux running in the future. it is necessary to know some of the main and frequently used options.
You can use one of the following commands to configure the kernel based on your needs and hobbies:
# Make config (text-based most traditional configuration interface) # Make menuconfig (text menu-based configuration interface) # Make xconfig (graphical window mode-based configuration interface) # Make oldconfig (if you only want It will save a lot of trouble to modify some small places) |
[1] [2] [3] Next page