downloads
 drivers & firmware


PDA

View Full Version : Install NIC on linux


   
 
 
skorpion.91
03-02-2009, 03:12 PM
hi,

I need to install a network interface card on my OpenSUSE 11.1 system. The card is a "US Robotics 997902 10/100/1000 PCI NIC". I have found the driver on USR web site:

http://www.usr.com/support/product-template.asp?prod=7902a

and I have downloaded the linux driver which is the same that I have on the installation CD. The matter is when i try to install it. I have followed the readme file and after I unzipped the file I ran the make clean modules command as root and follow is the output:

linux-thej:/r8169 # make clean modules
make -C src/ clean
make[1]: Entering directory `/r8169/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/r8169/src'
make -C src/ modules
make[1]: Entering directory `/r8169/src'
make -C /lib/modules/2.6.27.19-3.2-pae/build SUBDIRS=/r8169/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.27.19-3.2-pae/build: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/r8169/src'
make: *** [modules] Error 2

I have also noted that in the c source file are included a series of library that I haven't on my system, what I should to do? Who can help me?

thanks in advance

cybrhippy
05-23-2009, 12:27 AM
Did you ever get this working? I installed the linux headers and got to at least this point:


root@tanglebox:/usr/local/src/r8169# make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/local/src/r8169/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/usr/local/src/r8169/src'
make -C src/ modules
make[1]: Entering directory `/usr/local/src/r8169/src'
make -C /lib/modules/2.6.28-11-server/build SUBDIRS=/usr/local/src/r8169/src modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.28-11-server'
CC [M] /usr/local/src/r8169/src/r8169_n.o
/usr/local/src/r8169/src/r8169_n.c:376: error: expected ‘)’ before string constant
/usr/local/src/r8169/src/r8169_n.c: In function ‘rtl8169_init_board’:
/usr/local/src/r8169/src/r8169_n.c:609: error: implicit declaration of function ‘SET_MODULE_OWNER’
/usr/local/src/r8169/src/r8169_n.c:717: error: ‘struct pci_dev’ has no member named ‘slot_name’
/usr/local/src/r8169/src/r8169_n.c: In function ‘rtl8169_open’:
/usr/local/src/r8169/src/r8169_n.c:1003: error: ‘SA_SHIRQ’ undeclared (first use in this function)
/usr/local/src/r8169/src/r8169_n.c:1003: error: (Each undeclared identifier is reported only once
/usr/local/src/r8169/src/r8169_n.c:1003: error: for each function it appears in.)
/usr/local/src/r8169/src/r8169_n.c:1003: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/usr/local/src/r8169/src/r8169_n.c: In function ‘rtl8169_close’:
/usr/local/src/r8169/src/r8169_n.c:1678: error: too few arguments to function ‘synchronize_irq’
/usr/local/src/r8169/src/r8169_n.c: In function ‘rtl8169_init_module’:
/usr/local/src/r8169/src/r8169_n.c:1822: error: implicit declaration of function ‘pci_module_init’
make[3]: *** [/usr/local/src/r8169/src/r8169_n.o] Error 1
make[2]: *** [_module_/usr/local/src/r8169/src] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.28-11-server'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/local/src/r8169/src'
make: *** [modules] Error 2


Trying to get it to work on Ubuntu 9.04 Server