Operating System - Linux
1825593 Members
2272 Online
109682 Solutions
New Discussion

unable to install r8169 module on sles 10 sp1 - help asap

 
Maaz
Valued Contributor

unable to install r8169 module on sles 10 sp1 - help asap

# 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

# hwinfo --netcard
25: PCI 200.0: 0200 Ethernet controller
[Created at pci.312]
UDI: /org/freedesktop/Hal/devices/pci_10ec_8136
Unique ID: rBUF.qX9lXQs9pvF
Parent ID: qTvu.4chw4Z9dkyF
SysFS ID: /devices/pci0000:00/0000:00:1c.1/0000:02:00.0
SysFS BusID: 0000:02:00.0
Hardware Class: network
Model: "Lenovo Ethernet controller"
Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
Device: pci 0x8136
SubVendor: pci 0x17aa "Lenovo"
SubDevice: pci 0x3029
Revision: 0x01
Driver: "r8169"
Device File: eth0
I/O Ports: 0xc800-0xc8ff (rw)
Memory Range: 0xff8ff000-0xff8fffff (rw,non-prefetchable)
Memory Range: 0xff8c0000-0xff8dffff (ro,prefetchable,disabled)
IRQ: 177 (no events)
HW Address: 00:1a:6b:62:e0:a0
Link detected: no
Module Alias: "pci:v000010ECd00008136sv000017AAsd00003029bc02sc00i00"
Driver Info #0:
Driver Status: r8169 is active
Driver Activation Cmd: "modprobe r8169"
Config Status: cfg=no, avail=yes, need=no, active=unknown
Attached to: #14 (PCI bridge)


Problem is that this network card doesnt work. cant communicate with any other machine. This machine is dual boot with MS XP, and when using XP i can communicate with other machines.
So I decide to to download the driver from http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=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

Please help asap
1 REPLY 1
Maaz
Valued Contributor

Re: unable to install r8169 module on sles 10 sp1 - help asap

following is the readme file

Please go through readme file.

linux device driver for Realtek Ethernet controllers>

This is the Linux device driver released for RealTek RTL8169S/8110S, RTL8169SB/8110SB, and RTL8110SC.



- kernel source tree (supported Linux kernel 2.6.x/2.4.20 and latter)
- compiler/binutils for kernel compilation


Check whether the built-in driver, r8169.ko(or r8169.o for linux kernel 2.4.x), is installed.
# lsmod | grep r8169

If it is installed, please remove it.
# rmmod r8169
note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remove it again or reboot your computer.

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)

You can check whether the driver is loaded by using following commands.

# lsmod | grep r8169
# ifconfig -a

If there is a device name, ethX, shown on the monitor, the linux
driver is loaded.