Linux compiling and installation kernel, linux compiling Kernel

Source: Internet
Author: User

Linux compiling and installation kernel, linux compiling Kernel

I. Introduction

Kernel is the core of an operating system. It manages system processes, memory, device drivers, files, and network systems, and determines system performance and stability. Linux, as a free software, is constantly updated with the support of many enthusiasts. The new kernel fixes bugs in the old kernel and adds many new features. If you want to use these new features or customize a more efficient and stable kernel based on your system, you need to recompile the kernel.

This article will take the kernel linux-2.6.32.4 version as an example of the general kernel compilation and installation methods, these methods are suitable for most Linux systems (including RedHat, Ubuntu, Debian, etc ).

Ii. Procedure

1) download

https://www.kernel.org/

2) Compile and install the kernel

make mrpropermake menuconfigmake [-jn]make modules_install make install

3) modify the default options in the kernel Startup Menu

http://blog.itpub.net/438414/viewspace-752098/


Iii. Common options

1) debugging

CONFIG_DEBUG_INFO=yCONFIG_FRAME_POINTER=yCONFIG_DEBUG_RODATA=nCONFIG_DEBUG_SET_MODULE_RONX=n#Kernel config options for kgdbCONFIG_KGDB=yCONFIG_KGDB_SERIAL_CONSOLE=y#Kernel config options for kdbCONFIG_KGDB_KDB=yCONFIG_KDB_KEYBOARD=y

 

Iv. Common commands

http://blog.csdn.net/a593796769/article/details/9009105

 

V. Others

1) directly compile the driver into the kernel

http://www.educity.cn/linux/1604648.html

 

Reference: http://www.2cto.com/ OS /201312/265425.html
     http://blog.csdn.net/newnewman80/article/details/8158072

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.