Re: [Linuxptp-users] Can phc2sys sync two physical clocks?
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2016-03-18 10:03:38
|
On Fri, Mar 18, 2016 at 08:07:10AM +0000, Ledda William EXT wrote: > As far as I know, to control the clock of your DIO from phc2sys you > need to “expose” the clock implementing the PHC kernel interface in > the driver… Yes, but the DIO card doesn't need to be a PHC (= PTP Hardware Clock), it only needs to be a "Dynamic" POSIX clock. The driver interface is defined in include/linux/posix-clock.h in the Linux kernel sources. Right now, the only driver implementing this feature is the PHC layer (see drivers/ptp/ptp_clock.c). So the DIO card needs a device driver that implements a dynamic clock. In addition to getting and setting the time, the card and driver will need to support frequency adjustment. Once you have the DIO driver, then the phc2sys program will work without modifications. HTH Richard |