Linux kernel 2.6 compiled in Vmware

Source: Internet
Author: User
Vmware successfully compiled Linux kernel 2.6-general Linux technology-Linux programming and kernel information. The following is a detailed description. Linux kernel 2.6 compiled in Vmware

Compiling the kernel is indeed a suffocating and boring process. After several days of hard work, we finally succeeded. Thank you for your technical support for "programming Sleepless Nights ".

I downloaded linux kernel 2.6.14.4 from Red Hat 9 installed in Vmware.

(1) decompress the package to the/usr/src directory. Note that the package must be decompressed in linux.

(2) enter the decompressed directory, $ make menuconfig (X11-Based Graphical Kernel configuration tool ). Note: The following options must be selected in Vmware; otherwise, compilation may fail:

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

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

Device Drivers ---> Fusion MPT device support ---> Fusion MPT (base + ScsiHost) drivers and Fusion MPT misc device (ioctl) driver (not sure)

Device Drivers ---> USB support ---> <*> USB Mass Storage support

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

It is best to compile the ext3 file system support into the kernel (this version is in the module form by default)

<*> Ext3 journalling file system support
<*> Ext3 extended attributes
<*> Ext3 POSIX Access Control Lists
<*> Ext3 Security Labels
<*> JBB (ext3) debugging support

(3) Compile the kernel and $ make (to redirect useless output information to a never-returned black hole, run $ make>/dev/null)

(4) install the kernel, $ make bzImage (to generate a compressed kernel, you can not)

$ Cp/usr/src/linux-2.6.14.4/arch/i386/boot/bzImage/boot/newkernel

Edit the/etc/grub. conf file to create a startup item for the new kernel. Add the following content:

Title NewKernel (2.6.14.4)

Root (hd0, 0)

Kernel/newkernel ro root =/dev/sda2

(5) install the module, $ make modules (compile the module, you can not)

$ Make modules_install (installation module)

(6) $ reboot to check the effect

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.