...
Basically, just follow these steps:
1. Add PTP clock in DTS file.
...
2. We need one PTP grandmaster within
...
LAN.
PTP grandmaster sync time from GPS generally as can be seen in Figure 5.
...
Code Block | ||
---|---|---|
| ||
ptp4l[34476.707]: port 1 (enp2s0): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[34476.707]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[34476.707]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[34483.780]: port 1 (enp2s0): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[34483.781]: selected local clock 94c691.fffe.fc9abf as best master ptp4l[34483.781]: port 1 (enp2s0): assuming the grand master role |
3. Run PTP slave.
To run ptp4l on SP7350, we need cross compile linuxptp, and install it on SP7350 Linux Roofs.
...
Pay attention to two places.
a. Check ethernet interface at promise mode?
...
If not, you can switch over manually with this command.
...
Thus, SP7350 can receive all the broadcast packets.
b. Check GMAC driver.
Check 0465ns accuracy within config_addend
function to fix incorrect PTP TAR register value.
...
4. Check synchronization result.
Use tool phc_ctl
to check PHC time.
...