Tangential: I have a pi 4 running openwrt and a wireguard interface that is routed over the WiFi access point. If you connect to this network it's as if you are connecting in another country. I have outbound traffic only going over wireguard. If wireguard is down then no internet (to avoid any leakage). However if pi loses power the clock resets, wireguard can't handshake with that much clock skew, NTP can't connect…
Going in circles without a real-time clock
61–70 of 157 posts
Re: Going in circles without a real-time clock
#62Earlier quoted context omitted.
and you certaintly get what you pay for, DS3231s fry almost as easily as MAX3232s, (And you can do the same thing were you write the time to the RTC before you have the correct time)
I have used these in product designs before with zero failures. Where exactly did you buy your samples? We found they drift less than 28s a year in standalone mode. Also, were repeatable within +-18ms when using a NTP client. Microchip RTCs are harder to setup, but also seem to work just as well (ignoring the goofy epoch). Chip shortage caused people to do unspeakable things.... ;-)
Re: Going in circles without a real-time clock
#63tl;dr: machine is unable synchronize its clock because it won't trust the NTP server's DNSSEC certificate because its clock isn't synchronized. Oof.
Re: Going in circles without a real-time clock
#64I had this happen before. I used it as an excuse to learn how to setup NTP with a GPS receiver. I made a little blog on it if anyone is interested in the results. Be sure to click the sandwich menu for some real-time data: https://www.developerdan.com/ntp/
Anyway, I solved these problems with sbts-aru, but maybe it's interesting for you to test if you haven't already done this.
Re: Going in circles without a real-time clock
#65I know I’ve brought this up before, but I can’t remember exactly where. It would be nice if DHCP could provide the current time as one of the pieces of information it provides with a lease. If you’re already trusting it for your IP address, you might as well trust it with the current UTC time: The current 64-bit timestamp would be enough to get timestamp-sensitive things working.
DHCP can provide the IP address of one or more NTP servers to consult for time queries. I use this feature so that all of the machines on my LAN (at least the ones that can be configured to ask for and/or use this information) have the same general idea of what time it is.
[0] See subsection 8.3 here: https://www.rfc-editor.org/rfc/rfc2132#section-8>
Re: Going in circles without a real-time clock
#66Earlier quoted context omitted.
> But there is no way to know how much juice is left in the BIOS battery, True, but its voltage can be used as an estimate. Most PC MB still around monitor the supply voltages, some also of the battery feeding the RTC. If you have the (Debian) package 'lm-sensors' installed, look for sensors[ ]: Vbat: +2.91 V (min = +2.70 V, max = +3.63 V) ALARM in /var/log/syslog.
Ran `sensors` and it only shows CPU core temps. I guess my MB does not report RTC battery voltage?
https://hwmon.wiki.kernel.org/lm_sensors also has a FAQ.
Re: Going in circles without a real-time clock
#67Re: Going in circles without a real-time clock
#68Note that the Pi 5 has a real time clock - you just need to add a small battery and it will keep the time when powered off: https://picockpit.com/raspberry-pi/raspberry-pi-5-has-a-real...
Re: Going in circles without a real-time clock
#69Re: Going in circles without a real-time clock
#70Install sbts-aru as a base system and it will keep your Pi accuracy to sub-microsecond error. https://github.com/hcfman/sbts-aru Problem solved.
IF you get a DCF77 (stratum 0) signal, there are receivers for Pi below 10€.