Linux Kernel upgrade & patch installation manual

Source: Internet
Author: User
Article title: Linux kernel upgrade & patch installation manual. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. Step 1: upgrade Linux2.4.18 to 2.4.31
First, describe my environment:
Three hosts with RedHat8 (2.4.18-14. The initial task is to upgrade the kernel to 2.4.31 and then install the patch Squashfs.
Download the source code linux-2.4.31.tar.gz of the upgrade to/usr/src
CODE:
# Cd/usr/src/
# Tar-zxvf linux-2.4.31.tar.gz

If you have installed the source code 2.4.18-14, a link may point to the source code 2.4.18 under/usr/src. in 2.4, the link is named linux2.4. first, delete it and re-establish a link pointing to the source code of 2.4.31. the link can be named linux2.4 or linux. I will select the latter.

CODE:
# Ln-s linux-2.4.31 linux
# Cd linux

Because it is a newbie to kernel compilation, it will be a headache to directly select kernel configuration. of course, it may be a pleasure for veteran. I 'd better refer to the existing system configurations and then modify them.

CODE:
Cp/boot/config-2.4.18-14./. config
Make menuconfig

Here we do not make too many changes to the original configuration, but make some modifications as needed. (My options here are based on the above requirements)
First, select P4 for the processor option (Y is not M)

And SMP (Y is not M)

You also need to compile the loopback Block device into the kernel (because squashfs is required), and select "<*> Loopback device support" (Y) in "Block devices ---> ).

By the way, remember to select a driver for your Nic. take my host as an example and select "Ethernet (1000 Mbit)" in "Network device support --->) ---> "after entering the sub-menu, select" <*> Intel (R) PRO/1000 Gigabit Ethernet support "(Y)

[1] [2] [3] [4] [5] [6] Next page

Related Article

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.