When booting kernel 2.6.35-r1 with Intel ethernet driver e1000e compiled in, trying to start net.eth0 fails. dhcpcd waits for a carrier until timeout, although an ethernet cable is properly plugged in. If "ifconfig eth0 up" is issued beforehand, the interface starts up without problem. Hence i suspect a bug in baselayout, although the same baselayout works well with 2.6.24-r5. net.eth0 is excluded from auto start in /etc/conf.d/rc: RC_PLUG_SERVICES="!net.eth*" Reproducible: Always Steps to Reproduce: 1. Boot gentoo kernel 2.6.35-r1 2. /etc/init.d/net.eth0 start 3. Actual Results: dhcpcd waiting for carrier until timeout Expected Results: dhcpcd receiving lease
Please post your `emerge --info net-misc/dhcpcd' too.
# emerge --info dhcpcd Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r5 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-1.12.13 Timestamp of tree: Mon, 16 Aug 2010 07:30:01 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -fno-strict-aliasing -march=core2 -mcx16 -mpopcnt -msahf -msse4 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -fno-strict-aliasing -march=core2 -mcx16 -mpopcnt -msahf -msse4 -pipe" DISTDIR="/scratch/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de de_DE en en_US en_GB" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr emacs emboss encode exif expat fam ffmpeg firefox flac fontconfig fortran gd gdbm gif gimp gmp gnome gnome-keyring gnutls graphviz gs gstreamer gtk hal iconv icu ithreads java jpeg jpeg2k lcms libgcrypt libnotify libproxy log4j lzma mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses netpbm nls nptl nptlonly nsplugin ntp ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt4 raw readline reflection sdl session smp sndfile spell spl sse sse2 ssl startup-notification svg sysfs system-sqlite tcpd threads tiff truetype unicode usb v4l v4l2 vim-syntax vorbis wifi x264 xcb xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE en en_US en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ================================================================= Package Settings ================================================================= net-misc/dhcpcd-4.0.15 was built with the following: USE="(multilib) zeroconf -compat" CFLAGS="-O2 -fno-strict-aliasing -march=core2 -msse4.1 -pipe" CXXFLAGS="-O2 -fno-strict-aliasing -march=core2 -msse4.1 -pipe" LDFLAGS="-Wl,-O1"
I have a similar problem, although my setup is somewhat different. e1000e is a module and loaded when the dhcpcd timeout occurs. The problem occurs with sys-kernel/tuxonice-sources-2.6.35 but not with sys-kernel/tuxonice-sources-2.6.34-r1. $ emerge --info dhcpcd Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-tuxonice x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.35-tuxonice-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 26 Aug 2010 07:45:01 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.2 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula AdobeFlash-10.1 AdobeFlash-10" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-j3 --load-average=4" FEATURES="assume-digests distlocks fixpackages news noinfo parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://de-mirror.org/distro/gentoo ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.ISO-8859-1" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en de pl es" MAKEOPTS="-s -j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/root/overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bzip2 cairo cddb cdr cli cracklib crypt cups cxx dbus dell dga dri dvd dvdr dvipdfm encode exif fat fbcondecor fbsplash ffmpeg firefox flac fontconfig fortran gd gdbm gif gimpprint gnome gnome-keyring gnuplot gnutls gpm gtk hal hddtemp iconv ipv6 jfs jpeg jpeg2k laptop latex3 lcms libedit libnotify loop-aes mad mmx modules mozbranding mp3 mpeg mplayer mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin ntfs nvidia ogg onlyalpine opengl openmp pam passfile pcre pdf perl png pni policykit pppd python readline reflection sasl sdl secure-delete session smp spell spl sqlite sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 svg sysfs system-sqlite tcl tcpd theora threads tiff tk truetype unicode v4l v4l2 vim-pager vim-syntax vim-with-x vorbis wifi x264 xine xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de pl es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= net-misc/dhcpcd-4.0.15 was built with the following: USE="compat (multilib) zeroconf" LDFLAGS="-Wl,-O1"
Searching the web I found <http://www.linuxquestions.org/questions/slackware-14/e1000e-eth0-nic-and-kernel-2-6-35-3-under-slackware64-827741/#post4074177> which points to a dhcpcd patch/update (http://roy.marples.name/archives/dhcpcd-discuss/2010/0218.html) that might fix the problem. I then actually updated to net-misc/dhcpcd-5.2.7 (using ~amd64) and I think this has fixed the problem such that in the first try I immediately got an IP (but I need to do further testing; and this apparently doesn't work with baselayout-1, see bug 334783 and bug 312385).
Absolutely the same story for me after upgrading the kernel to 2.6.35-r4. If I boot with the previous kernel (2.6.34), everything starts to work smoothly. So, the only difference is the kernel. Reproducability: 100% Hardware: HP EliteBook 8530w. It looks like this mail thread discusses this issue: http://www.spinics.net/lists/netdev/msg135481.html I recommend to move this bug to the core based on the reasons above.
The same problem for me. HW: 00:19.0 Ethernet controller: Intel Corporation 82566DC Gigabit Network Connection (rev 02) The issue is reproducible both with dhcpcd 4.0.15 and 5.2.7 versions.
Similar symptoms on an Intel EM64T processor system in 32 bit mode. Intel 82566DC ethernet controller. kernel 2.6.35-gentoo-r4 fails to have any network connectivity. Kernel 2.6.27-gentoo-r8 works fine. I have static IP address set. /etc/init.d/net.eth0 start appears to run normally, but mounting nfs filesystems fails later in the boot process. ping 192.168.0.3 works (self) ping 192.168.0.1 fails no route to host (router) Ping of anything else fails also. I tried emerging dhcpcd and using that. Got the same symptom reported above times out waiting for carrier. Tried recompiling kerenl with ethernet drivers built a modules instead of compiled in. This had no effect.
(In reply to comment #7) > Similar symptoms on an Intel EM64T processor system in 32 bit mode. Intel > 82566DC ethernet controller. > kernel 2.6.35-gentoo-r4 fails to have any network connectivity. Kernel > 2.6.27-gentoo-r8 works fine. > I have static IP address set. /etc/init.d/net.eth0 start appears to run > normally, but mounting nfs filesystems fails later in the boot process. > ping 192.168.0.3 works (self) > ping 192.168.0.1 fails no route to host (router) > Ping of anything else fails also. > > I tried emerging dhcpcd and using that. Got the same symptom reported above > times out waiting for carrier. > > Tried recompiling kerenl with ethernet drivers built a modules instead of > compiled in. This had no effect. > Did you use latest dhcpcd (>=5.2.7) as described in https://bugzilla.kernel.org/show_bug.cgi?id=16187
(In reply to comment #8) > (In reply to comment #7) > > Similar symptoms on an Intel EM64T processor system in 32 bit mode. Intel > > 82566DC ethernet controller. > > kernel 2.6.35-gentoo-r4 fails to have any network connectivity. Kernel > > 2.6.27-gentoo-r8 works fine. > > I have static IP address set. /etc/init.d/net.eth0 start appears to run > > normally, but mounting nfs filesystems fails later in the boot process. > > ping 192.168.0.3 works (self) > > ping 192.168.0.1 fails no route to host (router) > > Ping of anything else fails also. > > > > I tried emerging dhcpcd and using that. Got the same symptom reported above > > times out waiting for carrier. > > > > Tried recompiling kerenl with ethernet drivers built a modules instead of > > compiled in. This had no effect. > > > > Did you use latest dhcpcd (>=5.2.7) as described in > https://bugzilla.kernel.org/show_bug.cgi?id=16187 > I have now tried various combinations of kernels, dhcpcds, and static IP assignment. In summary: Kernel 2.6.34-gentoo-r1 Static IP works as expected dhcpcd-4.0.15 works as expected dhcpcd-5.2.7 works as expected Kernel 2.6.35-gentoor-r4 Static ip works very intermittently dhcpcd-4.0.14 fails with time out after "waiting for carrier" message dhcpcd-5.2.7 apparently fails to contact server and assigns an (arbitrary?) IP address of 169.254.54.96/16. If it is useful I can attach extracts of kernel logs, kernel config files, emerge info, hardware info. By stic IP working intermittently I mean that on some occasions after the boot sequence finished (including my nfs mounts timing out) I would be able to get some response to pinging my router/dhcp server. A very abnormal response: after several seconds delay a response line indicating a 0.25ms trip time, another few seconds delay another 0.25ms trip time, a series of time out messages followed by a series of "no route to host" messages. WHewn I killed ping after a minute or so the summary stats said 8 packets sent, 2 received. dhcpcd may have bugs, but I think the problem I am seeing is at a lower level. A driver bug of some kind.
(In reply to comment #9) > dhcpcd may have bugs, but I think the problem I am seeing is at a lower level. > A driver bug of some kind. Looks like it is a driver bug: http://www.spinics.net/lists/netdev/msg134330.html Or at least, everything stopped to work after this commit: "e1000e: Fix/cleanup PHY reset code for ICHx/PCHx" e98cac447cc1cc418dff1d610a5c79c4f2bdec7f.
(In reply to comment #9) > (In reply to comment #8) > > (In reply to comment #7) > > > Similar symptoms on an Intel EM64T processor system in 32 bit mode. Intel > > > 82566DC ethernet controller. > > > kernel 2.6.35-gentoo-r4 fails to have any network connectivity. Kernel > > > 2.6.27-gentoo-r8 works fine. > > > I have static IP address set. /etc/init.d/net.eth0 start appears to run > > > normally, but mounting nfs filesystems fails later in the boot process. > > > ping 192.168.0.3 works (self) > > > ping 192.168.0.1 fails no route to host (router) > > > Ping of anything else fails also. > > > > > > I tried emerging dhcpcd and using that. Got the same symptom reported above > > > times out waiting for carrier. > > > > > > Tried recompiling kerenl with ethernet drivers built a modules instead of > > > compiled in. This had no effect. > > > > > > > Did you use latest dhcpcd (>=5.2.7) as described in > > https://bugzilla.kernel.org/show_bug.cgi?id=16187 > > > > I have now tried various combinations of kernels, dhcpcds, and static IP > assignment. In summary: > Kernel 2.6.34-gentoo-r1 > Static IP works as expected > dhcpcd-4.0.15 works as expected > dhcpcd-5.2.7 works as expected > > Kernel 2.6.35-gentoor-r4 > Static ip works very intermittently > dhcpcd-4.0.14 fails with time out after "waiting for carrier" message > dhcpcd-5.2.7 apparently fails to contact server and assigns an > (arbitrary?) IP address of 169.254.54.96/16. > > If it is useful I can attach extracts of kernel logs, kernel config files, > emerge info, hardware info. > > By stic IP working intermittently I mean that on some occasions after the boot > sequence finished (including my nfs mounts timing out) I would be able to get > some response to pinging my router/dhcp server. A very abnormal response: > after several seconds delay a response line indicating a 0.25ms trip time, > another few seconds delay another 0.25ms trip time, a series of time out > messages followed by a series of "no route to host" messages. WHewn I killed > ping after a minute or so the summary stats said 8 packets sent, 2 received. > > dhcpcd may have bugs, but I think the problem I am seeing is at a lower level. > A driver bug of some kind. > Try the following: Kernel 2.6.35-gentoo-r4 dhcpcd-5.2.7 1. emerge netplug or ifplugd Netplug/Ifplugd detects whether a carrier is available and backgrounds the process. Example: I have a modular kernel with my Wired Ethernet Driver (NEC) and my Wireless Driver (bcm43xx) I use wireless and never plug in an ethernet cable, I don't want to wait for a timeout so I let netplug decide if the ethernet is plunged in. To do this the driver must be probed, which will in a sense wake it up. See also Comment #14 in Bug 331415, which leads to 2. 2. Disable/Remove the nontp in your /etc/conf.d/net
The fact that it works in 2.6.34 flawless and then almost never in 2.6.35 should be your indicator that the problem is in the kernel. Not with baselayout or dhcpcd. Upgrade to 2.6.36-rc4 to test, or at least apply the manual patch from later in the netdev thread.
Upstream kernel issue.
This is still an issue in kernel version 2.6.36-r5.
I think this should work with a 2.6.37 kernel. Can someone try the latest 2.6.37 and report back? Thank you.
(In reply to comment #15) > I think this should work with a 2.6.37 kernel. Can someone try the latest > 2.6.37 and report back? > > Thank you. > Looks like there are several issues, because on my PC it was fixed in 2.6.36 (using 2.6.36-gentoo-r5 since it was stabilized).
Kernel 2.6.36-gentoo-r5 has been working for me since it was stabilized. I am using static ip address assignment, etc. not dhcpd. The ethernet driver issues seem to be resolved in this kernel.
For me: 2.6.34-r12 work with dhcpcd-4.0.15, but not 5.2.9 2.6.36-r5 does not work with either. 2.6.36-r5 w/ 4.0.15 times out waiting for a carrier. 2.6.36-r5 w/ 5.2.9 times out waiting for a lease.