Realtek 8168 installs as an 8169 and the Laptop has no network connection

Bug #252307 reported by higginsdj
38
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

My Toshiba Satellite A300 Laptop has a Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit Ethernet NIC (NDIS 6.0). Installing Ubuntu 8.04.1 results in no network connection for the laptop. The Hardware Test, however, correctly identifies the Realtek RTL8168 BUT a driver for a Realtek 8169 is automatically installed instead. I do not have the skills to manually install the RTL8168 myself.

Tags: cft-2.6.27
Revision history for this message
nksharma2 (nishant-sharma) wrote :

Same problem still fighting........

Revision history for this message
nksharma2 (nishant-sharma) wrote :

Try this may be this work I have to implament this solution ASAP..........

https://bugs.launchpad.net/ubuntu/+bug/208012

Revision history for this message
higginsdj (higginsdj) wrote : Re: [Bug 252307] Re: Realtek 8168 installs as an 8169 and the Laptop has no network connection

I found a similar solution on another users forum and his script
worked perfectly. Unfortunately I cannot put my hand on the link at
the moment.....

Cheers

David

On 27/08/2008, at 6:43 PM, nksharma2 wrote:

> Try this may be this work I have to implament this solution
> ASAP..........
>
> https://bugs.launchpad.net/ubuntu/+bug/208012
>
> --
> Realtek 8168 installs as an 8169 and the Laptop has no network
> connection
> https://bugs.launchpad.net/bugs/252307
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “linux” source package in Ubuntu: New
>
> Bug description:
> My Toshiba Satellite A300 Laptop has a Realtek RTL8168C(P)/8111C(P)
> Family PCI-E Gigabit Ethernet NIC (NDIS 6.0). Installing Ubuntu
> 8.04.1 results in no network connection for the laptop. The
> Hardware Test, however, correctly identifies the Realtek RTL8168 BUT
> a driver for a Realtek 8169 is automatically installed instead. I
> do not have the skills to manually install the RTL8168 myself.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
higginsdj (higginsdj) wrote :

Hi Leann,

I am not terribly LINUX savvy and now that I have a working LINUX
system (based on a fix I found over the internet) I am hesitant to
change it lest I end up back at square 1. I have LINUX installed for
the sole purpose of running Blender.

Cheers

David

On 29/08/2008, at 10:34 AM, Leann Ogasawara wrote:

> The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for
> the
> upcoming Intrepid Ibex 8.10 release. As a result, the kernel team
> would
> appreciate it if you could please test this newer 2.6.27 Ubuntu
> kernel.
> There are one of two ways you should be able to test:
>
> 1) If you are comfortable installing packages on your own, the linux-
> image-2.6.27-* package is currently available for you to install and
> test.
>
> --or--
>
> 2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer
> 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4.
> Please watch http://www.ubuntu.com/testing for Alpha5 to be announced.
> You should then be able to test via a LiveCD.
>
> Please let us know immediately if this newer 2.6.27 kernel resolves
> the
> bug reported here or if the issue remains. More importantly, please
> open a new bug report for each new bug/regression introduced by the
> 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also,
> please
> specifically note if the issue does or does not appear in the 2.6.26
> kernel. Thanks again, we really appreicate your help and feedback.
>
> ** Tags added: cft-2.6.27
>
> --
> Realtek 8168 installs as an 8169 and the Laptop has no network
> connection
> https://bugs.launchpad.net/bugs/252307
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “linux” source package in Ubuntu: New
>
> Bug description:
> My Toshiba Satellite A300 Laptop has a Realtek RTL8168C(P)/8111C(P)
> Family PCI-E Gigabit Ethernet NIC (NDIS 6.0). Installing Ubuntu
> 8.04.1 results in no network connection for the laptop. The
> Hardware Test, however, correctly identifies the Realtek RTL8168 BUT
> a driver for a Realtek 8169 is automatically installed instead. I
> do not have the skills to manually install the RTL8168 myself.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi David,

