When installing Redhat, there is always a problem that the RHINE network card is slow. I have already solved many times, but I don't write a record every time I will find a long time.
I have solved again today, I have to write down.
NIC model: VIA VT6104 RHINE-II operating system: Redhat AS 3.0 (TAROON)
After installation, you can automatically find the NIC, but the speed is very slow. FTP can only reach 20KB. Cannot endure, update drivers.
Locate the Linux of the Via Rhine NIC from the VIA_AMD disc RhineFet-4.17.tar.gz package. Upload to Rhas3 server / tmp / lan directory TAR ZXVF RHINEFET-4.17.TAR.GZCD RHINEFET-4.17.TAR.GZ
Of course, due to the guidance of the online error tutorial, the GCC version of the GCC was replaced. To check that the GCC version GCC -V is determined to be the system requirements for GCC 3.2.3, compile
Make install compiles conflicts and cannot succeed.
GCC-Wall -dlinux -D__kernel__ -dmodule -dexport_symtab -d__no_version__ -o2 -pipe -i / lib / modules / 2.4.21-4.el / build / include-frame-pointer -dmodversions -include /lib/modules/2.4.21-4.el/build/include/linux/modversions.h -dvmns -c -o rhine_main.o rhine_main.cin file include from /Lib/Modules/2.4.21-4. El / build / include / net / sock.h: 95, from /lib/modules/include/linux/udp.h:21, from rhine_main.c: 72: / lib / Modules / 2.4.21-4.el / build / include / net / irda / Irda.h: 81: 1: warning: "asssert" redefinedin file incrhem Rhine_main.c: 37: Rhine.h: 86: 1: Warning : this is the location of the previous definitionin file include from /lib/modules/2.4.21-4.el/build/include/net/sock.h:95, from /Lib/Modules/2.4.21-4.el /BUILD/INCLUDE/LINUX/udp.h:21, from rhine_main.c: 72: /lib/modules/2.4.21-4.el/build/include/net/irda/irda.h: 207: Redefinition of ` Link_status'VMns_DRV.H: 193: `Link_Status' Previosly Decla red hererhine_main.c: 746: 21: macro "ASSERT" requires 2 arguments, but only 1 givenrhine_main.c: In function `rhine_free_info ': rhine_main.c: 746:` ASSERT' undeclared (first use in this function) rhine_main.c : 746: (each undeclared identifier is reported only oncerhine_main.c: 746: for each function it appears in.) rhine_main.c: 868: 36: macro "ASSERT" requires 2 arguments, but only 1 givenrhine_main.c: in function ` rhine_init_rd_ring ': rhine_main.c: 868: `ASSERT' undeclared (first use in this function) rhine_main.c: 914: 44: macro" ASSERT "requires 2 arguments, but only 1 givenrhine_main.c: in function` rhine_init_td_ring ': rhine_main .c: 914: `Assert '
undeclared (first use in this function) rhine_main.c: 1134: 28: macro "ASSERT" requires 2 arguments, but only 1 givenrhine_main.c: In function `rhine_alloc_rx_buf ': rhine_main.c: 1134:` ASSERT' undeclared (first use in this function) rhine_main.c: 1470: 19: macro "ASSERT" requires 2 arguments, but only 1 givenrhine_main.c: in function `rhine_xmit ': rhine_main.c: 1470:` ASSERT' undeclared (first use in this function) rhine_main.c: 1471: 26: macro "ASSERT" requires 2 arguments, but only 1 givenrhine_main.c: 1589: 24: macro "ASSERT" requires 2 arguments, but only 1 givenrhine_main.c: In function `rhine_intr ': rhine_main. C: 1589: `assert 'undeclared (first use in this function) make: *** [rhine_main.o] error 1 is not afraid, take a closer look, it is /usr/src/linux-2.4/include/irda/ There are two conflict item Assert and Link_Status in Irda.h, which will be included in the two paragraphs. #define assert (expr, func) / if (! (expr)) do {/ func} while (0)
TypedEf enum {status_ok, status_aborted, status_no_Activity, status_noisy, status_remote,} link_status
The network speed is fast after INSMOD RHINEFETSHUTDOWN -R NOW.
Be sure to remember the restoration of the two paragraphs in /usr/src/linux-2.4/include/irda/irda.h.
By the way, because the original driver name is VIA-RHINE.O / ETC / MODULES.CONF, the modular name is also called via-rhinevi /etc/modules.conf manual will change the eth0 via-rhine to eth0 rhinefet. Automatic start.
If you can't start, use INS RHINEFET and LSMOD / DEPMOD / MODPROBE to solve the problem.