How to update the Linux Kernel

Source: Internet
Author: User
How to update the Linux kernel-general Linux technology-Linux programming and kernel information. Today, I downloaded a 2.4.18 kernel from the Internet based on the kernel recompilation content in "Guide to learn Linux kernel while working" written by Li shanping, the host is originally installed with the 2.4.20 kernel.

1. decompress the kernel source code package under/usr/local/src.

2. Use make mrproper to clear all configuration files in the directory and intermediate files generated when the previous core is generated;

3. Use make menuconfig to configure the kernel (because it is only an experiment, use its default configuration );

4. Use make dep to check the dependency and integrity of source code files;

5. Use make clean to clear the target file and make sure all the relevant files are in the latest version;

6. Use make bzImage to generate a kernel image file (stored in/usr/local/src/linux/arch/i386/boot );

7. Copy the image file bzImage to the/boot directory;

8. Compile modules through make modules;

9. Install the module to the standard Module Directory through make modules_install;

10. Modify the Startup File according to the system startup method (lilo or grub). My file is grub, so find the File menu under/boot/grub. in the lst file, modify the content as follows:
QUOTE:

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.