Compile your own function-customized Fedora7 Kernel

Source: Internet
Author: User
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.

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.