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:
- ifeq((CONFIG_CS8920),y)
- L_OBJS+=cs89x0.o
- endif
Modify/usr/src/linux/drivers/net/Space. c and add:
- extern int cs89x0_probe(struct device *dev);
- ……
- #ifdef CONFIG_CS8920
- && cs89x0_probe(dev);
- #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.
- Describes how to create a log server in Linux and vro.
- Linux practical command-pv: MPS queue Viewer
- Compile dtAgeiaPhysX in 64-bit Linux
- Battle: Linux Desktop Mint 8 and Windows 7
- Simple Theory Linux ReiserFS system analysis features and results