That is completely reasonable to not want to break your existing working setup :) If and when you feel adventurous enough to test please let us know your results. Thanks.

Changed in linux:
status: New → Incomplete
Revision history for this message
UeB (moritz-nadler) wrote :

I do not know if this:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/221499
is a dublicate or not so I post here, too:

I have a HP Pavilion dv7-1001eg with a Realtek 8168

which does not work after a fresh install of Ubuntu 8.10 Alpha 5.

The wired lan device is recognised:
lspci
0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
ifconfig tells it is up:
eth0 Link encap:Ethernet Hardware Adresse 00:1e:ec:a4:b0:f3
          UP BROADCAST MULTICAST MTU:1500 Metrik:1
          RX packets:0 errors:0 dropped:251142602 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:218
but I cannot even ping any computer inside my LAN
ifup does not know eth0:

moritz@skynet:~/Desktop$ sudo ifup eth0
Ignoring unknown interface eth0=eth0.

dmsh says it is down:
moritz@skynet:~/Desktop$ dmesg /var/log | grep 816
[ 0.936816] pci 0000:00:07.0: PREFETCH window: 0x000000d1000000-0x000000d10fffff
[ 3.506633] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 3.506656] r8169 0000:0a:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 3.506694] r8169 0000:0a:00.0: setting latency timer to 64
[ 3.507036] eth0: RTL8168c/8111c at 0xf89d0000, 00:1e:ec:a4:b0:f3, XID 3c4000c0 IRQ 218
[ 14.604816] [<c0291d6d>] acpi_device_probe+0x47/0x89
[ 31.888741] r8169: eth0: link down

and calls it r8169 and r8168c instead of r8168B as lspci does.

lsmod says:
moritz@skynet:~/Desktop$ lsmod | grep r816
r8169 35972 0

Revision history for this message
UeB (moritz-nadler) wrote :

Problem solved with this guide:
https://bugs.launchpad.net/ubuntu/+bug/208012
(nksharma2 gave this link on this site already)

The Problem is a r8168 ethernet device is correctly found but the r8169 driver gets loaded, a driver that cannot handle the r8168 chip.

The solution is to download an install the linux driver from realtek for the r8168 chip and blacklist the r8169 driver that does not get loaded again.
Location of realtek driver:
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

From my point of somebody involved in the kernel developement made this mistake by loading the r8169 driver for the r8168 ethernet interface. Either by accident or by (wrongly) thinking the r8169 driver can handle the r8168 ethernet interface.

As I said in the post above the same error is present in ubuntu 8.04 AND 8.10, although a working GPL driver in available from Realtek (the one I have linked to).

It is interesting to mention that in the readme of the Realtek driver r8168 one can read:

<Quick install with proper kernel settings>
 Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed.
  # lsmod | grep r8169

 If it is installed, please remove it.
  # rmmod r8169

...(more instuctions)

So the people at Realtek seem to know that lots of linux users have problems because the wrong driver gets installed by default.

Revision history for this message
Patrick Schueller (pschuel) wrote :

I have the same problem with an ASUS X56T under Intrepid. However, the r8169 driver does *not* seem to be the cause:
- Substitution of r8169 with r8168 as listed above doesn't work, still no network
- Hardy 8.04 install from scratch still has network connection after all updates and reboot. But: lsmod shows r8169 module being loaded.
So: Is there another component of this bug or is this another bug?

Patrick

Revision history for this message
shawnlandden (shawnlandden) wrote :

Confirmed on ECS NFORCE9M-A motherboard (phenom) with latest intrepid kernels (x64 release candidate kernel, x86 most recent off synaptic)

Changed in linux:
status: Incomplete → Confirmed
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Please attach the output of 'sudo lspci -vvnn' .

Revision history for this message
shawnlandden (shawnlandden) wrote :

I was able to build the r8169 from realtek on an older vanilla but i cant build it anymore, for either the older or very recent one (less than 1 month):

