devo installare i drivers?
Nel CD ho trovato qualcosa, ma quando provo a installarli, ho degli errori.
Ho 2.6.21.5-smp come kernel.....e slackware 12
ecco il readme
Codice: Seleziona tutto
<Linux device driver for Realtek Ethernet controllers>
This is the Linux device driver released for RealTek Ethernet controllers, which are listed as following.
1. RTL8169S/SB/SC (Gigabit Ethernet with PCI interface)
2. RTL8168B (Gigabit Ethernet with PCI-Express interface)
3. RTL8101E (Fast Ethernet with PCI-Express interface)
<Requirements>
- kernel source tree (supported versions 2.4.x or 2.6.x)
- compiler/binutils for kernel compilation
<Quick install with proper kernel settings>
Unpack the tarball :
unzip r1000_linuxdrv_vxx.zip
Change to the directory:
cd r1000
If you are running the target kernel, then you should be
able to do :
make clean modules (as root or with sudo)
make install
depmod -a
<Force Media Speed>
The media can be forced to one of the 5 modes as follows.
Cmd: "insmod r1000 media = SET_MEDIA"
For example:
"insmod r1000 media = 0x04" will force PHY to operate in 100Mpbs Half-duplex.
SET_MEDIA can be:
_10_Half = 0x01
_10_Full = 0x02
_100_Half = 0x04
_100_Full = 0x08
_1000_Full = 0x10
Force media type for multiple cards could be performed as:
"insmod r1000 media=0x04,0x10"
which force PHY to operate at 100Mbps half-duplex and 1000Mbps full-duplex.
<Advanced feature>
- Supports Jumbo Frame
- Hardware Tx/Rx flow control
Codice: Seleziona tutto
/Desktop/24x_26x# make
make -C src/ clean
make[1]: Entering directory `/root/Desktop/24x_26x/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/root/Desktop/24x_26x/src'
make -C src/ modules
make[1]: Entering directory `/root/Desktop/24x_26x/src'
make -C /lib/modules/2.6.21.5-smp/build SUBDIRS=/root/Desktop/24x_26x/src modules
make[2]: Entering directory `/usr/src/linux-2.6.21.5'
CC [M] /root/Desktop/24x_26x/src/r1000_n.o
/root/Desktop/24x_26x/src/r1000_n.c:46: error: expected ')' before string constant
/root/Desktop/24x_26x/src/r1000_n.c: In function 'r1000_open':
/root/Desktop/24x_26x/src/r1000_n.c:678: warning: passing argument 2 of 'request_irq' from incompatible pointer type
/root/Desktop/24x_26x/src/r1000_n.c: In function 'r1000_close':
/root/Desktop/24x_26x/src/r1000_n.c:1450: error: 'entdev' undeclared (first use in this function)
/root/Desktop/24x_26x/src/r1000_n.c:1450: error: (Each undeclared identifier is reported only once
/root/Desktop/24x_26x/src/r1000_n.c:1450: error: for each function it appears in.)
make[3]: *** [/root/Desktop/24x_26x/src/r1000_n.o] Error 1
make[2]: *** [_module_/root/Desktop/24x_26x/src] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.21.5'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/Desktop/24x_26x/src'
make: *** [modules] Error 2
Codice: Seleziona tutto
Desktop/24x_26x# ls
Makefile* README* src/
Codice: Seleziona tutto
Desktop/24x_26x/src# ls -a
./ ../ .r1000_n.o.d .tmp_versions/ Makefile* Makefile_linux24x* Makefile_linux26x* r1000.h* r1000_ioctl.c* r1000_n.c*
il contenuto dei due Makefile e' identico:
quello fuori dalla directory src:
Codice: Seleziona tutto
all: clean modules install
modules:
$(MAKE) -C src/ modules
clean:
$(MAKE) -C src/ clean
install:
$(MAKE) -C src/ install
Codice: Seleziona tutto
KVER := $(shell uname -r)
KDIR := /lib/modules/$(KVER)/build
KMISC := /lib/modules/$(KVER)/kernel/drivers/net/
KEXT := $(shell echo $(KVER) | sed -ne 's/^2\.[567]\..*/k/p')o
KFLAG := 2$(shell echo $(KVER) | sed -ne 's/^2\.[4]\..*/4/p')x
modules:
ifeq ($(KFLAG),24x)
$(MAKE) -f Makefile_linux24x
else
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD)/src modules
endif
clean:
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
install:
install -m 644 -c r1000.$(KEXT) $(KMISC)
ifneq ($(KFLAG),24x)
include $(PWD)/src/Makefile_linux26x
endif
grazie
se avete bisogno di qualche altro dato, dite pure...


