6 compilations to fix Linux kernel upgrades under vmware

Source: Internet
Author: User
6 times to complete the Linux kernel upgrade under vmware-general Linux technology-Linux programming and kernel information. The following is a detailed description. I have never done this before. Therefore, it has been compiled many times. After reading the article, I also found that no one is willing to continuously track the Compilation Guide for Kernel upgrade of different versions. So the problem arises, and each person will write a different version of the processing method, they are all summative and may often forget something. This article applies to debian3.1 compilation and use of linux 2.6.19.1 kernel in vmware.

Guide

Download latest stable Kernel File http://www.kernel.org

Cd/tmp

Wget http ://......

Extract

Tar xjvf linux-26.19.1.gz

Move to the src directory

Music linux-2.6.19.1/usr/src

Cd/usr/src/linux-2.6.19.1

Prepare Kernel configuration

Note: It is recommended that you copy the old configuration under boot in the general tutorial. However, if the version range is large, do not do this, which may cause unnecessary problems, for example, a new module cannot be found, so it is necessary to re-create this configuration across major version numbers.

Make menuconfig

In the vmware environment, You must select several points and compile them into the kernel.

Generally, vmware virtual machines use the SCSI interface hard disks by default.

Device Drivers ---> SCSI device support ---> <*> SCSI disk support

Device Drivers ---> SCSI device support ---> SCSI low-level drivers ---> <*> BusLogic SCSI support

File System Support

Ext3-related file system support must be selected as a star number.


  • Nic support

    Device Drivers ---> Networking support ---> Ethernet (10 or 100 Mbit) ---> <*> AMD PCnet32 PCI support

    Remember to save the configuration.


    Compile fakeroot make-kpkg-revsion = debian.3.1 kernel_image

    After compilation is successful, a deb package will be claimed in the upper-level directory

    Cd ..

    Dpkg-I kernel-2.6.19.1-debian.3.1.deb

    If you reinstall the kernel of the same version, you will be prompted to stop the kernel. The default value is stopped. Check the prompt.

    You should clear it before re-compilation. Otherwise, the Compilation speed is very fast, but it does not seem to be adjusted.

    Clear

    Make-kpkg clean

    In addition to the valid version of the installation package, the Invalid Version compiled should be deleted immediately, so that you do not need to mix and occupy space in the future.


    Conclusion

    I use a T2050 cpu and can complete kernel compilation in about one hour.

    During compilation, I chose to watch movies or listen to songs.

    During Kernel configuration, * indicates to be compiled into the kernel, and M indicates to be compiled into a module.

    In the vmware environment, we recommend that you compile the data into the kernel instead of the module.

    After 2.6.19, it seems that mkinitrd does not need to be compiled into the kernel.
  • 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.