Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] Udev 200 : dhcpcd problem + solution
Date: Mon, 01 Apr 2013 01:54:24
Message-Id: 20130401015408.GA912@ca.inter.net
1 I've spent a lot of today trying to fix a glitch in starting 'dhcpcd'
2 after upgrading to udev-200 ; I outlined it in a msg to gentoo-dev .
3
4 When I tried to start my I/net connection, I got this :
5
6 root:501 ~> dhcpcd
7 dhcpcd[831]: version 5.6.7 starting
8 ... [delay]
9 ^C
10 ... [long delay]
11 dhcpcd[831]: no interfaces have a carrier
12 dhcpcd[831]: forked to background, child pid 857
13
14 So having killed it, I restarted & had no problem :
15
16 root:502 ~> dhcpcd
17 dhcpcd[866]: version 5.6.7 starting
18 dhcpcd[866]: enp5s0: sending IPv6 Router Solicitation
19 dhcpcd[866]: enp5s0: rebinding lease of 192.168.1.2
20 dhcpcd[866]: enp5s0: acknowledged 192.168.1.2 from 192.168.1.1
21 dhcpcd[866]: enp5s0: checking for 192.168.1.2
22 dhcpcd[866]: enp5s0: sending IPv6 Router Solicitation
23 dhcpcd[866]: enp5s0: leased 192.168.1.2 for 86400 seconds
24 dhcpcd[866]: forked to background, child pid 884
25
26 Looking at /var/log/syslog , I saw :
27
28 13:11:16 dhcpcd[831]: version 5.6.7 starting
29 13:12:16 klogd: r8169 0000:05:00.0: enp5s0: unable to load firmware patch rtl_nic/rtl8168e-3.fw (-2)
30 13:12:16 klogd: r8169 0000:05:00.0: enp5s0: link down
31 13:12:16 klogd: r8169 0000:05:00.0: enp5s0: link down
32 13:12:16 klogd: IPv6: ADDRCONF(NETDEV_UP): enp5s0: link is not ready
33 13:12:17 dhcpcd[831]: no interfaces have a carrier
34 13:12:17 dhcpcd[831]: forked to background, child pid 857
35 13:12:17 dhcpcd[857]: received SIGINT, stopping
36 13:12:17 dhcpcd[857]: enp5s0: removing interface
37 13:12:18 klogd: r8169 0000:05:00.0: enp5s0: link up
38 13:12:18 klogd: IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0: link becomes ready
39 13:12:34 dhcpcd[866]: version 5.6.7 starting
40 13:12:34 dhcpcd[866]: enp5s0: sending IPv6 Router Solicitation
41 13:12:34 dhcpcd[866]: enp5s0: rebinding lease of 192.168.1.2
42 13:12:34 dhcpcd[866]: enp5s0: acknowledged 192.168.1.2 from 192.168.1.1
43 13:12:34 dhcpcd[866]: enp5s0: checking for 192.168.1.2
44 13:12:38 dhcpcd[866]: enp5s0: sending IPv6 Router Solicitation
45 13:12:39 dhcpcd[866]: enp5s0: leased 192.168.1.2 for 86400 seconds
46 13:12:39 dhcpcd[866]: forked to background, child pid 884
47
48 It seems that the new set-up with the device name created by the kernel
49 requires the firmware to be built into the kernel.
50 This is not mentioned in the recent news item.
51
52 Google led to a Gentoo Forum thread which was unusually helpful (grin):
53
54 http://forums.gentoo.org/viewtopic-t-899002-start-0.html
55
56 This suggested the lines
57
58 CONFIG_PREVENT_FIRMWARE_BUILD=y [NB this is incorrect]
59 CONFIG_FIRMWARE_IN_KERNEL=y
60 CONFIG_EXTRA_FIRMWARE="rtl8168e-2.fw" [NB I needed '-3']
61 CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
62
63 I was using kernel 3.5.3 , so I updated to 3.8.5 & configured it :
64 I had to change the 1st line to 'n' -- mb a typo in the original msg --
65 & to change .config manually to add '/lib/' before 'firmware',
66 which 'make menuconfig' insisted on using without allowing editing.
67 The compile command is
68
69 make && make firmware_install && make modules_install
70
71 Once the kernel was compiled + installed & I had rebooted, I got :
72
73 root:501 ~> dhcpcd
74 dhcpcd[834]: version 5.6.7 starting
75 dhcpcd[834]: no interfaces have a carrier
76 dhcpcd[834]: forked to background, child pid 846
77
78 & despite the 2nd line of output, the connection had been established.
79
80 'syslog' now reads :
81
82 dhcpcd[834]: version 5.6.7 starting
83 klogd: r8169 0000:05:00.0 enp5s0: link down
84 klogd: IPv6: ADDRCONF(NETDEV_UP): enp5s0: link is not ready
85 klogd: r8169 0000:05:00.0 enp5s0: link down
86 dhcpcd[834]: no interfaces have a carrier
87 dhcpcd[834]: forked to background, child pid 846
88 dhcpcd[846]: enp5s0: waiting for carrier
89 dhcpcd[846]: sit0: unsupported interface type 308, falling back to ethernet
90 dhcpcd[846]: sit0: broadcasting for a lease
91 dhcpcd[846]: enp5s0: carrier acquired
92 klogd: r8169 0000:05:00.0 enp5s0: link up
93 klogd: IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0: link becomes ready
94 dhcpcd[846]: enp5s0: sending IPv6 Router Solicitation
95 dhcpcd[846]: enp5s0: sendmsg: Cannot assign requested address
96 dhcpcd[846]: enp5s0: rebinding lease of 192.168.1.2
97 dhcpcd[846]: enp5s0: acknowledged 192.168.1.2 from 192.168.1.1
98 dhcpcd[846]: enp5s0: checking for 192.168.1.2
99 dhcpcd[846]: enp5s0: sending IPv6 Router Solicitation
100 dhcpcd[846]: enp5s0: sending IPv6 Router Solicitation
101 dhcpcd[846]: enp5s0: leased 192.168.1.2 for 86400 seconds
102
103 I'm not sure what 'sit0' is, but it doesn't seem to affect the outcome.
104
105 HTH others who may face the same problem.
106
107 --
108 ========================,,============================================
109 SUPPORT ___________//___, Philip Webb
110 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
111 TRANSIT `-O----------O---' purslowatchassdotutorontodotca

Replies

Subject Author
Re: [gentoo-user] Udev 200 : dhcpcd problem + solution Mick <michaelkintzios@×××××.com>