Re: [chrony-dev] [RFC] Support for raw memory mapped clock sources

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Tue, Oct 21, 2025 at 16:09:40 +0200, Enguerrand de Ribaucourt wrote:
> On 10/21/25 15:58, Miroslav Lichvar wrote:
....
> > My suggestion would be 1, but use the SOCK refclock instead of SHM as
> > that is considered deprecated due to some security issues. I don't
> > like the idea of adding another driver like that.
>
> Thank you very much for your input, I'll follow the first approach then.

Another option would be to write a kernel module to expose the FPGA's
registers as a /dev/ptp device.  (I *think* it is possible to expose PTP
device without it being a NIC, but I'd have to check the code.)  Chrony and
other timekeeping related software already know how to use those.  Granted,
writing kernel code is way more effort than a simple mmio <-> SOCK refclock
user tool.

Jeff.

-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/