LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-07-2010, 04:42 PM   #1
fotoryder
LQ Newbie
 
Registered: Jun 2010
Posts: 9

Rep: Reputation: 0
Problem creating driver - RealTek RTL8111DL NIC


I need help creating the driver for the RealTek RTL8111DL network interface built into my motherboard - MSI 770-C45. I've downloaded the driver from the RealTek website, and followed the directions in the readme to extract the compressed package, change directory to the new directory. But when I execute the "make clean modules" command, I get error messages, and the job fails.

output from the command is:
steve@venus2:~/Downloads/RealTek/r8169-6.013.00$ sudo make clean modules
make -C src/ clean
make[1]: Entering directory `/home/steve/Downloads/RealTek/r8169-6.013.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers rset modules.order Module.markers
make[1]: Leaving directory `/home/steve/Downloads/RealTek/r8169-6.013.00/src'
make -C src/ modules
make[1]: Entering directory `/home/steve/Downloads/RealTek/r8169-6.013.00/src'
make -C /lib/modules/2.6.35-22-generic-pae/build SUBDIRS=/src modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic-pae'
scripts/Makefile.build:44: /src/Makefile: No such file or directory
make[3]: *** No rule to make target `/src/Makefile'. Stop.
make[2]: *** [_module_/src] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic-pae'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/steve/Downloads/RealTek/r8169-6.013.00/src'
make: *** [modules] Error 2


I need help to create these drivers so I can get the networking started on this PC. This is system was running under Kubuntu 10.04, and I wiped the disk and installed Kubuntu 10.10 in an attempt to resolve sound issues with another RealTek chip.

Thanks for any assistance.



Output from lspci:
steve@venus2:~/Downloads/RealTek/r8169-6.013.00$ lspci
00:00.0 Host bridge: ATI Technologies Inc RX780/RX790 Chipset Host Bridge
00:02.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (external gfx0 port A)
00:06.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (PCI express gpp port C)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [IDE mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: ATI Technologies Inc RV710 [Radeon HD 4350]
01:00.1 Audio device: ATI Technologies Inc RV710/730
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)


Output from uname-r:
steve@venus2:~/Downloads/RealTek/r8169-6.013.00$ uname -r
2.6.35-22-generic-pae

Contents of Makefile:
################################################################################
#
# r8169 is the Linux device driver released for RealTek RTL8169S/8110S,
# RTL8169SB/8110SB, and RTL8110SC Gigabit Ethernet controllers with
# PCI interface.
#
# Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <http://www.gnu.org/licenses/>.
#
# Author:
# Realtek NIC software team <nicfae@realtek.com>
# No. 2, Innovation Road II, Hsinchu Science Park, Hsinchu 300, Taiwan
#
################################################################################

################################################################################
# This product is covered by one or more of the following patents:
# US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
################################################################################

all: clean modules install

modules:
$(MAKE) -C src/ modules

clean:
$(MAKE) -C src/ clean

install:
$(MAKE) -C src/ install
 
Old 11-07-2010, 05:17 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The code from Realtek is only for kernel version 2.6.9, so it will not compile with your kernel version. Your kernel version does have support for Realtek Ethernet model 8111. You may have to re-compile your present kernel if it does not list the module for your NIC.

Post what "lspci -v" lists. It will include the module being used for each hardware.
 
Old 11-07-2010, 06:47 PM   #3
fotoryder
LQ Newbie
 
Registered: Jun 2010
Posts: 9

Original Poster
Rep: Reputation: 0
edited to include info about the preferred driver.

Thanks for the response. I've attached the output of lspci-v below. When I left-click on the networking icon in the lower right corner, the wired network icon shows as unplugged, although the network cable is plugged into the switch.

From other posts, I believe that this should use the R8168 driver/module, not the one for the R8169.

Output of lspci -v. The ethernet controller is the last item:

steve@venus2:~$ lspci -v
00:00.0 Host bridge: ATI Technologies Inc RX780/RX790 Chipset Host Bridge
Subsystem: ATI Technologies Inc RX780/RX790 Chipset Host Bridge
Flags: bus master, 66MHz, medium devsel, latency 0
Memory at <ignored> (64-bit, non-prefetchable)
Capabilities: <access denied>
Kernel modules: ati-agp

00:02.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (external gfx0 port A) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fea00000-feafffff
Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp

00:06.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (PCI express gpp port C) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: feb00000-febfffff
Prefetchable memory behind bridge: 00000000fdf00000-00000000fdffffff
Capabilities: <access denied>
Kernel driver in use: pcieport
Kernel modules: shpchp

00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [IDE mode] (prog-if 01 [AHCI 1.0])
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 42
I/O ports at c000 [size=8]
I/O ports at b000 [size=4]
I/O ports at a000 [size=8]
I/O ports at 9000 [size=4]
I/O ports at 8000 [size=16]
Memory at fe9ffc00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci

