Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237089 - No internet using r8169 module (RTL8111/8168B) using kernel > 2.6.19
Summary: No internet using r8169 module (RTL8111/8168B) using kernel > 2.6.19
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 19:06 UTC by Maarten Lambrecht
Modified: 2009-07-04 13:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Lambrecht 2008-09-08 19:06:14 UTC
- When booting the 2007.0 install cd I get a working internet connection. (2.6.19 kernel)
- When booting the 2008.0-r1 install cd I get no internet connection.
- When using the 2.6.25-r7 and the 2.6.23 kernel I get a dhcpcd timeout during boot.

* ifconfig shows eth0 and lo. There are a lot of drops.
* I can't ping my router.
* The dhcp client doesn't recieve any information from my router.
* The symptoms are the same like unplugging the network cable.

It has nothing to do with wake-on-lan from windows because it happens only with the newer kernels and not with the 2007 livecd. The NIC isn't broken because I can use it on vista.

I think this problem is related to the > 2.6.19 kernels.

Using Gentoo-sources  |  module loaded: r8169
NIC: onboard RTL8111/8168B
Motherboard used: GigaByte GA-EP45-DS3L

Reproducible: Always

Steps to Reproduce:
1. Boot the 2008.0 install cd with the RTL8111/8168B NIC
2. Boot your system using the latest kernel with the RTL8111/8168B NIC

Actual Results:  
Trying dhclient or pump didn't get it to work neither.

I tryed to compile the kernel manually and I tryed genkernel.=> Same problem

Expected Results:  
Receive the dhcp information from the router. Get a working internet connection.

see in this topic:
http://forums.gentoo.org/viewtopic-p-5207392.html
Comment 1 Nicola 2008-12-03 18:09:02 UTC
Hi, this issue coming up from r8169 vanilla kernel module.
Realtek has released its own driver called "r8168" for this chipset, it works great also on heavy workloads.
Anyway, I'm still using r8169 kernel module and it's working well on 2.6.26-gentoo-r3 x86_64 hardened. I'm still viewing dropped frame on ifconfig but maybe it's a "fake".
For installing gentoo with this chipset I had to boot with 2008.0r1 iso image which works same as above.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-12-03 18:26:42 UTC
I've been told that there were some major bugs fixed with the r8169 driver in 2.6.27. I've been testing a custom installcd with 2.6.27-gentoo-r2, and the r8169 on my intel atom board works just fine.

