Install and configure the Linux Ethernet Card

Source: Internet
Author: User

Now many enterprises have installed Linux and may encounter installation and configuration problems of the Linux Ethernet card. Here we will introduce the installation and configuration of the Linux Ethernet Card, the following uses the Crystal CS8920 ethernet card produced by Cirrus as an example to describe the installation and configuration process. In this example, some command parameters, such as the core source code directory, are based on my system environment. The specific application must be localized. In order to be closer to reality, the example also describes the problems encountered during installation.

1. This is an internal Nic of the ibm pc. The machine only provides drivers in Windows 95/98. Because of the compressed file of RedHat resume.

2. The linux102_tar.gz file contains five files. Including source code, applicable only to the target modules of Linux 2.0 and readme files.

3. Check the readme file and find that the driver can only use the port number (I/O base address) and interrupt number set in the ENI EEPROM. For the configuration of the Internet card eeprom, the setting program setup.exe of the Internet card's dos.pdf is downloaded from the cirrus site.

4.run setup.exe in dosand find that the starting port number of the NIC is 0x360 and the interrupt number is 10, which is in conflict with other devices. Select the corresponding menu of the setup.exe program and change the interrupt number to 5. In addition, the driver does not support plug and play, so the PnP function of the NIC is also blocked in setup.exe.

5. the Linux core version of RedHat 5.0 I use is 2.0.34. Therefore, the ready-made driver target module cannot be used and must be compiled by myself. As described above, there are two ways to use this driver.

6. To compile the program into an independent module, run the following command:

Gcc-D_KERNEL_-I/usr/src/linux/include-I/usr/src/linux/net/inet-Wall-Wstrictprototypes-02-fomit-frame-pointer-DMODULE-DCONFIG_MODVERSIONS- ccs89x0. c

The compilation result is the driver target module named cs89x0. o. To load this driver, enter the following command: insmod cs89x0. o io = 0x360 irq = 10

To uninstall the driver, run the rmmod command:

Rmmod cs89x0. o

7. If you want to compile the driver into the system core,

Modify/usr/src/linux/drivers/net/CONFIG and add:

CS89x0_OPTS =

Modify/usr/src/linux/drivers/net/Config. in and add:

Tristate 'cs8920 Support 'CONFIG _ CS8920

The above two lines are used to enable make config to check whether CS8920 Nic support is added during configuration. Add/usr/src/linux/drivers/net/Makefile:

 
 
  1. ifeq((CONFIG_CS8920),y)  
  2. L_OBJS+=cs89x0.o  
  3. endif 


Modify/usr/src/linux/drivers/net/Space. c and add:

 
 
  1. extern int cs89x0_probe(struct device *dev);  
  2. ……  
  3. #ifdef CONFIG_CS8920  
  4. && cs89x0_probe(dev);  
  5. #endif 

The above two sections are used to compile and output the NIC Driver and its routines.

Copy the driver source code to the/usr/src/linux/drivers/net directory.

Run make config or make menuconfig in the/usr/src/linux directory, and select core CS8920 Nic support.

Run make dep and make clean commands. Finally, use make zImage to compile the Linux core.

You may have learned how to install and configure the Linux Ethernet Card.

  1. Describes how to create a log server in Linux and vro.
  2. Linux practical command-pv: MPS queue Viewer
  3. Compile dtAgeiaPhysX in 64-bit Linux
  4. Battle: Linux Desktop Mint 8 and Windows 7
  5. Simple Theory Linux ReiserFS system analysis features and results

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.