OS: SLES 10 SP 1
# rpm -qa "kernel*" "bin*" "gcc*"
gcc-4.1.2_20070115-0.11
gcc-info-4.1.2_20070115-0.11
gcc-objc-4.1.2_20070115-0.11
binutils-2.16.91.0.5-23.20
kernel-default-2.6.16.46-0.12
kernel-source-2.6.16.46-0.12
gcc-locale-4.1.2_20070115-0.11
gcc-obj-c++-4.1.2_20070115-0.11
gcc-c++-4.1.2_20070115-0.11
download the driver or realtek 8169 from
Realtek
d=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Down loads=true
untar the .bz file, then cd into it, and did as per the installation instruction in readme file.
# cd r8169-6.004.00
got errors when
# make clean modules
make clean modules
make -C src/ clean
make[1]: Entering directory `/r8169-6.004.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers rset
make[1]: Leaving directory `/r8169-6.004.00/src'
make -C src/ modules
make[1]: Entering directory `/r8169-6.004.00/src'
make -C /lib/modules/2.6.16.46-0.12-default/build SUBDIRS=/r8169-6.004.00/src modules
make[2]: Entering directory `/usr/src/linux-2.6.16.46-0.12-obj/i386/default'
make -C ../../../linux-2.6.16.46-0.12 O=../linux-2.6.16.46-0.12-obj/i386/default modules
CC [M] /r8169-6.004.00/src/r8169_n.o
/r8169-6.004.00/src/r8169_n.c: In function ‘rtl8169_tso’:
/r8169-6.004.00/src/r8169_n.c:3004: error: ‘struct skb_shared_info’ has no member named ‘tso_size’
make[5]: *** [/r8169-6.004.00/src/r8169_n.o] Error 1
make[4]: *** [_module_/r8169-6.004.00/src] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.16.46-0.12-obj/i386/default'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/r8169-6.004.00/src'
make: *** [modules] Error 2
# make install
make -C src/ install
make[1]: Entering directory `/r8169-6.004.00/src'
install -m 744 -c r8169.ko /lib/modules/2.6.16.46-0.12-default/kernel/drivers/net/
install: cannot stat `r8169.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/r8169-6.004.00/src'
make: *** [install] Error 2
# insmod ./src/r8169.ko
insmod: can't read './src/r8169.ko': No such file or directory
I also check manually in
# ls /r8169-6.004.00/src/r8169*
/r8169-6.004.00/src/r8169.h /r8169-6.004.00/src/r8169_n.c
that is no r8169.ko in /r8169-6.004.00/src
following is the installation part from readme file:
Unpack the tarball :
# tar vjxf r8169-6.aaa.bb.tar.bz2
Change to the directory:
# cd r8169-6.aaa.bb
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
# insmod ./src/r8169.ko (or r8169.o for linux kernel 2.4.x)
Please help asap