| Re: [chrony-dev] [RFC] Support for raw memory mapped clock sources |
[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]
Current prevailing method: use an OS-based driver interface.
Chrony is designed to obtain timestamps and PPS data through standard kernel interfaces (e.g., Linux PHC via clock_gettime() on /dev/ptpX, or SO_TIMESTAMPING for NIC hardware timestamping). Direct user-space memory access to FPGA registers bypasses kernel time discipline, lacks locking, and breaks Chrony’s expectation of stable clock adjustment paths.
Best practice for FPGA MPSoC:
Expose your hardware clock or timestamp counter through a kernel driver registered as a PTP Hardware Clock (PHC).
Let Chrony access it through the refclock PHC or hwtimestamp mechanism.
Use ptp4l or similar tools if servo control is needed in-kernel.
| Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |