DHCP fails at boot, works with dhcpcd from serial terminal

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

DHCP fails at boot, works with dhcpcd from serial terminal

Postby radengr » Tue Feb 28, 2012 4:28 am

I have a Dockstar that I am trying to get set up as a CUPS printer server. Right now it has a stock archlinuxarm install after following the instructions on this site.

I can only connect to it on the network once every 6 boots or so. So I popped it open and hooked up a ttl level serial cable and I think I have tracked down the issue. While booting it takes a while at the "starting network" before continuing; but it does not seem to get an ip address (mac redacted):

$this->bbcode_second_pass_code('', 'eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet6 fe80::210:75ff:fe1a:7ba prefixlen 64 scopeid 0x20<link>
ether 00:10:75:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 15 bytes 1388 (1.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7 bytes 860 (860.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 11

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 metric 1
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 4 bytes 260 (260.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 260 (260.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
')

I can either set an ip via the serial console or use dhcpd and get an ip right away (and of course connect from the network again):

$this->bbcode_second_pass_code('', '
[root@alarm ~]# dhcpcd eth0
dhcpcd[341]: version 5.2.12 starting
dhcpcd[341]: eth0: broadcasting for a lease
dhcpcd[341]: eth0: offered 192.168.1.228 from 192.168.1.1
dhcpcd[341]: eth0: acknowledged 192.168.1.228 from 192.168.1.1
dhcpcd[341]: eth0: checking for 192.168.1.228
dhcpcd[341]: eth0: leased 192.168.1.228 for 43200 seconds
dhcpcd[341]: forked to background, child pid 362
[root@alarm ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.1.228 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::210:75ff:fe1a:7ba prefixlen 64 scopeid 0x20<link>
ether 00:10:75:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 32 bytes 3188 (3.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15 bytes 1908 (1.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 11

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 metric 1
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 4 bytes 260 (260.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 260 (260.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0')

Did I do something dumb? And more importantly... what can I do to fix this? I don't want to have to use the serial console to set up the network every time I boot (also, I would like to put the thing back together before I lose the top!)

EDIT: Changed topic to be a little more informative and fixed a couple of typos.
radengr
 
Posts: 22
Joined: Sun Aug 07, 2011 2:08 am

Re: DHCP fails at boot, works with dhcpcd from serial termin

Postby radengr » Wed Feb 29, 2012 2:44 am

I'm not sure if this is the right way to fix this, but it seems to be working?

I edited "/etc/conf.d/dhcpcd" and changed:

$this->bbcode_second_pass_code('', 'DHCPCD_ARGS="-q"')
to:

$this->bbcode_second_pass_code('', 'DHCPCD_ARGS="-q -t 120"')
I've been rebooting and so far I have an IP everytime. I just hope that it keeps working once I put it back togeather :?
radengr
 
Posts: 22
Joined: Sun Aug 07, 2011 2:08 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests