Nic compilation in Linux

Source: Internet
Author: User
Article Title: Nic compilation for Linux operating systems. Linux is a technology channel of the IT lab in China. It includes desktop applications, Linux system management, kernel research, embedded systems, open-source systems, and other basic categories. When installing a Linux system, you may encounter a problem, that is, after installing the system, the NIC cannot recognize it.
 
This is a headache. There are two ways to solve this problem: first, buy an independent NIC and add it, A single 8139 Mbit/s Nic can recognize the NIC driver without compiling the NIC Driver. This method is simple and convenient. 2. Find the NIC Driver of the corresponding model and compile the driver. The second method has several difficulties. One is to find the NIC Driver of the corresponding model, and the other is to compile the method. Even if the NIC Driver is correct, if the linux version is different, there are also different compilation methods.
 
Here is an example:
 
Environment: The NIC Driver used by the motherboard Giga 945 and nic RTL8110 when different versions are installed and different compilation methods:
 
I. as4 Kernel
 
Cp r8169-6.003.00.tar.bz2/tmp
 
Su-
 
Cd/tmp
 
Tar jxvf r8169-6.003.00.tar.bz2
 
Cd r8169-6.003.00
 
Make
 
Make install
 
Cd/tmp
 
Depmod-
 
Insmod./src/r8169
 
Lsmod | grep r8169
 
Ifconfig-
 
Ifconfig eth0 up
 
Ii. Redhat 9.0
 
Cp r1000_v1.06.tgz/tmp/u
 
Cd/tmp/u
 
Tar zxvf r1000_v1.06.tgz
 
Cd r1000_v1.06
 
Make
 
Reboot
 
A dialog box is displayed during the restart process. The dialog box contains three options. Select the first one. The ip Address Configuration window appears. You can configure the ip address.
 
Iii. Version cannot be remembered
 
Cp r8169.tar.bz2/lib/modules/2.6.xxxsml/kernel/drivers/net
 
Tar jxvf r8169.tar.bz2
 
Lsmod | grep r8169
 
Cd/lib/modules/2.6xxx/kernel/drivers/net
 
Make clean modules
 
Make install
 
Depmod-
 
Insmod./src/r8169.ko
 
Lsmod | grep r8169
 
Ifconfig-
 
Ifconfig eth0 up
 

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.