Linux2.6.25 kernel Compilation

Source: Internet
Author: User
Linux 2.6.25 kernel compilation-general Linux technology-Linux programming and kernel information. The following is a detailed description. In earlier versions, run the make mrproper command before compiling the kernel to delete some incorrect files in the system.

In a higher version of linux, kernel compilation is not required for the first time.

Step 1.
Decompress the kernel source code and enter the corresponding directory
# Linux-2.6.25/cd/usr/src/
# Make mrproper

Step 2.
There are three options to start the kernel compilation tool:
A. make config in the text interface
B. make Xconfig
C. make menuconfig

Step 3.
Follow the prompts to run
# Make dep
Generate various related files
# Make clean
Make sure all files are in the latest version.
# Make
Compile the kernel
# Make modules
Compile the selected module
# Make modules_install

# Depmod-
This command has nothing to do with the compilation process. It is used to generate the dependency between modules. After you start the new kernel, You can correctly locate the module by using the modprobe command to load the module. skip this step.

# Make install
Automatic Installation, Automatic Modification of grub. conf, and then reboot.
Related Article

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: 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.