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