by X-Cubed on 4/11/24, 4:22 AM with 153 comments
by lifthrasiir on 4/11/24, 5:43 AM
WireGuard only requires a monotonic clock, because it periodically rotates keys to provide the forward secrecy. Peer clocks are otherwise not required to be synchronized [1]. I guess the clock had a higher rate than usual and it couldn't be corrected due to the lack of RTC?
[1] https://www.wireguard.com/papers/wireguard.pdf#page=7 "In fact, it does not even have to be an accurate timestamp; it simply must be a per-peer monotonically increasing 96-bit number."
by gorkish on 4/11/24, 5:13 PM
By the time you buy everything you need to make a Pi 5 even remotely usable and reliable today, you'll have spent as much as a small form factor PC. What do you need?
1. Special power supply - Yes, it's USB-C but it requires a high amperage 5V supply instead of accepting a higher voltage like most USB-C stuff
2. Active cooler - Pi 5 throttles immediately without it; it's not an optional component
3. NVMe Expansion HAT - Seriously why the fiddly little PCIe header? Put an NVMe slot on the bottom and let people adapt *that* connector
4. RTC Battery - At least put a damn capacitor on the board
5. Enclosure - I'm halfway expecting the pi foundation to print some dashed cut lines on the cardboard box so they can say it comes with a case =]
At the end of this you get a system that can run ... raspbianNot like the Pi Foundation couldn't have contributed to uboot or the upstream kernel or anything before thier hardware was released. Pretty much nothing released for "Raspberry Pi" runs on a Pi 5 at this point in time.
They better try to salvage something before putting out the expected CM5, but I'm not expecting much.
by mplaisier on 4/11/24, 7:14 AM
by zokier on 4/11/24, 7:32 AM
Previous discussion on similar thing: "Encrypted DNS + NTP = Deadlock" https://news.ycombinator.com/item?id=34177331
by riobard on 4/11/24, 6:44 AM
Background: I use an x86 box as home router. I've changed the configuration in the BIOS that it should automatically boot up on power. However if the BIOS battery is dead, the config will be lost and it will revert to default settings, which is not to boot on power.
But there is no way to know how much juice is left in the BIOS battery, thus there is no way to issue warnings that the battery should be replaced soon. If there is power loss AND the battery is dead, when the power comes back up again, the router will just stay off indefinitely until it's manually turned on.
That's when I realized why most consumer routers do not feature RTC nor do they require batteries.
by CaliforniaKarl on 4/11/24, 7:32 AM
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.
by lightswitch05 on 4/11/24, 10:50 AM
by shawabawa3 on 4/11/24, 9:44 AM
I only ever use USB storage on my pi's now and not had a single issue since
by cbhl on 4/11/24, 4:23 PM
For those of you who didn't read the fine article, I've quoted it here:
> As usual, this post is not a request for THE ONE to show up. If you are THE ONE, you don't make mistakes. We know. Shut up and go away.
by smashed on 4/11/24, 1:19 PM
Since clients will attempt to resolve ntp.org in order to actually sync their clock, there is a good probability that some clients will be way off.
Enabling dnssec on that zone was probably not without important drawbacks? I wonder if the operators thought about that potential pitfall. Seems like they might be doing a disservice to their core mission of allowing devices to sync their clock.
by raggi on 4/11/24, 6:35 PM
Roughtime would be far better, but essentially there's no broad deployment of it yet.
Ideally something good would be picked by Raspbian and delivered in the distro as standard.
by the__alchemist on 4/11/24, 2:20 PM
For a lot of micro-controller timing uses, they aren't required; for example, hardware timers based on the primary clock source, or the Cortex-M systick, but for maintaining accurate dates and times over long periods, the RTC is the right tool. It can also output the dates and times in a convenient format as well, as long as you find named register fields convenient!
by hcfman on 4/11/24, 8:35 AM
https://github.com/hcfman/sbts-aru
Problem solved.
by Joel_Mckay on 4/11/24, 7:15 AM
Local stratum 1 GPS time (even with PPS pin) servers based on Pi's can suffer similar issues when they lose satellite lock (weather etc.)
Have a great day =)
by benmmurphy on 4/11/24, 1:17 PM
by cjbillington on 4/11/24, 7:59 AM
systemctl enable systemd-time-wait-sync.service
mkdir -p /etc/systemd/system/wg-quick@wg0.service.d/
echo "[Unit]
After=time-sync.target
Wants=time-sync.target
" > /etc/systemd/system/wg-quick@wg0.service.d/override.conf
I'd be interested if anyone could let me know if they think this is likely to be achieving what I want or not.by wodenokoto on 4/11/24, 6:03 AM
by malivvan on 4/11/24, 1:08 PM
by silasdavis on 4/11/24, 8:18 AM
I guess I need requests to the NTP server to go over WAN directly. Always seemed like a hassle to get this to work with openwrt zones and stuff. My eternal gratitude to anyone who shoves me in the right direction...
by dclowd9901 on 4/11/24, 4:52 PM
It’s definitely served me well in a wide variety of disciplines.
by champtar on 4/11/24, 5:35 PM
by aimor on 4/11/24, 2:36 PM
Well, it was something related to using AdGuard's (94.140.14.14) DNS and pool.ntp.org. I added Google's (8.8.8.8) to resolv.conf temporarily to get the clock synced. But I'm still not sure what the root cause was.
by doubloon on 4/11/24, 12:30 PM
by jlubawy on 4/11/24, 6:30 AM
I could reflash the OS, but I also "don't have the time". I'll just use my laptop until I do have the time someday to resurrect it.
by cyounkins on 4/11/24, 8:06 PM
by the-kenny on 4/11/24, 12:24 PM
by koala_man on 4/11/24, 5:42 AM
by M95D on 4/11/24, 6:14 AM