10robinho
Posts: 44
Joined: Thu Feb 28, 2013 7:42 pm

NFS boot with DHCP is slow?

Wed Nov 20, 2013 9:54 pm

As title says, I'm using NFS to boot RPI and I've set ip=dhcp in /boot/cmdline.txt.

In ~80 sec from boot I receive this messge:

Code: Select all

ip-config retrying forever (nfs root)
After ~2 minutes, it finally boots.

Any ideas why is that so? I've tried to check DHCP server that runs on my router, but nothing is strange there and other devices receive IP quite fast.

Thanks

User avatar
DougieLawson
Posts: 35798
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: NFS boot with DHCP is slow?

Wed Nov 20, 2013 10:06 pm

What distro? What firmware?

If Raspbian then try

Code: Select all

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install rpi-update && sudo rpi-update


My RPi used to hang mounting the NFS shares from my Zyxel NSA but with the latest (3.10) firmware and an up to date Raspbian I've not seen that hang on any recent re-boots.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

10robinho
Posts: 44
Joined: Thu Feb 28, 2013 7:42 pm

Re: NFS boot with DHCP is slow?

Wed Nov 20, 2013 10:11 pm

DougieLawson wrote: What distro? What firmware?
Sorry not to mention that, I'm using fresh updated Arch on my RPI.

10robinho
Posts: 44
Joined: Thu Feb 28, 2013 7:42 pm

Re: NFS boot with DHCP is slow?

Thu Dec 05, 2013 1:32 pm

Here is log from dmesg that could be interesting:

Code: Select all

[    2.356876] Sending DHCP requests ...... timed out!
[   78.077111] IP-Config: Retrying forever (NFS root)...
[   78.144148] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   79.847339] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[   78.156885] Sending DHCP requests ..., OK
[   88.896889] IP-Config: Got DHCP answer from 10.0.0.1, my address is 10.0.0.106
[   88.898042] IP-Config: Complete:
[   88.898082]      device=eth0, hwaddr=b8:27:eb:a7:c9:db, ipaddr=10.0.0.106, mask=255.255.255.0, gw=10.0.0.1
[   88.898098]      host=10.0.0.106, domain=, nis-domain=(none)
[   88.898112]      bootserver=0.0.0.0, rootserver=10.0.0.10, rootpath=
[   88.898125]      nameserver0=10.0.0.1
It shows gap from 2 sec - 78 sec when "Sending DHCP requests" was OK. I'm not why is that so, any ideas?

ccy
Posts: 21
Joined: Mon Sep 23, 2013 7:27 am

Re: NFS boot with DHCP is slow?

Thu Mar 26, 2015 9:10 am

I am facing the same problem with Arch. I suspect it is due to DHCP send request prior to USB devices. If I use raspbian image, I don't have this problem.

Did you finally solve your problem? Please share your solution here. Thanks.

10robinho
Posts: 44
Joined: Thu Feb 28, 2013 7:42 pm

Re: NFS boot with DHCP is slow?

Thu Mar 26, 2015 9:15 am

I've abandoned that Arch long time ago, but if I recall well, it was about network switch that caused delay in accepting rpi into netowork.

ccy
Posts: 21
Joined: Mon Sep 23, 2013 7:27 am

Re: NFS boot with DHCP is slow?

Sat Mar 28, 2015 11:21 pm

I found the solution. I think it is due to the kernel.img distributed by ArchLinuxArm doesn't work well with USB and DHCP. Replace the boot partition with files in https://github.com/raspberrypi/firmware ... aster/boot will solve the USB and DHCP problem.

Return to “Troubleshooting”