Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > SuSE Linux Help > error when installing r8169 module - please help asap

Forgot Password?
 SuSE Linux Help   For help and discussions related to SuSE Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-10-2008   #1 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247
error when installing r8169 module - please help asap

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
needee is offline  


Reply With Quote
Old 04-10-2008   #2 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,756
this driver at some point was added to the kernel source tree, you might be using a kernel that already has it and that may be why you are getting errors

if this is a kernel you built, go back into the configuration and look for it under the device drivers -> network device support -> ethernet (1000 mbit)
coopstah13 is offline   Reply With Quote
Old 04-10-2008   #3 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247
thanks coopstah13 for help

This is a SLES 10 SP1. I installed from the media by Novell.
I think SLES 10 SP1 doesnt has the driver for r8169 becuase when I check

# ls /lib/modules/2.6.16.46-0.12-default/kernel/drivers/net/8*
/lib/modules/2.6.16.46-0.12-default/kernel/drivers/net/8139cp.ko
/lib/modules/2.6.16.46-0.12-default/kernel/drivers/net/8139too.ko
/lib/modules/2.6.16.46-0.12-default/kernel/drivers/net/82596.ko
/lib/modules/2.6.16.46-0.12-default/kernel/drivers/net/8390.ko

that is no 8139.ko file

but even though it seems to me that nic has been detected by the OS out-of-the-box, becuase I can "ifup eth0" "ifdown eth0", ifconfig eth0 successfully and "yast lan" also shows the nic . I have attached the "hwinfo -netcard" and "hwinfo --network" for the kind consideration.

But the 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 Realtek
d=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Down loads=true

So please help
needee is offline   Reply With Quote
Old 04-10-2008   #4 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 4,136
Send a message via AIM to Dapper Dan
From the command line, run:
Code:
lspci
Find the line about your ethernet device and post it here please.
__________________
CRUX 2.5 + IceWM Registered:#371367 New Members: click here
Dapper Dan is offline   Reply With Quote
Old 04-10-2008   #5 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247
I am sorry was forget to attached the "hwinfo --netcard" and "hwinfo --network" output

Now attached. please find the attached files.

From the attached files its clear that SLES 10 SP1 has detected the nic out-of-the-box. But as I already explain that the nic is not communicating, and this machine is dual boot with MS XP, and the same nic is working fine with XP, so no issue of hardware malfunction/error.

Sorry Dapper Dan, I cant send you the lspci output today, as I am at remote branch. I'll send it tomorrow.
Attached Files
File Type: txt hwinfo--network.txt (863 Bytes, 11 views)
File Type: txt hwinfo--netcard.txt (1.0 KB, 7 views)
needee is offline   Reply With Quote
Old 04-10-2008   #6 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,756
I notice one thing wrong, it says link detected: no, so this means one of two things.

You don't have your ethernet cable plugged into the device, or you haven't brought up/configured the device properly
coopstah13 is offline   Reply With Quote
Old 04-10-2008   #7 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247
thanks once again for help/reply coopstah13

Well I am human(kiding ) i can do mistakes. But I think I didnt made any mistake.

>You don't have your ethernet cable plugged into the device
without touching the cables, I rebooted the machine in windows XP several times, and it always worked fine.. I will make another test on tomorrow, as I am away from that machine.

>or you haven't brought up/configured the device properly
I configured the nic using yast several times, and chances of configuration error is/are 0.0001 %. Again but I will make another test on tomorrow, as I am away from that machine.

I think there must be something wrong(bug) in the default driver available in SLES 10 SP 1. Thats why I am asking you gurus to also help me installing/compiling the driver.

Regards
Needee
needee is offline   Reply With Quote
Old 04-10-2008   #8 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 4,136
Send a message via AIM to Dapper Dan
Quote:
Originally Posted by needee View Post
Sorry Dapper Dan, I cant send you the lspci output today, as I am at remote branch. I'll send it tomorrow.
The reason I want you to do this is because there are conterfeit RealTek cards out there. They work in Windows with the provided driver but not in Linux. I just want to make sure this isn't what you're running into and eliminate it as a possibility. See here:

Link
__________________
CRUX 2.5 + IceWM Registered:#371367 New Members: click here

Last edited by Dapper Dan; 04-10-2008 at 06:44 PM..
Dapper Dan is offline   Reply With Quote
Old 04-12-2008   #9 (permalink)
Trusted Penguin
 
waterhead's Avatar
 
Join Date: Jul 2004
Location: Franklin, Wisconsin
Posts: 3,957
Just to add some info. The kernel module for this card is called r8169. Enter this command, to see if it is loaded.
Code:
lsmod
If it is loading, then when you configure this card in YaST, try putting r8169 in the driver section.

I am running Fedora 8, with the kernel version 2.6.23.14-115.fc8. It (r8169) is available as a module. You may just need a newer kernel. You may need a newer version of SUSE, as the kernel updates for SUSE are rather limited, unless you are up to compiling your own kernel from source.
__________________
Paul

Please do not PM me with requests for help. I will not reply.
waterhead is offline   Reply With Quote
Old 04-14-2008   #10 (permalink)
Linux Newbie
 
Join Date: Feb 2007
Posts: 247
the output of the following commands are attached for the kind consideration

dmidecode
lspci
lsmod
hwinfo --netcard
hwinfo --network
Attached Files
File Type: txt dmicode.txt (10.2 KB, 4 views)
File Type: txt lsmod.txt (2.9 KB, 7 views)
File Type: txt lspci.txt (1.4 KB, 7 views)
File Type: txt hwinfo--netcard.txt (1.0 KB, 2 views)
File Type: txt hwinfo--network.txt (1.1 KB, 1 views)
needee is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:48 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2