logoalt Hacker News

Avamander • yesterday at 6:18 PM • 2 replies • view on HN

For the price and complexity of building a good Linux-based time server I'd heavily recommend looking at FPGA-based solutions instead. x86 platforms also have PCIe PTM and TGPIO options available[0], which are tad better than the common ARM equivalents and GPIO interrupts.

In general Pi-s are relatively bad for timekeeping. Not just the NIC (which can be replaced by hats with their own), there are also oscillator replacement mods[2] to work around this to some extent. Though all this still leaves many other sources of timekeeping error.

So if the goal is low-cost precise timekeeping, one can assemble something FPGA-based[2] for quite a bit less money, that can reach very low noise figures. You can spend the remaining money on the GNSS antenna and receiver instead.

I'm also sure a FPGA-based approach could be taken even further with some external timekeeping chips available and the FPGA could just do the NTP/PTP protocol stuff.

[0]: https://www.youtube.com/watch?v=zxK0_j2Ah2I [1]: https://raspberrypi.stackexchange.com/questions/74482/switch... [2]: https://fy.chalmers.se/~f96hajo/fakernet/board_Arty_A7-35-GP...


Replies

jeffbee • yesterday at 6:30 PM

Back when I thought this was true, I put together an x86 platform with PTM and a fancy NIC and it would hard-lock the bus to such an extent that I had to physically unplug it to recover. There are a lot of pieces required for a complete solution and I'd caution against a categorical statement like "x86 has PTM".

➕ show 1 reply
GJim • today at 9:19 AM

> You can spend the remaining money on the GNSS antenna and receiver instead.

And have yet _another_ GNSS dependent NTP server?

At least use a LW time signal for a change (assuming you can't aford your own rubidium clock)!