First, the test environment
CentOS6.5 X86 64-bit kernel version is 2.6.32
VM 10.07
Second, compile kernel version
2.1, Kernel 3.2.71
2.2, Kernel 3.4.108
2.3, Kernel 4.2
Third, the compilation step
3.1, the installation of the compilation environment
# yum Grouplist check for installed and not installed development environments and corresponding libraries
# yum Groupinstall "Development tools" installs the tool software required for compilation
# yum Install Ncurses-devel
# yum Install Qt-devel
# yum Install Hmaccalc zlib-devel binutils-devel elfutils-libelf-devel
3.2. Unzip the kernel file
Note: The directory where the kernel files are uploaded is/home/soft
# Cd/home/soft
# xz–d LINUX-3.2.71.TAR.XZ
# tar XVF Linux-3.2.71.tar
# CD linux-3.2.71
3.3. Configuring the Kernel
# Make Menuconfig
Description: Customizing your own kernel will generate a new. config file, which is configured with the original kernel
# cp/boot/config-2.6.32-431.el6.x86_64. config
#sh-C ' Yes ' | Make Oldconfig '
3.4. Compile the kernel
#make-j4 bzimage #编译内核
#make-J4 Modules #编译模块
#make-j4 Modules_install #安装模块
#make Install #安装
Description:-j refers to the number of threads
3.5. Modify the Startup item
# vi/etc/grub.conf
Description: X is the startup item of your kernel, which can be filled out according to the actual
Linux kernel Upgrade