I am new to PTP and having some difficulty setting up and configuring a
grand master. Most of the documentation I have found talk about setting up
slaves to grand masters but not configuring a grand master.

In my setup, I have two machines on a LAN. One has a GPS receiver that
provides a 1PPS in addition to spitting out a proprietary packet protocol.
I am able to read and parse the packets to get the time. I have no other
NTP or PTP servers. I installed ptp4l and phc2sys. I am also using hardware
time stamping.

1. How do I get the time from the GPS receiver to PTP? Should I simply call
settimeofday() to set the system clock? Or should I forward the time to an
NTP daemon like ntpd or chronyd and have it set the system clock in
conjunction with the PPS?
2. Do I need to pass the PPS to phc2sys? I'm assuming no because I'm trying
to use the system clock as a master and the man page says, "This option can
be used only with the system clock as the slave clock."
3. How do I synchronize the PHC to the system clock? Do I run phc2sys with
"-a -r -r"? Or do I need something like "-s CLOCK_REALTIME -c eth0 -w"?
4. Do I need to mess around with the proportional and integral constants?
5. PTP uses TAI time, correct? How does ptp4l or phc2sys get the TAI-UTC
offset?
6. Do ptp4l or phc2sys need to know about upcoming leap seconds? How does
that information get passed to them?
7. Do I need to disable dynamic ticks in the kernel using nohz=off?

Any help would be appreciated!

Keith
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to