
Transparent Clock
(LS1021ATSN SJA1105)
Port
Port
SGMII
SGMII
SGMII
SGMII
Ordinary Clock
(LS1021ATSN)
Ordinary Clock
(LS1021ATSN)
Figure 8. LS1021ATSN TC synchronization
8. PTP stack startup
Before starting up the kernel to run PTP stack, make sure there is no MAC address conflict in the network. Different MAC
addresses should be set for each MAC on each board in U-Boot. For example,
Board A:
=> setenv ethaddr 00:04:9f:ef:00:00
=> setenv eth1addr 00:04:9f:ef:01:01
=> setenv eth2addr 00:04:9f:ef:02:02
Board B:
=> setenv ethaddr 00:04:9f:ef:03:03
=> setenv eth1addr 00:04:9f:ef:04:04
=> setenv eth2addr 00:04:9f:ef:05:05
Board C:
=> setenv ethaddr 00:04:9f:ef:06:06
=> setenv eth1addr 00:04:9f:ef:07:07
=> setenv eth2addr 00:04:9f:ef:08:08
Linux PTP stack supports both OC and BC. It is included in the SD card images of LS1021ATSN, LS1043ARDB,
LS1046ARDB, and i.MX6Q SabreSD, built using buildroot.
9. Basic master-slave synchronization
For basic master-slave synchronization, use the below command. It can be observed that the slave synchronizes with the
master with time.
• For LS platforms:
$ ptp4l -i eth0 -p /dev/ptp0 -f /etc/ptp4l_default.cfg –m
• For i.MX platforms:
NXP Semiconductors
Industrial features
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
51 / 199