However, there does seem to be an issue with getting an IP from DHCP on boot, but just running 'dhcpcd eth0' by hand gets an IP address quickly.
Comment 3 Axel Dyks 2008-12-04 12:09:07 UTC
(In reply to comment #0)
> see in this topic:
> http://forums.gentoo.org/viewtopic-p-5207392.html

Hmm, does is work when manually setting an IP address?

  ifconfig eth0 192.168.123.116 netmask 255.255.255.0 broadcast 192.168.123.255
  ping 192.168.123.254
Comment 4 Nicola 2008-12-04 12:38:53 UTC
(In reply to comment #3)
> (In reply to comment #0)
> > see in this topic:
> > http://forums.gentoo.org/viewtopic-p-5207392.html
> 
> Hmm, does is work when manually setting an IP address?
> 
>   ifconfig eth0 192.168.123.116 netmask 255.255.255.0 broadcast 192.168.123.255
>   ping 192.168.123.254
> 
yep, it works.
Comment 5 Axel Dyks 2008-12-04 13:03:48 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #0)
> > > see in this topic:
> > > http://forums.gentoo.org/viewtopic-p-5207392.html
> > 
> > Hmm, does is work when manually setting an IP address?
> > 
> >   ifconfig eth0 192.168.123.116 netmask 255.255.255.0 broadcast 192.168.123.255
> >   ping 192.168.123.254
> > 
> yep, it works.
Hmm, actually I was asking the original reporter ... but maybe it's
just a different email address. :-)

Anyway, I remember problems with newer versions of "dhcpcd" and some routers.
Could you try the folloging option in "/etc/conf.d/net"

  dhcpcd_eth0="-I ''"

and then run

  /etc/init.d/net.eth0 restart
Comment 6 Alfredo Soro 2009-03-01 12:51:20 UTC
(In reply to comment #5)


> Anyway, I remember problems with newer versions of "dhcpcd" and some routers.
> Could you try the folloging option in "/etc/conf.d/net"
> 
>   dhcpcd_eth0="-I ''"
> 


I had similar problem and I've solved it adding that line to /etc/conf.d/net
DHCP networking works for me, again. Thanks.
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2009-03-01 15:56:12 UTC
Can someone try out one of the newer autobuild installcds? You can find them on your favorite mirror under /releases/<arch>/autobuilds/
Comment 8 Alfredo Soro 2009-03-02 14:47:20 UTC
(In reply to comment #6)
> (In reply to comment #5)
> 
> 
> > Anyway, I remember problems with newer versions of "dhcpcd" and some routers.
> > Could you try the folloging option in "/etc/conf.d/net"
> > 
> >   dhcpcd_eth0="-I ''"
> > 
> 
> 
> I had similar problem and I've solved it adding that line to /etc/conf.d/net
> DHCP networking works for me, again. Thanks.
> 

I need to contradict my previous message. Sorry.
My problem was precisely the "Wake-On-Lan" one.

It was purely by chance that my network goes active before. I tested again and it didn't worked.

I have gigabyte motherboard (ga-g33m-ds2r) and my problem was due to windows dual-booting.

NIC is powered off at windows shutdown, and r8169 driver (2.6.28-gentoo-r1... r2) is unable to restart it.

The only workaround I found was to go Windows, and change Wake-On-Lan porperties of Network card to be always enabled. I hope that this could still working.
Comment 9 Peter Wouda 2009-04-12 16:18:19 UTC
To the original poster: Had the same problem with a Sony Vaio laptop. The latest build gave me the hint to try a boot using 'irqpoll' option, which resolved the problem for me. This works both with the 2008.0 version as well as the latest nightly build.
Comment 10 Walter 2009-04-19 09:30:32 UTC
Same problem with Compaq (HP) Presario CQ35.

Trying to network boot since this hardware ALSO has problems with its DVD/CD drive.

irqpoll didn't help, kernel is 2.6.27 gentoo-sources r10
Comment 11 Walter 2009-04-19 09:50:29 UTC
I've also tried booting to the preloaded Vista and explicitly enabling 'enable wake on LAN' for the interface, as this was suggested to ensure the chipset is not in some weird sleep mode the Linux driver can't wake it from.

I have downloaded realtek's driver which is apparently set up to compile as a module - but i need it in the kernel image as I'm booting via network.  I know nothing about kernel module vs. internal code differences, so I'm trying recompiling just by overwriting the drivers/net/r8169.c with the realtek driver's r8169_n.c (and copying in the accompanying .h file).

If that fails, I'm also downloading the latest autobuild from http://gentoo.arcticnetwork.ca/releases/x86/autobuilds/20090415/install-x86-minimal-20090415.iso .. hopefully one of these will work, I'll post the results.

Re: CD issues (not to hijack the thread, just FYI!), newer 2008.0 doesn't boot at all, and 2007.0 boots but fails to find root device, saying /dev/sdb has no media (though it does, dmesg shows its detection as a SCSI removable disk, and the drive works in pre-installed Vista)
Comment 12 Walter 2009-04-19 10:31:14 UTC
Overwriting the kernel driver with the realtek one seems it might work.  I'm still testing ... the kernel compiles with some warnings on that module, the system boots a bit further, and there was no more 'r8169: link down' message.  (Instead I received an NFS error at boot.)  Will post with an update when I figure out what's going on (could be my NFS config).

I also tried the latest x86 autobuild from the URL above, it has the same issue as 2008.0, which is to say that it completely fails to generate any output, and BIOS falls back to the next boot device.

Idea: It would be nice if the gentoo team could issue a new major release with this issue fixed, since the hardware is obviously very common now (judging by the number of people CC'd on the bug).
Comment 13 Walter 2009-04-19 10:52:56 UTC
OK, so after some debugging, overwriting with the realtek driver and attempting to compile in to the kernel still didn't work.  The initial DHCP/TFTP from PXE works fine, but once Linux has loaded, the kernel output includes "IP-Config: No network devices available." and subsequently the system outputs NFS errors for my attempted network boot.  Pinging the DHCP-assigned IP fails right throughout the boot process.

I'm running out of solutions to this one.  Unfortunately the DVD drive is broken (which is why I'm attempting diskless install), and I can't do a normal USB boot since I don't have a USB key handy, so it looks like I'll have to case up a hard drive and try that for a boot device - hopefully this machine's crappy BIOS will support it.  Maybe compiling the realtek driver as a module once the system's built will resolve the issue, at least for me.

What a pain.
Comment 14 Walter 2009-04-20 03:25:05 UTC
Works with latest ubuntu livecd 9.04 amd64.  Both RTL8111 and broadcom wireless work fine (also: DVD boots fine).

Kernel on that is 2.6.28-11-generic #41-Ubuntu SMP

I used that to install gentoo.
Comment 15 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-03 17:17:52 UTC
This driver works much better in newer kernel versions. The later installcd autobuilds should work just fine.
Comment 16 Maarten Lambrecht 2009-07-04 13:58:58 UTC
Using the Gentoo-2009 install cd Internet worked just fine. Maybe the new kernel did the trick.