Dear Richard,
I'm trying to sync dates in-between two system(NPX based chipset
MPC8313), by making one master while another one slave, by using ptp4l
and phc2sys commands.
But after running "phc2sys" in slave, date is showing some random date.
Below are the log messages,
Kindly help me to figure out what went wrong here...
master:
root@CDOT-BBWT:/# date -s 2019.07.22-16:22:32
Mon Jul 22 16:22:32 IST 2019
root@CDOT-BBWT:/# ./ptp4l -i eth1 -m &
root@CDOT-BBWT:/# ptp4l main
ptp4l[2095.918]: selected /dev/ptp0 as PTP clock
ptp4l[2095.923]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[2095.925]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[2102.960]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[2102.960]: selected local clock 002488.fffe.0039bd as best master
ptp4l[2102.961]: assuming the grand master role
root@CDOT-BBWT:/# ./phc2sys -a -r -m
phc2sys[647.181]: reconfiguring after port state change
phc2sys[647.182]: selecting eth1 for synchronization
phc2sys[647.183]: nothing to synchronize
slave:
root@CDOT-BBWT:/# date -s 2019.07.22-16:21:32
Mon Jul 22 16:22:32 IST 2019
root@CDOT-BBWT:/# /ptp4l -i eth1 -s -m&
root@CDOT-BBWT:/# ptp4l main
ptp4l[19490.084]: selected /dev/ptp0 as PTP clock
ptp4l[19490.090]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[19490.091]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[19491.477]: port 1: new foreign master 002488.fffe.0039bd-1
ptp4l[19495.485]: selected best master clock 002488.fffe.0039bd
ptp4l[19495.485]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[19496.800]: port 1: minimum delay request interval 2^0
ptp4l[19497.297]: master offset 3 s0 freq +68 path
delay 585
ptp4l[19498.301]: master offset 13 s2 freq +78 path
delay 585
ptp4l[19498.302]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[19498.312]: port 1: minimum delay request interval 2^0
ptp4l[19499.305]: master offset -9 s2 freq +69 path
delay 587
ptp4l[19499.636]: port 1: minimum delay request interval 2^0
ptp4l[19500.309]: master offset -7 s2 freq +68 path
delay 585
ptp4l[19500.432]: port 1: minimum delay request interval 2^0
ptp4l[19501.313]: master offset 13 s2 freq +86 path
delay 585
ptp4l[19502.056]: port 1: minimum delay request interval 2^0
ptp4l[19502.318]: master offset -7 s2 freq +70 path
delay 585
ptp4l[19503.321]: master offset -17 s2 freq +58 path
delay 585
ptp4l[19503.552]: port 1: minimum delay request interval 2^0
ptp4l[19504.093]: port 1: minimum delay request interval 2^0
ptp4l[19504.181]: port 1: minimum delay request interval 2^0
ptp4l[19504.326]: master offset -17 s2 freq +53 path
delay 585
ptp4l[19504.673]: port 1: minimum delay request interval 2^0
ptp4l[19504.912]: port 1: minimum delay request interval 2^0
ptp4l[19505.209]: port 1: minimum delay request interval 2^0
ptp4l[19505.330]: master offset 28 s2 freq +93 path
delay 580
ptp4l[19505.936]: port 1: minimum delay request interval 2^0
ptp4l[19505.973]: port 1: minimum delay request interval 2^0
ptp4l[19506.334]: master offset -2 s2 freq +71 path
delay 580
ptp4l[19506.973]: port 1: minimum delay request interval 2^0
ptp4l[19507.338]: master offset -12 s2 freq +61 path
delay 580
ptp4l[19507.477]: port 1: minimum delay request interval 2^0
ptp4l[19508.342]: master offset -12 s2 freq +57 path
delay 580
ptp4l[19508.765]: port 1: minimum delay request interval 2^0
fptp4l[19509.346]: master offset -14 s2 freq +51 path
delay 582
root@CDOT-BBWT:/# ./phc2sys -a -r -m
phc2sys[19560.689]: reconfiguring after port state change
phc2sys[19560.690]: selecting CLOCK_REALTIME for synchronization
phc2sys[19560.691]: selecting eth1 as the master clock
phc2sys[19560.691]: CLOCK_REALTIME phc offset 1563773348158595565 s0
freq -334 delay 1032
phc2sys[19561.696]: CLOCK_REALTIME phc offset 1563773348158601618 s1
freq +5693 delay 1032
phc2sys[19562.704]: CLOCK_REALTIME phc offset -4333 s2 freq +1360
delay 1032
phc2sys[19563.712]: CLOCK_REALTIME phc offset -8019 s2 freq -3626
delay 1032
phc2sys[19564.720]: CLOCK_REALTIME phc offset -3173 s2 freq -1186
delay 1032
phc2sys[19565.728]: CLOCK_REALTIME phc offset -1829 s2 freq -794
delay 1056
phc2sys[19566.736]: CLOCK_REALTIME phc offset -2744 s2 freq -2257
delay 1056
phc2sys[19567.744]: CLOCK_REALTIME phc offset -2039 s2 freq -2376
delay 1032
phc2sys[19568.752]: CLOCK_REALTIME phc offset 2601 s2 freq +1653
delay 1032
phc2sys[19569.760]: CLOCK_REALTIME phc offset 411 s2 freq +243
delay 1032
phc2sys[19570.768]: CLOCK_REALTIME phc offset 13760 s2 freq +13715
delay 1031
phc2sys[19571.776]: CLOCK_REALTIME phc offset -6652 s2 freq -2569
delay 1032
phc2sys[19572.784]: CLOCK_REALTIME phc offset -9770 s2 freq -7682
delay 1032
phc2sys[19573.792]: CLOCK_REALTIME phc offset -6720 s2 freq -7563
delay 1032
phc2sys[19574.800]: CLOCK_REALTIME phc offset 52047 s2 freq +49188
delay 1031
phc2sys[19575.808]: CLOCK_REALTIME phc offset -38708 s2 freq -25953
delay 1032
phc2sys[19576.816]: CLOCK_REALTIME phc offset 3982 s2 freq +5124
delay 1032
phc2sys[19577.824]: CLOCK_REALTIME phc offset -14187 s2 freq -11850
delay 1032
phc2sys[19578.832]: CLOCK_REALTIME phc offset -7536 s2 freq -9455
delay 1032
but when i checking date again,
root@CDOT-BBWT:/# date
_Thu Jan 1 11:05:31 IST 1970_
--
Gourav Jain /गौरव जैन
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users