LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to add DLINK NIC drivers (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-dlink-nic-drivers-80387/)

adhx087 08-09-2003 05:59 AM

how to add DLINK NIC drivers
 
Welll have my RH9 set up and running except that my DLINK NIC
is not detected by RH9. However I have drivers on CD that will
support RH 9. The NIC is DFE-538TX
And yes... very much a newbie to linux hence my reason to ask the question how to I install it...
Document say to install to linux and compile. Well I don't even know where to start... I just don't want to goof up.

Thanks in advance,

ADHX

ksgill 08-09-2003 01:14 PM

whats the file extension of the driver you have on cd?

adhx087 08-09-2003 04:33 PM

the extension is ".c"
File name rtl8139.c

ksgill 08-09-2003 06:08 PM

c extension is the c langage code. You have to compile it on your machine. Make sure that your floppy is in the drive and do this (these are instructions for redhat 7.0. I hope it works. rt8139.c is your driver replace it with your actual driver name. /usr/src/linux/include is where your linux kernel-source is. You need to install kernel-source beore u attempt to compile drivers:
cd floppy
cp rtl8139.c /root(or any temp directory)
cd /root
gcc -I /usr/src/linux/include -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c rtl8139.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`

[Enter]

insmod rtl8139.o


All times are GMT -5. The time now is 04:03 PM.