Linux Kernel compilation process (kernel2.6.7)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.