Compile and install the kernel

Source: Internet
Author: User

1. Download the Linux Kernel File at http://kernel.org. I downloaded2.6.34.13.

2. Use ftpto upload the linux-2.6.34.13.tar.bz2 file to the/usr/src directory and decompress the file to the current directory.

3, enter/usr/src/linux-2.6.34.13/, use the make menuconfig command for configuration, use this command to require that the system has installed ncurse, if the system does not install ncurse, go to http://ftp.gnu.org/pub/gnu/ncurses/Code. (The ncurse-5.7 seems incompatible with the libc library)

1) EnterSource codeDirectory/usr/src/linux-2.6.34.13, use the make menuconfig command for configuration, generate the. config file; (the use of make dep-related commands online, 2.6 kernel is no longer used)

2) use make bzimage to compile the source code. (You can also use make zimage for compilation, but a large kernel file may be generated );

................. It takes a long time to wait ............

3) use make modules to compile the module;

.................. It is a long time ............

4) use make modules_install; make install to install 4. Restart and you will find that you have an option in your computer .......

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.