00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
Memory at fe9fe000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
Memory at fe9fd000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller (prog-if 20 [EHCI])
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
Memory at fe9ff800 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
Memory at fe9fc000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
Memory at fe9fb000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller (prog-if 20 [EHCI])
Subsystem: ATI Technologies Inc SB700/SB800 USB EHCI Controller
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
Memory at fe9ff400 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: 66MHz, medium devsel
Capabilities: <access denied>
Kernel modules: i2c-piix4

00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller (prog-if 8a [Master SecP PriP])
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at ff00 [size=16]
Capabilities: <access denied>
Kernel driver in use: pata_atiixp
Kernel modules: pata_atiixp

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, slow devsel, latency 64, IRQ 16
Memory at fe9f4000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
Subsystem: ATI Technologies Inc Device 4383
Flags: bus master, 66MHz, medium devsel, latency 0

00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (prog-if 01 [Subtractive decode])
Flags: bus master, 66MHz, medium devsel, latency 64
Bus: primary=00, secondary=03, subordinate=03, sec-latency=64

00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller (prog-if 10 [OHCI])
Subsystem: ATI Technologies Inc Device 4396
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
Memory at fe9fa000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd

00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
Flags: fast devsel
Capabilities: <access denied>

00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
Flags: fast devsel
Capabilities: <access denied>
Kernel driver in use: k10temp
Kernel modules: k10temp

00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
Flags: fast devsel

01:00.0 VGA compatible controller: ATI Technologies Inc RV710 [Radeon HD 4350] (prog-if 00 [VGA controller])
Subsystem: Diamond Multimedia Systems Device e990
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at feaf0000 (64-bit, non-prefetchable) [size=64K]
I/O ports at d000 [size=256]
Expansion ROM at feac0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: radeon
Kernel modules: radeon

01:00.1 Audio device: ATI Technologies Inc RV710/730
Subsystem: Diamond Multimedia Systems Device aa38
Flags: bus master, fast devsel, latency 0, IRQ 45
Memory at feaec000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: Micro-Star International Co., Ltd. Device 7599
Flags: bus master, fast devsel, latency 0, IRQ 43
I/O ports at e800 [size=256]
Memory at fdfff000 (64-bit, prefetchable) [size=4K]
Memory at fdff8000 (64-bit, prefetchable) [size=16K]
Expansion ROM at febe0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169

Last edited by fotoryder; 11-07-2010 at 07:10 PM.
 
Old 11-08-2010, 12:39 AM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The r8169 supports r8168, so it loaded the right one. Your problem could be just a bad connector or bad cable. Other issues could be your dhcp client that Ubuntu is using is not compatible with your DHCP server. In some cases the network scripts could be screwing up, so eth0 is down. To bring it up, use sudo or su to login as root and type the following.

ifconfig eth0 up

You should stop those network scripts and run like the following to force to get an IP address from the DHCP server.

dhcpcd -L eth0
 
Old 11-08-2010, 08:17 AM   #5
fotoryder
LQ Newbie
 
Registered: Jun 2010
Posts: 9

Original Poster
Rep: Reputation: 0
I think there's a problem with the autodetection of the onboard chip in Kubuntu 10.10. I booted a Linux Mint 8 live cd, and it automatically detected and started the Realtek RTL8111DL chip. This is using kernel 2.6.31-14-generic, and r8169.ko driver/module.

I've found a bug report about this issue and Ubunto 10.10, so I'll join that.

Thanks for your assistance.
 
Old 01-01-2011, 10:17 AM   #6
fotoryder
LQ Newbie
 
Registered: Jun 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Problem update

Just an update to this. I was unable to get this resolved until yesterday. I found another post about this problem that mentioned RealTek had an updated driver module (dated Nov. 15, 2010) that was working for him.

I downloaded and installed the updated driver, and also did a full cold boot (PC unplugged from power for several minutes), and the NIC began working, but wouldn't work after a normal reboot. I then removed Network Manager, since it prevented me from configuring the NIC as I wanted. Since removing Network Manager, the NIC has worked all day. I'm wondering if Network Manager is interfering with this chip's configuration. Maybe others will have better luck with this chip by removing the Network Manager, and manually configuring the interface.
 
  


Reply



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 NIC driver Aldoran768 Linux - Newbie 6 08-18-2009 09:12 AM
Install driver Realtek 8211B onboard NIC booberandpuzz Linux - Newbie 8 04-29-2008 02:55 PM
Need driver for Realtek Wireless Nic Dr_Zin Linux - Hardware 3 02-04-2008 11:41 PM
Realtek 8110 NIC driver Trollslayer Linux - Hardware 16 01-24-2008 09:02 PM
Realtek Gigabit NIC driver problem klennepette Linux - Networking 1 05-22-2006 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:01 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
Open Source Consulting | Domain Registration