Linux kernel compilation

Source: Internet
Author: User

1. Prepare before installation:

Install the development environment

Get kernel source package (www.kernel.org)

Install packages

*curses*

Install the Environment Pack Group

Server Platform Development

Development Tools

2. Install the Environment Pack Group

[Email protected] ~]# yum-y groupinstall ' Server Platform development ' [[email protected] ~]# yum-y Groupinstall ' Development Tools ' [[email protected] ~]# yum-y Install "*curses*"

3. Download the source package

[[Email protected] ~]# tar XF linux-3.18.41.tar.xz-c/usr/src extract to/usr/src

4. Create a soft connection

[Email protected] src]# ln-s linux-3.18.41/linux

5. Copy the configuration file

[Email protected] src]# Cp/boot/config-2.6.32-642.el6.x86_64/usr/src/linux/.config

6. Edit the kernel using the Make Menuconfig command

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/87/54/wKiom1fdGsPz8o4MAACCBQm7EBM630.png "title=" 1.png " alt= "Wkiom1fdgspz8o4maaccbqm7ebm630.png"/>

7. Now that we can compile, we can specify the number of CPU cores. MAKE-J # (please operate in/usr/src/linux)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/87/51/wKioL1fdGy7y4nLfAABI6k8tRZA785.png "title=" 2.png " alt= "Wkiol1fdgy7y4nlfaabi6k8trza785.png"/>

8. After the compilation is complete we will install the relevant module make Modules_install (please/usr/src/linux operation)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/87/51/wKioL1fdG6SQr2XOAABZaUx1UQM403.png "title=" 3.png " alt= "Wkiol1fdg6sqr2xoaabzaux1uqm403.png"/>

9. The final step is to generate the kernel file. Make install (operate in/usr/src/linux)

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/87/54/wKiom1fdHE7BzgrhAAAwR7BmKhE885.png "title=" j$ RLIUHBK3S) xtho6xpw[49.png "alt=" Wkiom1fdhe7bzgrhaaawr7bmkhe885.png "/>

10. By this time the kernel has been compiled and installed, we reboot to see the effect.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/87/51/wKioL1fdHHuBcHruAAAyz-h2OFU673.png "title=" 5.png " alt= "Wkiol1fdhhubchruaaayz-h2ofu673.png"/>

This article is from the "Linux Learning path" blog, so be sure to keep this source http://luyubo.blog.51cto.com/7634254/1853411

Linux kernel compilation

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.