On Mon, Jun 29, 2020 at 11:02:20AM +0000, Van Yu(于宗民_Pegatron) wrote:
> First step, run linuxptp. When running linuxptp, the default currentUtcOffset 
> value is 36 on master.
> Below show the command as master and slave
> Master:
> ptp4l -i enp1s0f0 -m -H
> ptp4l -i enp1s0f1 -m -H

You probably want just one instance of ptp4l.  Also, you probably want
to synchronize the two clocks of the two interface (unless they share
the same clock).
 
On the master, set the time status flags.  For example:

pmc -u -b 0 \
"set GRANDMASTER_SETTINGS_NP
clockClass 248
clockAccuracy 0xfe
offsetScaledLogVariance 0xffff
currentUtcOffset 37
leap61 0
leap59 0
currentUtcOffsetValid 1
ptpTimescale 1
timeTraceable 1
frequencyTraceable 1
timeSource 0x50
"

> enp1s0f0 and enp1s0f1 on the same NIC card
> 
> Slave 1:
> ptp4l -i enp1s0f0 -m -H -s
> 
> Slave 2:
> ptp4l -i enp1s0f0 -m -H -s
> 
> Second step, when linuxptp is locked, I am running phc2sys with following 
> configuration on slave:
> phc2sys -s enp1s0f0 -c CLOCK_REALTIME -w

You can run this instead:

    phc2sys -s enp1s0f0 -a -r


_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to