LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-08-2014, 04:10 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,719

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Where stands the Realtek 8168/9 module?


I have my head down with exams atm and suddenly find myself embarrassed for this card. The module r8169 finds it and loads, but doesn't talk to anything.

I have kernel 3-8-8. I heard it was fixed in kernel 3.11, and also that it wasn't for some cards anyhow.

http://www.linuxquestions.org/questi...es-4175482566/

Anyone up to date with it?
 
Old 01-09-2014, 09:57 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,117

Rep: Reputation: Disabled
I just came across this post from jtsn.
 
1 members found this post helpful.
Old 01-09-2014, 10:09 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,100

Rep: Reputation: Disabled
I'm using it on my home server/workstation with kernel-3.12.6 and seems to work fine: I haven't tried with the stock 3.10.17 kernel.
Code:
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)
 
Old 01-09-2014, 02:21 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,719

Original Poster
Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Thanks for the replies guys.

@ponce: Duly noted about kernel 3.12.6. It seems you have rev 06, and I have rev09 of the card (lcpci -n reports 10ec:8168) I'll go there asap.

@Didier I tried that driver this morning. It wants asm/system.h and is very insistent about it. I even tried fooling it with some other system.h but it wouldn't have it. I gather I have to go back to 2.x kernels for that. Somebody needs to tell Realtek. Thanks for the post, though. It was worth checking.

I can probably load the system with a fedora kernel if I get desperate. I ran fedora on the slackware kernel often.
 
Old 01-09-2014, 02:54 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,100

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
@ponce: Duly noted about kernel 3.12.6. It seems you have rev 06, and I have rev09 of the card (lcpci -n reports 10ec:8168)
Code:
# lspci -n | grep ^08
08:00.0 0200: 10ec:8168 (rev 06)
 
Old 01-09-2014, 05:58 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,719

Original Poster
Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Looks like it's worth another kernel compile, so. What took them so long? I'll have to go at that kernel and build it for myself here. Thanks.
 
Old 01-10-2014, 02:18 AM   #7
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by business_kid View Post
@Didier I tried that driver this morning. It wants asm/system.h and is very insistent about it. I even tried fooling it with some other system.h but it wouldn't have it. I gather I have to go back to 2.x kernels for that.
You tried the wrong Realtek driver: r8169 6.017.00. That thing is unmaintained and for a different very old PCI NIC controller and doesn't support your PCIe NIC.

You need r8168 8.037. It compiles without modifications on Linux 3.10.17 included with Slackware 14.1. You also need to blacklist and remove the preinstalled r8169.ko from /lib/modules.

Long story short:

r8169 (from Linux 3.x) doesn't work with RTL8168/8111. It tries to, but fails. I think it's maintained by someone, who doesn't have the real thing (hardware) available for driver development and testing. It mostly works with a RTL8169 PCI card (I have one for testing), but's also slow and network throughput isn't great.

r8169 (from Realtek) doesn't work in your case. It is for RTL8169 and won't even detect you NIC, it's for the PCI card. (I attached a patch to make that driver compile on Linux 3.10 for the case someone needs that.)

r8168 (from Realtek) should work flawlessly and deliver wire-speed.
Attached Files
File Type: txt r8169-6.017.00.diff.txt (1.5 KB, 52 views)

Last edited by jtsn; 01-10-2014 at 02:28 AM.
 
Old 01-10-2014, 02:19 AM   #8
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Rep: Reputation: 37
Quote:
Originally Posted by ponce View Post
I'm using it on my home server/workstation with kernel-3.12.6 and seems to work fine: I haven't tried with the stock 3.10.17 kernel.
Code:
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)
I have rev 02 of the Realtek 8169 NIC and it's working ok for me on the 3.10 kernel.
 
Old 01-10-2014, 02:24 AM   #9
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by narz View Post
I have rev 02 of the Realtek 8169 NIC and it's working ok for me on the 3.10 kernel.
Of course it is. It's a different (very old) chip with a parallel PCI interface.
 
Old 01-10-2014, 11:11 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,719

Original Poster
Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
OK. Sorted.

I built the module (which built painlessly - thx Didier) and installed it umpteen times. It transpires that somehow I had _compiled_in_ the r8169 module :-//.
Kernel rebuilds are less painful on SSD. Now I'm going. The module is r8168.ko but identifies as r8169.ko in lspci anyhow which is unnerving.
 
Old 01-10-2014, 03:36 PM   #11
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by business_kid View Post
The module is r8168.ko but identifies as r8169.ko
No, r8168 just didn't get loaded, because udev prefers r8169.ko. You must blacklist r8169 or remove the module.
 
Old 01-11-2014, 04:05 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,719

Original Poster
Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
There _is_no_r8169.ko. I had to recompile the kernel (because it was compiled in) and I left it out.
The situation is tetotally weird. r8168 is in place, and the card now works, which is powerful evidence for that.
lsmod |grep r816* shows a blank - no r8168 or r8169 :-O. Even just 'lsmod' and picking through draws a blank.
grepping modules.dep only shows the r8168
Yet lspci-v reports (with or without a connection on it)
Code:
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 09)
	Subsystem: Samsung Electronics Co Ltd Device c0d8
	Flags: bus master, fast devsel, latency 0, IRQ 41
	I/O ports at 2000 [size=256]
	Memory at c0104000 (64-bit, prefetchable) [size=4K]
	Memory at c0100000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
 
Old 01-11-2014, 10:47 AM   #13
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
The Slackware kernel doesn't have r8169 compiled in. You're still using the compiled-in r8169 and for whatever reason it now works. lspci doesn't lie about that. Just look at /sys/module/r8169/version.
 
Old 01-11-2014, 04:02 PM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,719

Original Poster
Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
I am on kernel 3.8.8-6 - my sixth build from the 3.8.8 source./sys/module/r8169/ exists. Grepping the kernel config for r8169
Quote:
bash-4.2$ sudo grep r8169 .config
bash-4.2$
not much there. Modules.dep
Quote:
bash-4.2$ grep r816* /lib/modules/3.8.8-6/modules.dep
kernel/drivers/net/r8168.ko:
bash-4.2$
As I mentioned, lsmod draws a blank on it also. I think r8169 isn't there, jtsn. The output of lspci -v is strange, I'll admit. The card never worked with r8169, and it works now. Can we leave this one here?

Last edited by business_kid; 01-11-2014 at 04:10 PM.
 
Old 01-11-2014, 04:39 PM   #15
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Welcome to the club!!
Code:
$ lspci -k | grep -A 2 -i net
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
	Kernel driver in use: r8169
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek 8139/8168/8169 on 2.6.21.3 or newer Gato Azul Linux - Networking 6 05-05-2009 10:56 PM
Realtek 8168 driver problem delinne Linux - Hardware 5 07-16-2008 05:51 AM
Realtek 8168(AS) driver? blueskyhff Linux - Networking 2 03-01-2007 07:42 AM
FC6, Realtek 8168, installed rpm, now what? JSX Linux - Networking 2 01-05-2007 11:39 AM
RealTek 8168/8110 with fedora zolorin Linux - Hardware 0 09-07-2004 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration