Master side:
1) setting date:
root@CDOT-BBWT:/# date
Thu Jul 25 11:03:00 IST 2019
3) running ptp4l
root@CDOT-BBWT:/# ./ptp4l -i eth1 -m &
root@CDOT-BBWT:/# ptp4l main
ptp4l[4166.518]: selected /dev/ptp0 as PTP clock
ptp4l[4166.523]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[4166.524]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[4174.288]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[4174.288]: selected local clock 00e00c.fffe.004202 as best master
ptp4l[4174.289]: assuming the grand master role
5) running phc2sys
root@CDOT-BBWT:/# ./phc2sys -a -a -r -m&
root@CDOT-BBWT:/# GJ: autocfg enabled
GJ: autocfg enabled
GJ: selected r
GJ: autocfg mode
phc2sys[4325.449]: reconfiguring after port state change
phc2sys[4325.450]: selecting eth1 for synchronization
phc2sys[4325.451]: nothing to synchronize
7) date
Thu Jul 25 11:06:04 IST 2019
Slave side:
2) setting date:
root@CDOT-BBWT:/# date
Thu Jul 25 11:05:04 IST 2019 [expecting this should
be as same as master after running below commands]
4) running ptp4l,
root@CDOT-BBWT:/# ./ptp4l -i eth1 -s -m&
root@CDOT-BBWT:/# ptp4l main
ptp4l[4238.541]: selected /dev/ptp0 as PTP clock
ptp4l[4238.546]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[4238.548]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[4238.746]: port 1: new foreign master 00e00c.fffe.004202-1
ptp4l[4242.754]: selected best master clock 00e00c.fffe.004202
ptp4l[4242.755]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[4244.300]: port 1: minimum delay request interval 2^0
ptp4l[4244.767]: master offset 457395 s0 freq +820 path
delay 525
ptp4l[4245.771]: master offset 457645 s1 freq +1069 path
delay 525
ptp4l[4246.260]: port 1: minimum delay request interval 2^0
ptp4l[4246.775]: master offset -990 s2 freq +79 path
delay 525
ptp4l[4246.775]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[4247.779]: master offset 30 s2 freq +802 path
delay 525
ptp4l[4248.748]: port 1: minimum delay request interval 2^0
ptp4l[4248.783]: master offset 325 s2 freq +1106 path
delay 490
ptp4l[4249.468]: port 1: minimum delay request interval 2^0
ptp4l[4249.787]: master offset 280 s2 freq +1158 path
delay 525
ptp4l[4250.604]: port 1: minimum delay request interval 2^0
ptp4l[4250.768]: port 1: minimum delay request interval 2^0
ptp4l[4250.792]: master offset 125 s2 freq +1087 path
delay 590
ptp4l[4251.064]: port 1: minimum delay request interval 2^0
ptp4l[4251.795]: master offset 115 s2 freq +1115 path
delay 590
ptp4l[4251.808]: port 1: minimum delay request interval 2^0
ptp4l[4252.264]: port 1: minimum delay request interval 2^0
6) running phc2sys,
root@CDOT-BBWT:/# ./phc2sys -a -r -m&
root@CDOT-BBWT:/# GJ: autocfg enabled
GJ: selected r
GJ: autocfg mode
phc2sys[4414.233]: reconfiguring after port state change
phc2sys[4414.234]: selecting CLOCK_REALTIME for synchronization
phc2sys[4414.235]: selecting eth1 as the master clock
phc2sys[4414.235]: CLOCK_REALTIME phc offset 1564028676464301333 s0
freq +964 delay 1152
phc2sys[4415.240]: CLOCK_REALTIME phc offset 1564028676464301589 s1
freq +1219 delay 1152
phc2sys[4416.248]: CLOCK_REALTIME phc offset 2 s2 freq +1221
delay 1152
phc2sys[4417.256]: CLOCK_REALTIME phc offset -9 s2 freq +1210
delay 1128
phc2sys[4418.264]: CLOCK_REALTIME phc offset -24 s2 freq +1193
delay 1128
phc2sys[4419.272]: CLOCK_REALTIME phc offset -5 s2 freq +1205
delay 1128
phc2sys[4420.280]: CLOCK_REALTIME phc offset -10 s2 freq +1198
delay 1128
phc2sys[4421.288]: CLOCK_REALTIME phc offset -12 s2 freq +1193
delay 1152
phc2sys[4422.296]: CLOCK_REALTIME phc offset -4 s2 freq +1197
delay 1128
phc2sys[4423.304]: CLOCK_REALTIME phc offset 26 s2 freq +1226
delay 1128
phc2sys[4424.312]: CLOCK_REALTIME phc offset 5 s2 freq +1213
delay 1128
phc2sys[4425.320]: CLOCK_REALTIME phc offset -4 s2 freq +1206
delay 1128
phc2sys[4426.328]: CLOCK_REALTIME phc offset -6 s2 freq +1202
delay 1128
phc2sys[4427.336]: CLOCK_REALTIME phc offset 1 s2 freq +1208
delay 1128
phc2sys[4428.344]: CLOCK_REALTIME phc offset -3 s2 freq +1204
delay 1128
phc2sys[4429.352]: CLOCK_REALTIME phc offset 4 s2 freq +1210
delay 1128
phc2sys[4430.360]: CLOCK_REALTIME phc offset -21 s2 freq +1186
delay 1152
phc2sys[4431.368]: CLOCK_REALTIME phc offset 0 s2 freq +1201
delay 1128
phc2sys[4432.376]: CLOCK_REALTIME phc offset 14 s2 freq +1215
delay 1128
phc2sys[4433.384]: CLOCK_REALTIME phc offset 15 s2 freq +1220
delay 1128
8) Checking date:
Thu Jan 1 06:42:33 IST 1970 [How slave is getting this
date ?? I'm expecting here master date's ]
On 7/25/2019 10:38 AM, Richard Cochran wrote:
On Thu, Jul 25, 2019 at 10:31:07AM +0530, gourav jain wrote:
Hi Richard,
After running commands, suggested by you, at slave side my date is becoming
IST 1970 from IST 2019.
Huh?
What is that supposed to mean?
Please show us the logs.
Thanks,
Richard
--
Gourav Jain /गौरव जैन
SRE, PSG Lab /एसआरई, पीएसजी
C-DOT (Govt. of India)/सी-डॉट (भारत सरकार)
Electronics City Phase I/इलैक्ट्रॉनिक्स सिटी फेज़ I
Hosur Road, Bengaluru-560100/ होसूर रोड, बेंगलूरु-560100
फोन: 080-25119899, 9900348038
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users