Hi all; a bit of a chicken-and-egg conundrum here when booting up a raspberry pi, unless there's something I've badly misunderstood.
The pi doesn't have an internal clock, so is absolutely reliant on getting time off the network when it boots. ntpdate should do that (I think by extracting a server name from the ntp config file and synching to that). But that means resolving the name, and if the clock is far enough wrong, dns lookups seem to fail. So the system can't do the lookup to synch the clock to..........
I think I'm going to have to put in an explicit IP address into ntp.conf, but that's not particularly robust for the long term.
Anyone else solved this? Or am I missing something obvious?
A number of related issues too:
o should /etc/wall_cmos_clock exist or not for a system with no rtc? It is present (today), so presumably to do with:-
o The system also seems to have a knack of changing TZ between boots; after (as I thought) correcting this yesterday with tzsetup, I had a bunch of complaints overnight: "adjkerntz 5763 - - sysctl(set: "machdep.wall_cmos_clock"): Operation not permitted"
o presumably jailed systems rely on the host time; yet they seem to have their own TZ which needs setting. Correct?
o I did wonder about using a gps dongle to set the time: but gpsd seems not to work on the rpi :-{ Anyone fixed this yet?
Thanks.