Linux Kernel upgrade Summary

Source: Internet
Author: User

It is easy to upgrade the Linux kernel. The command list is as follows:
Download KernelSource codeThe even number is a stable version, such as version 2.4 and version 2.6;
Extract SourceCodeGenerally, decompress the package to/usr/src and run the tar command. Linux has many common things to follow;
In the decompressed source code directory, check whether there are files irrelevant to the source code and compilation process, such as README, install, and others. Read them carefully before compilation starts, check the versions of the software packages necessary to upgrade the kernel in the current system according to the requirements in those documents. After the completion, execute the following commands in sequence:
Make mrproper
Make menuconfig
Make Dep
Make clean
Make bzimage
Make modules
Make modules_install
Then modify the bootloader, such as grub or Lilo, and restart to enter the new kernel. In this step, you may need to use the mkinitrd command to generate the ramdisk file. ramdisk is a technology that uses the memory as the hard disk. Modify the bootloader, such as grub, and view the previous boot file/boot/menu. lst.
This is a complete kernel upgrade process. The operation is simple, and the meaning of each step is also very simple. After decompression, execute make help to list all the targets that can be made. HoweverProgramJust like code migration, the most important and core part of kernel compilation is the kernel configuration in make config. It is helpful to add more question marks in this step.

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.