Many people are familiar with Linux, an open-kernel source-code OS, so open-source topics will not be described here. The problem is, after obtaining the Linux kernel source (I don't know where it is, let's take a look at http://www.kernel.org/bar), how should I correctly configure, compile, install/upgrade it. It is stated in advance that, before the kernel installation/upgrade operation is executed, only kernel-related source files are modified in the system. After the kernel is executed, the old kernel is replaced by the new kernel, if there is any incompatibility problem caused by configuration error or version error, the restoration cannot be performed without backup.
(1) configure the kernel
After obtaining the kernel, the first step is to configure it. (If you do not compile the kernel first, you cannot. The compilation result is that the module selection depends on the configuration ). The three basic configuration commands are as follows: (run the command in the Linux/directory of the kernel source code. The complete directory is usually/usr/src/liunx /)
A) text dialog Interface
Make config
B) menu interface (semi-graphical interface)
Make menuconfig
C) graphical interface (with XWindow library required)
Make xconfig
Many options are available when you configure the kernel, such as CPU, kernel management, memory usage, plug-and-play support, and network protocol components, we recommend that you understand the meaning of the options and then modify them. Otherwise, you may compile a kernel that is different from what you want. You can go to http://www.tldp.org/ to define the content.
(2) Compile the kernel compile the kernel
A series of commands, even if there is no error prompt, pass.
Make Dep confirm dependency
Make bzimage to generate the Kernel File
Make modules configuration options
Make modules_install
(3) install/update
the generated ARCH/i386/boot/bzimage and system. update map to/boot, and then enable MBR to boot the Program (Lilo, grub, etc) image option to point to the new bzimage.