~/data/sources/Linux_sources/r8168_scripts/r8168-8.008.00$ sudo modprobe r8168
FATAL: Error inserting r8168 (/lib/modules/2.6.28-2-light/kernel/drivers/net/r8168.ko): Invalid module format

:~/data/sources/Linux_sources/r8168_scripts/r8168-8.010.00$ sudo modprobe r8168
FATAL: Error inserting r8168 (/lib/modules/2.6.28-2-light/kernel/drivers/net/r8168.ko): Invalid module forma

/* i build twice, removed old, and instaled */

Revision history for this message
shawnlandden (shawnlandden) wrote :

thats really wierd the realtek shows as 8168B but it is a integrated so should be r8168C

Revision history for this message
Antonio Arauzo-Azofra (arauzo) wrote :

Similar problem occured with RTL8111 / 8168B.

If i plug the network cable it seemed to work. If I started the computer with the network cable attached, no network was working at all.

8169 driver got loaded instead of a proper driver for 8168. It gets fixed with solution given in bug #208012.

Bug #159417 is also similar to this one.

Revision history for this message
shawnlandden (shawnlandden) wrote :

I know this was fixed upstream, and it seems to be backported to the intrepid kernel. the problem was with the r8169 driver not correctly working with a r8168 as it was meant to. r8169 in kernel works with r8168

no idea about hardy

Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
Nicola (nicola-seidita) wrote :
Download full text (3.1 KiB)

Hi I had the same problem on My hp dv6. NIC is recognized but it doesn't work. I can connect to the net but I can't surf internet.
My lap is a 10.04 new installed with all package update at today.

My lap-data:
SYSTEM INFORMATION
 Running Ubuntu Linux, the Ubuntu 10.04 (lucid) release.
 GNOME: 2.30.2 (Ubuntu 2010-06-25)
 Kernel version: 2.6.32-24-generic (#41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010)
 GCC: 4.4.3 (x86_64-linux-gnu)
 Xorg: unknown (21 July 2010 01:03:39PM)
 Hostname: Carogna
 Uptime: 0 days 1 h 32 min

CPU INFORMATION
 GenuineIntel, Intel(R) Core(TM)2 Duo CPU P7450 @ 2.13GHz
 Number of CPUs: 2
 CPU clock currently at 2133.000 MHz with 3072 KB cache
 Numbering: family(6) model(23) stepping(10)
 Bogomips: 4256.02
 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm

MEMORY INFORMATION
 Total memory: 3932 MB
 Total swap: 0 MB

STORAGE INFORMATION
 SCSI device - scsi0
  Vendor: ATA
  Model: Hitachi HTS72323
 SCSI device - scsi1
  Vendor: hp
  Model: DVDRAM GT20L

HARDWARE INFORMATION
MOTHERBOARD
 Host bridge
  Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
  Subsystem: Hewlett-Packard Company Device 3628
 PCI bridge(s)
  Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
  Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
  Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
  Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
  Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
  Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
  Intel Corporation 82801 Mobile PCI Bridge (rev 93) (prog-if 01)
 USB controller(s)
  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
  Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20)
  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
  Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20)
 ISA bridge
  Intel Corporation ICH9M LPC Interface Controller (rev 03)
  Subsystem: Hewlett-Packard Company Device 3628

GRAPHIC CARD
 VGA controller
  ATI Technologies Inc M96 [Mobility Radeon HD 4650]
  Subsystem: Hewlett-Packard Company Device 3628

SOUND CARD
 Multimedia controller
  ATI Technologies Inc RV710/730
  Subsystem: Hewlett-Packard Company Device 3628

NETWORK
 Network controller
  Broadcom Corporation BCM4312 802.11b/g (rev 01)
  Subsystem: Hewlett-Packard Company Device 1508
 Ethernet controller
  Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
  Subsystem: Hewlett-Packard Company De...

Read more...

Revision history for this message
karl anliot (kanliot) wrote :

in my experience there is no way possible to get the 8168 to run in ubuntu 11.10 reliably. But it works ok with 12.04 kernels

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.