Upgrading the Linux kernel

Source: Internet
Author: User

  1. View System kernel

  2. #uname-R (view kernel version of the system)

  3. # cat/etc/centos-release (View system Information)

  4. Yum Grouplist (see if the system needs to install the development environment and the development Library)

  5. Yum Groupinstall "Development tools" (ensures that the tools you need at compile time are complete)

  6. Yum Install Ncurses-devel (ensure the Make *config instructions are correct)

  7. Yum install Qt-devel (x environment requires this.) Choose according to the actual situation)

  8. Yum install yum install Hmaccalc zlib-devel binutils-develelfutils-libelf-devel (used when creating the CENTOS6 kernel)

  9. Tied to the required system kernel

  10. TAR-XF downloaded kernel file-c/xxx/xxx

  11. Cd/xxx/xxx

  12. cp/boot/config-xxxxxxxxxxxxxxx. config (copy the file at the beginning of the config under boot to the current directory and rename it to. config)

  13. Sh-c ' Yes ' | Make Oldconfig ' (read the copied. config file. If you have a module that needs to be added or modified, you can use make memuconfig to modify the run-after interface similar. Make Oldconfig will generate a new. config file and back up the. config file from the previous CP to. Config.old and generate a new. config file)


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7D/0C/wKioL1bfgI2z_2uwAAEGu9jJCTI513.png "title=" 1.png " alt= "Wkiol1bfgi2z_2uwaaegu9jjcti513.png"/>

14.make-j4 Bzimage Generating kernel files

15.MAKE-J4 modules (Compile the module, do not run the words will be in the make install times wrong)

16.make-j4 Modules_install (Compile and install module)

-j4 sets the number of threads compiled. The logical CPU is 4. If the 8 core can make the-J8 modules compilation process takes a long time


17.make Install (for installation)

The ERROR:modinfo:could not find module Vmware_balloon appears, but does not affect the kernel installation, because the modules that vsphere requires are not compiled, to avoid this problem, You need to modify the. config file before make to add
Hypervisor_guest=y
Config_vmware_balloon=m

18. Modify the Grub boot entry

Default=0 The default value is 1 generally the newly installed kernel is the first one. Just default=0.

Confirm Kernel Version




Over




Upgrading the Linux kernel

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.