3.2.2.11. HSR and PRP PTP support
The TI fork of linuxptp
on the hsr_prp_ptp branch supports PTP (Precision Time Protocol)
synchronization over High-availability Seamless Redundancy (HSR) and Parallel Redundancy
Protocol (PRP) interfaces.
In the following commands, replace <proto> with hsr or prp as appropriate.
Prerequisites
Complete the following steps on each node.
Clone linuxptp:
git clone --single-branch --branch hsr_prp_ptp https://git.ti.com/cgit/processor-sdk/linuxptp
cd linuxptp
Build and install:
make && make install
Running PTP
Set up the HSR or PRP interface as described in the respective offload documentation. On the PTP primary node:
./ptp4l -f configs/<proto>-master.cfg
On each PTP secondary node:
./ptp4l -f configs/<proto>-slave.cfg
Verifying PTP synchronization
Inspect the master offset values in the ptp4l log output to verify PTP synchronization.
Sample ptp4l output showing a synchronized secondary node:
ptp4l[xx.xxx]: master offset -123 s2 freq +4321 path delay 543
ptp4l[xx.xxx]: master offset 45 s2 freq +4290 path delay 541
ptp4l[xx.xxx]: master offset -78 s2 freq +4310 path delay 544