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