Trouble compiling driver for Ethernet Adapter


Forum: Networking
Topic: Trouble compiling driver for Ethernet Adapter
started by: BarkingSpider

Posted by BarkingSpider on July 30 2006,15:08
I am attempting to add a D--Link DFE-530TX+ Ethernet Adapter to an old Gateway 350mHz Pentium 2 computer running a HD intallation of DSL. I have installed the actual card and have pulled the archive from the CD containing a number of files including:

Makefile
kcompat.h
linux.txt (which includes instructions)
rhine.h
rhine_cfg.h
rhine_main.c
rhine_proc.c
rhine_proc.h
rhine_wol.c
rhine_wol.h

I have no trouble with the intructions until they indicate that I need to compile the main driver source file: rhine_main.c. They say to use Make install as a command and another post on DSL boards claims that ./configure works for a driver on a different device. Neither of the two commands are recognized when I try to use them in emeFM.

Thanks for the help!

Posted by ^thehatsrule^ on Aug. 02 2006,03:28
You need to install some gcc and make package.  See myDSL for gcc* extensions.
Posted by mountainman on May 14 2007,01:06
I had problems getting my D-LINK DFE-530TX ethernet card to work with DSL 3.2  I knew the card was OK since I have it working with Slackware 10.0 on the same system. When I attempted to configure the card via netcardconfig it reported that no network cards were found. But the card was indeed there as confirmed by lspci -vv where it shows up as follows:

0000:01:08.0 Ethernet controller: VIA Technologies, Inc. VT86C100A [Rhine] (rev 06)
Subsystem: D-Link System Inc DFE-530TX rev A

The correct driver for this card is via-rhine. I checked to see if it was loaded with lsmod, but it wasn't. I tried to load it with "sudo modprobe via-rhine" but I received an error that it failed to load. I did a bit more investigation by trying to load it via "sudo insmod via-rhine" and I received a few errors regarding mii_ethtool_ioctl.

I looked at the source code for the via-rhine drive and determined that it also requires the "mii" and "crc32" drivers to be loaded as well. So I checked to see if the correct modules were associated with "via-rhine" by looking at /lib/modules/2.4.26/modules.dep, which is the list of module dependencies generated by depmod. The via-rhine entry did indeed correctly list the "mii" and "crc32" as dependencies, however, it also listed the "b44" module as a dependency as well. I hadn't seen any reference to this module when I looked at the source code for the "via-rhine" module, so I suspected that it might be the root of the problem.

I conducted a quick test. I removed the line: "lib/modules/2.4.26/kernel/drivers/net/b44.o" from the "via-rhine" entry in the file /lib/modules/2.4.26/modules.dep, saved the file, and rebooted. Bingo! That resolved the problem. The card was now found during boot and the "via-rhine" module and it's dependencies "mii" and "crc32" were loaded. It now works perfectly.  :)

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.