Linux kernel Upgrade

Source: Internet
Author: User

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

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.