On Wed, Oct 04, 2000 at 07:18:43AM +1100, Peter Hardy wrote:
> I have a D-Link DFE-530TX NIC, which is supported by the newer versions of
> the via-rhine driver.  The driver included with the 2.2.17 kernel does not
> recognise the card.  Right now I'm running 2.4.0-pre9, but would prefer 2.2,
> at least until 2.4 becomes stable.  Looking at the webpage, I need version
> 1.07 or later.  The 2.2.17 kernel ships with 1.01.
> I've download the newest version (1.08) of via-rhine.c from
> www.scyld.com/pub/network/, but the compile fails with the
> following message:
> 
> peter@littlegeek:~/src$ gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c
> via-rhine.c
> via-rhine.c:91: linux/modversions.h: No such file or directory
> via-rhine.c:112: pci-scan.h: No such file or directory
> via-rhine.c:113: kern_compat.h: No such file or directory
> via-rhine.c:118: warning: #warning You are using an old kern_compat.h
> version.

Had to do this a while ago. Now from memory do the following 
Go back to the via-rhine web page and there should be a link to
pci-scan.[ch] you need these as well then use the following to compile.
You need a 2.2.17 souce tree somewhere or at least the header files and
use

gcc -D__KERNEL__ -I/usr/src/linux-2.2.17/include -Wall \
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing \
-pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 \
-malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include \
/usr/src/linux-2.2.17/include/linux/modversions.h  -o via-rhine.o
via-rhine.c

the only real important bits above are
-D__KERNEL__ and -I/usr/src/linux-2.2.17/include

same as above with s/via-rhine/pci-scan/g

then insmod pci-scan.o
insmod via-rhine.o 
and hopefully you'll be away.

-- 
John

PGP signature

Reply via email to