On 20-1-2013 18:31, Charles Steinkuehler wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 1/19/2013 8:57 AM, Charles Steinkuehler wrote: >> I've setup Michael Haberler's network booting of my BeagleBone, and >> I seem to be having the same network crashing on DHCP lease >> renewal issue others have seen. >> >> Has anyone identified and resolved the issue, or just worked around >> it? > Update: > Given the way the system behaved, I suspected an issue with dhcp lease > renewal, which appears to be the case. > > I created a new SD card with Michael's TFTP/NFS boot partition, but > with the rootfs on a second partition (unused by default). > > Once the system network booted, I logged in via ssh and started a > simple while loop (running 'uptime' every 5 seconds). In the > USB/serial console, I mounted the SD card rootfs and chrooted to it. > > After a bit more than 4 minutes, the network went down, taking my ssh > console with it. The chroot was still alive, and showed that eth0 no > longer had an IP address. Manually assigning an IP address to eth0 > restored full functionality, even the ssh terminal came back alive, > although it 'skipped' several of the 5-second intervals when it was > blocked waiting for the network. > > I suspect this may be an Ubuntu issue, but regardless it does not > appear to be a fundamental problem with the ARM kernel or the 'Bone. > > I have not yet tried to debug the lease renewal problem. First I'll > probably see if a Debian install behaves the same way. If so, I'll > likely try to get to the bottom of the problem. If not, I'll chalk it > up to those wacky Ubuntu folks, and go back to Debian (or work-around > the issue by running off the SD card if I need to stick with Ubuntu).
Could everyone who's experiencing the lockup / freeze / hang try the following workaround: The Ubuntu filesystem has a ntpdate file in /etc/network/if-up.d. Move this file (temporarily) to another place and reboot the system. This should solve the lockup. The system is now running with the wrong RTC setting, but dhcp is acting properly. (At least at my place!) Theory: The bone is booting without correct RTC setting, so the time is in the past 1970, 2000 or something like that. This can be found in the /var/lib/dhcp/*leases* file. After the lease is acquired, the RTC is set properly. And making a big step forwards. Halfway during the lease duration, the dhcp client wants to renew, but it gets confused by the timestamps in the leases file. Then it drops the connection completely, or whatever happens, this results in the hang /freeze / lockup if booted with a NFS root filesystem. This is not the definite solution of course, but if confirmed we can work on a better fix (and don't forget to put the ntpdate file back where it was). -- Bas > - -- > Charles Steinkuehler > [email protected] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (MingW32) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlD8Ke8ACgkQLywbqEHdNFxGUQCgvGKKGj1xtC1Hjie3qIJZ84ZN > z/QAoL0w/m5vLXnLVxDOGSFQDnDeUEpe > =4aNT > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_123012 > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
