Hi,
I'm new to ptp4l/phc2sys. Here is what I'm trying:

*----------------------------------------------------------------*
*SLAVE: # ptp4l -i eth0 -m -s*
*ptp4l[790.228]: selected /dev/ptp0 as PTP clock*
*ptp4l[790.230]: driver changed our HWTSTAMP options*
*ptp4l[790.231]: tx_type   1 not 1*
*ptp4l[790.232]: rx_filter 1 not 6*
*ptp4l[790.232]: port 1: INITIALIZING to LISTENING on INITIALIZE*
*ptp4l[790.234]: port 0: INITIALIZING to LISTENING on INITIALIZE*
*ptp4l[790.868]: port 1: new foreign master 54e1ad.fffe.a161a8-1*
*ptp4l[794.865]: selected best master clock 54e1ad.fffe.a161a8*
*ptp4l[794.866]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE*
*ptp4l[795.864]: master offset     -12012 s0 freq      +0 path delay
7642*
*ptp4l[796.863]: master offset     -12411 s1 freq    -399 path delay
7655*
*ptp4l[797.862]: master offset      -1136 s2 freq   -1535 path delay
7655*
*ptp4l[797.862]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED*
*ptp4l[798.861]: master offset         60 s2 freq    -680 path delay
7642*
*....*

*SLAVE: (console 2)  # phc2sys -s /dev/ptp0 -w -m*
*phc2sys[7485.974]: sys offset      -151 s0 freq   +2251 delay   1080*
*....*

*SLAVE: (console 3) # date*
*Thu Jan  1 02:07:23 UTC 1970*

*MASTER: #ptp4l -i enp0s31f6 -m*
*ptp4l[271505.609]: selected /dev/ptp0 as PTP clock*
*ptp4l[271505.610]: port 1: INITIALIZING to LISTENING on INITIALIZE*
*ptp4l[271505.610]: port 0: INITIALIZING to LISTENING on INITIALIZE*
*ptp4l[271512.881]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES*
*ptp4l[271512.881]: selected best master clock 54e1ad.fffe.a161a8*
*ptp4l[271512.881]: assuming the grand master role*

*MASTER (console 2):# date*
*Wed Jul 11 14:04:11 EDT 2018*
*----------------------------------------------------------------------------*

Both 'date' commands where ran within seconds of one another. 'Something'
seems to be working because if I run
*--------------------------------------*
*SLAVE: (console 3) # date -s "Wed Jul 11 14:04:11 EDT 2018"*
*Thu Jan  1 02:07:23 UTC 1970*
*--------------------------------------*
then I see
*-------------------------------------- *

*SLAVE: (console 2) *
*phc2sys[7807.082]: clockcheck: clock jumped forward or running faster than
expected!*
*phc2sys[7807.082]: sys offset 1531324443441449597 s0 freq   +2397 delay
 1080*
*phc2sys[7808.082]: sys offset 1531324443441449577 s1 freq   +2370 delay
 1080*
*phc2sys[7809.083]: sys offset        39 s2 freq   +2409 delay   1080*
*---------------------------------------*
then if I run date again, we are back in the 70's
*------------------------------------*
*SLAVE: (console 3) # date*
*Thu Jan  1 02:12:10 UTC 1970*
*-----------------------------------*

What am I missing?

thank you!
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to