Linux Kernel compilation process (kernel2.6.7)-Linux general technology-Linux programming and kernel information. The following is a detailed description. It took several days to compile kernel2.6.7 successfully. The process was really difficult! "Now I can finally enjoy it for a while. many of my friends know little about the operation sequence and some important configurations or are unknown. in addition, the large amount of information on the Internet is complicated, which makes the success rate of compiling the kernel not high, and even causes the original system crash. I am one of them.
In fact, it is not difficult to compile the kernel. If you can follow the correct method, it will take up to one and a half hours to complete. Is it very encouraging!
Now let's get started. My original system is redhat9.0, kernel 2.4.20-8, and compiled kernel 2.6.7, which is for your reference only.
There are four parts: preparations before compilation-> compilation configuration-> compilation process-> run the kernel Frequently Asked Questions
Preparations before Compilation
1. download a copy of the internal source code. The following code is linux-2.6.7.tar.bz2. You can download it or update it at the following URL.
Http://kernel.org/pub/linux/kernel/v2.6/
2) download the latest version of module-init-tools ("module-init-tools-3.0.tar.gz" and "modutils-2.4.21-23.src.rpm ")
Http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz
Http://www.kernel.org/pub/linux/kernel/people/rusty/modules/modutils-2.4.21-23.src.rpm
3) install module-init-tools. It replaces depmod [/sbin/depmod] and other tools.
CODE: tar-zxvf module-init-tools-3.0.tar.gz
Cd module-init-tools-3.0
./Configure -- prefix =/sbin
Make
Make install
/Generate-modprobe.conf/etc/modprobe. conf |