Step 1: slave ~ /Downlocd/linux-2.6.21.tar.gz/usr/src # cd/usr/src1_tar-xzflinux-2.6.21.tar.gz Step 2: # cp/boot/
Step 1:
Download the required kernel version from http://www.kernel.org/pub/
I will download the same kernel source code as the system version.
Then
# Cp ~ /Downlocd/linux-2.6.21.tar.gz/usr/src
# Cd/usr/src
# Tar-xzf linux-2.6.21.tar.gz
Step 2:
# Cp/boot/config-2.6.21-1.3194.fc7./. config
Then run make oldconfig,
Make oldconfig will prompt you to select a new configuration in the new kernel
The old configuration options use the configuration in the original. config.
Run make menuconfig to check which configuration options are selected, and select or remove some options as needed.
Step 3:
Run make
Step 4:
Install the compilation Module
# Make modules_install
Step 5:
# Cp/usr/src/linux-2.6.21/arch/i386/boot/bzImage/boot/vmlinuz-2.6.21
# Cp/usr/src/linux-2.6.21/System. map/boot/System. map-2.6.21
Step 6:
Make initrd-2.6.21.img
# Cd/boot
# Mkinit RD/boot/initrd-2.6.21.img 2.6.21
(Note: In Ubuntu/Debian, mkintramfs is used.
The usage is as follows:
Mkintramfs 2.6.21-o/boot/initrd-2.6.21.img
2.6.21 indicates the name of the corresponding kernel directory under/lib/modules .)
Step 7:
Modify the file/boot/grub. conf to add the startup Item of the new kernel,
Title Fedora (2.6.21-1.3194.fc7)
Root (hd0, 7)
Kernel/boot/vmlinuz-2.6.21-1.3194.fc7 ro root = LABEL =/rhgb quiet vga = 792
Initrd/boot/initrd-2.6.21-1.3194.fc7.img
Title Fedora (2.6.21)
Root (hd0, 7)
Kernel/boot/vmlinuz-2.6.21 ro root = LABEL =/rhgb quiet
Initrd/boot/initrd-2.6.21.img
Note: The author uses the desktop wired network card is marvell model marvell-88E8057, so go to The marvell official website download driver
I'm not sure whether it can be supported in the kernel. I don't know if it can be used.