Upgrade Linux kernel and install NIC Driver in VMware

Source: Internet
Author: User

Upgrade Linux kernel and install NIC Driver in VMware
Wednesday, rjl 20,200 5,-Technology
I upgraded from redhat9 to 2.4.27. The kernel can be changed from http://www.kernel.org.
Upload the kernel to your VMware Linux and decompress it. Then there are some common steps:

Make mrproper
Make menuconfig
Make Dep
Make bzimage
Make modules
Make modules_install
Make install

You can enter the above command. As for menuconfig, it doesn't matter if you don't understand it. By default, it does.

An important premise is that the hard disk type should be ide when VMware installs liunx. The default is SCSI adapter: buslogic.
Because you open/etc/grub. conf or/boot/GRUB/Grug. conf (grub is used for guidance. If you are using something else, you are on your own .) Look,
There is a line of initrd/initrd-2.4.20.img and so on. If it is SCSI, this line is required.
In addition, you need to compile the SCSI buslogic driver in menuconfig,
After compiling, change the kernel/vmlinuz-2.4.27 Ro root = label =/In grub. conf to the actual hard disk location of your boot,
For example, root =/dev/sha2. Even if everything works, I still cannot start the new kernel: Kernel panic (me panic too ).
If you insist on using SCSI and are very creative, you can try it on your own and send me an e-mail once it succeeds.

After compiling the kernel, I think the dynamic kernel is not enough,
Change kernel/vmlinuz-2.4.27 Ro root = label =/In grub. conf to kernel/vmlinuz-2.4.27 Ro root =/dev/sda2.
Okay, you can start the new kernel.

After the kernel is upgraded, the NIC driver will be installed. If no Nic is installed, this Linux cannot communicate with the outside world.
Unless you only want to upgrade the kernel. Here I have planted a great fight, and I tried every means to install the rtl8139 driver,
A few days later, I found myself a dumb. The devices in VMware are basically virtual devices, and the network card uses amd pcnet Nic.
If it is placed in the driver, you don't need to find it online. Here we have/lib/modules/2.4.27/build/Drivers/net, and pcnet32.c is in it.
Of course, you need to compile it into a module. (Or you can compile it in menuconfig to save trouble .)
Go to the/lib/modules/2.4.27/build/Drivers/NET directory,
Start Compilation: gcc-dmodule-d__kernel _-o6-C pcnet32.c-I/lib/modules/2.4.27/build/include-include/lib/modules/2.4.27/build/include/Linux/modversions. h
Install the kernel after compilation: insmod pcnet32.o or install-M 644 pcnet32.o/lib/modules/2.4.27/build/net.
Then start the NIC: IFUP eth0. Use ifconfig to check and set your IP address.

All done!

Related Article

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.