Muzzafarath
11-18-2000, 08:35 AM
I had been trying to get my ethernet card, a DLink DFE-530TX, working in Linux, for a while. I gave up and asked a question here in the Hardware Related forum. I was running kernel 2.2.17.
2.2.17 includes a rather old version of the via-rhine driver (v1.01 from '99). To use my card with Linux I had to have v1.07 or later. I went to scyld.com and downloaded these files:
kern_compat.h (http://www.scyld.com/network/kern_compat.h)
pci-scan.h (http://www.scyld.com/network/pci-scan.h)
pci-scan.c (http://www.scyld.com/network/pci-scan.c)
via-rhine.c (ftp://www.scyld.com/pub/network/via-rhine.c)
I put them in /ether (but you can put them whereever you like). I then compiled them:
gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c pci-scan.c
gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c via-rhine.c
That would produce two kernel modules (pci-scan.o and via-rhine.o). I copied via-rhine.o to /lib/modules/2.2.17/net and pci-scan.o to /lib/modules/2.2.17/misc. Then I ran `depmod -a` and then `modprobe via-rhine` to load the two modules. I also made sure that the via-rhine module was loaded at boot-time by adding modprobe via-rhine to the end of /etc/rc.d/rc.modules (the init scripts might differ between distributions). I then ran `netconfig` to configure the network card and rebooted (probably unnecessary, but it was the only way I could get the changes to take effect).
That's how I got my DLink DFE-530TX working in Slackware Linux 7.1. http://www.linuxnewbie.org/ubb/smile.gif
Update: You need the kernel sources installed (in /usr/src/linux) to be able to compile the modules.
If you're using Red Hat 7, make sure you compile using kgcc as the the version of gcc in RH7 can't compile the modules. You must also add -I/usr/src/linux/include to the compile command (mentioned <a href=http://www.scyld.com/network/updates.html>here</a> ). So if you're running RH 7, this is how you would compile it:
kgcc -I/usr/src/linux/include -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c pci-scan.c
kgcc -I/usr/src/linux/include -DMODULE -Wall -Wstrict-prototypes -O6 -c via-rhine.c
Thanks to brwnx for pointing this it http://www.linuxnewbie.org/ubb/smile.gif
[This message has been edited by Muzzafarath (edited 07 January 2001).]
2.2.17 includes a rather old version of the via-rhine driver (v1.01 from '99). To use my card with Linux I had to have v1.07 or later. I went to scyld.com and downloaded these files:
kern_compat.h (http://www.scyld.com/network/kern_compat.h)
pci-scan.h (http://www.scyld.com/network/pci-scan.h)
pci-scan.c (http://www.scyld.com/network/pci-scan.c)
via-rhine.c (ftp://www.scyld.com/pub/network/via-rhine.c)
I put them in /ether (but you can put them whereever you like). I then compiled them:
gcc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c pci-scan.c
gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c via-rhine.c
That would produce two kernel modules (pci-scan.o and via-rhine.o). I copied via-rhine.o to /lib/modules/2.2.17/net and pci-scan.o to /lib/modules/2.2.17/misc. Then I ran `depmod -a` and then `modprobe via-rhine` to load the two modules. I also made sure that the via-rhine module was loaded at boot-time by adding modprobe via-rhine to the end of /etc/rc.d/rc.modules (the init scripts might differ between distributions). I then ran `netconfig` to configure the network card and rebooted (probably unnecessary, but it was the only way I could get the changes to take effect).
That's how I got my DLink DFE-530TX working in Slackware Linux 7.1. http://www.linuxnewbie.org/ubb/smile.gif
Update: You need the kernel sources installed (in /usr/src/linux) to be able to compile the modules.
If you're using Red Hat 7, make sure you compile using kgcc as the the version of gcc in RH7 can't compile the modules. You must also add -I/usr/src/linux/include to the compile command (mentioned <a href=http://www.scyld.com/network/updates.html>here</a> ). So if you're running RH 7, this is how you would compile it:
kgcc -I/usr/src/linux/include -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c pci-scan.c
kgcc -I/usr/src/linux/include -DMODULE -Wall -Wstrict-prototypes -O6 -c via-rhine.c
Thanks to brwnx for pointing this it http://www.linuxnewbie.org/ubb/smile.gif
[This message has been edited by Muzzafarath (edited 07 January 2001).]