[Gllug] Compiling Drivers

Ben Harwood benguin at blueyonder.co.uk
Tue May 21 17:49:22 UTC 2002


Hi,

I have recently purchased an 8-port Netgear FS108 switch and it's work fine
in half-duplex mode but I want to optimise it to full-duplex.
The output of mii-tool shows me:

[root at buddha root]# mii-tool eth1
eth1: 10 Mbit, half duplex, no link

However, on a second machine with the exact same NIC (Realtek RTL8319) i get

karma:~# mii-tool
eth0: negotiated 100baseTx-FD flow-control, link ok

I have tried to force media type on the half-duplex one but to no avail. The
only thing that is different in the two machines is that the first is
running Redhat 7.2 using module 8139too  while the other is Debian using
driver rtl8139. So i have attempted to install the rtl8139 module onto the
Redhat machine but I keep getting error messages when compiling:

[root at buddha netdrivers-3.1]# gcc -DMODULE -D__KERNEL__ -O6 -c rtl8139.c
In file included from rtl8139.c:93:
/usr/include/linux/modversions.h:1:2: #error Modules should never use
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include
(or similar) to
/usr/include/linux/modversions.h:4:2:
#error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the
currently-running kernel.

However, I do not seem to have either a "/usr/src/linux/include" dir or a
"/lib/modules/2.4.7-10/build/include" dir. I'm really not sure what my
course of action should be from here, any help would be greatly appreciated.

TIA
Ben Harwood
benguin at blueyonder.co.uk




-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list