systemctl enable phc2sys
Created symlink /etc/systemd/system/multi-user.target.wants/phc2sys.service → /lib/systemd/system/phc2sys.service.
systemctl start phc2sys
so it will be like the above probably, still with -c eth0 probably? or without it?
Maybe you have any suggestion how to set the baudrate on server side to change on restart? So far multiple trials to use system.d/ rc.local etc failed to set the baudrate; so all services at server side need manual start; while at clients ptp4l & phc2sys can be implemented using the script aboove, as it seems to me
I also noticed thhat watch ntp at server shows phc/ ntp time precisely until I run the phc2sys after that it becomes to have differntce almost 1 second in the watch ntp interface between these two
After rebooting of Jetson AGX client I noticed:
systemctl status ptp4l
● ptp4l.service - linuxptp server side autostart
Loaded: loaded (/lib/systemd/system/ptp4l.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-08-25 13:21:12 EDT; 21s ago
Process: 4931 ExecStart=/usr/local/sbin/ptp4l -i eth0 -p /dev/ptp0 -s -m (code=exited, status=255)
Main PID: 4931 (code=exited, status=255)
Aug 25 13:21:12 jetson-0423318029577 ptp4l[4931]: [6.325] selected /dev/ptp0 as PTP clock
Aug 25 13:21:12 jetson-0423318029577 ptp4l[4931]: [6.325] Failed to open /dev/ptp0: No such file or directory
Aug 25 13:21:12 jetson-0423318029577 systemd[1]: Started linuxptp server side autostart.
Aug 25 13:21:12 jetson-0423318029577 ptp4l[4931]: ptp4l[6.325]: selected /dev/ptp0 as PTP clock
Aug 25 13:21:12 jetson-0423318029577 ptp4l[4931]: ptp4l[6.325]: Failed to open /dev/ptp0: No such file or directory
Aug 25 13:21:12 jetson-0423318029577 ptp4l[4931]: failed to create a clock
Aug 25 13:21:12 jetson-0423318029577 systemd[1]: ptp4l.service: Main process exited, code=exited, status=255/n/a
Aug 25 13:21:12 jetson-0423318029577 systemd[1]: ptp4l.service: Failed with result 'exit-code'.
so it required me to manually restart the service:
systemctl status ptp4l
● ptp4l.service - linuxptp server side autostart
Loaded: loaded (/lib/systemd/system/ptp4l.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-08-25 13:21:58 EDT; 1s ago
Main PID: 8529 (ptp4l)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/ptp4l.service
└─8529 /usr/local/sbin/ptp4l -i eth0 -p /dev/ptp0 -s -m
Aug 25 13:21:58 jetson-0423318029577 ptp4l[8529]: ptp4l[52.904]: selected /dev/ptp0 as PTP clock
Aug 25 13:21:58 jetson-0423318029577 ptp4l[8529]: [52.904] selected /dev/ptp0 as PTP clock
Aug 25 13:21:58 jetson-0423318029577 ptp4l[8529]: ptp4l[52.906]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
Aug 25 13:21:58 jetson-0423318029577 ptp4l[8529]: ptp4l[52.907]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
Aug 25 13:21:58 jetson-0423318029577 ptp4l[8529]: [52.906] port 1: INITIALIZING to LISTENING on INIT_COMPLETE
Aug 25 13:21:58 jetson-0423318029577 ptp4l[8529]: [52.907] port 0: INITIALIZING to LISTENING on INIT_COMPLETE
Aug 25 13:21:59 jetson-0423318029577 ptp4l[8529]: ptp4l[53.601]: port 1: new foreign master 48b02d.fffe.05a771-1
Aug 25 13:21:59 jetson-0423318029577 ptp4l[8529]: [53.601] port 1: new foreign master 48b02d.fffe.05a771-1
Aug 25 13:21:59 jetson-0423318029577 ptp4l[8529]: ptp4l[53.674]: port 1: new foreign master 00044b.fffe.cbb2a3-1
Aug 25 13:21:59 jetson-0423318029577 ptp4l[8529]: [53.674] port 1: new foreign master 00044b.fffe.cbb2a3-1
the same for phc2sys
systemctl status phc2sys
● phc2sys.service - phc2sys synchronization autostart
Loaded: loaded (/lib/systemd/system/phc2sys.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-08-25 13:21:12 EDT; 1min 46s ago
Process: 5062 ExecStart=/usr/local/sbin/phc2sys -m -a -r -w (code=exited, status=255)
Main PID: 5062 (code=exited, status=255)
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -x apply leap seconds by servo instead of kernel
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -z [path] server address for UDS (/var/run/ptp4l)
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -l [num] set the logging level to 'num' (6)
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -t [tag] add tag to log messages
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -m print messages to stdout
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -q do not print messages to the syslog
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -v prints the software version and exits
Aug 25 13:21:12 jetson-0423318029577 phc2sys[5062]: -h prints this message and exits
Aug 25 13:21:12 jetson-0423318029577 systemd[1]: phc2sys.service: Main process exited, code=exited, status=255/n/a
Aug 25 13:21:12 jetson-0423318029577 systemd[1]: phc2sys.service: Failed with result 'exit-code'.
pmc -u -b 0 'GET TIME_STATUS_NP'
sending: GET TIME_STATUS_NP
00044b.fffe.cb9a37-0 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP
master_offset 0
ingress_time 1598378174611650592
cumulativeScaledRateOffset +0.000000000
scaledLastGmPhaseChange 0
gmTimeBaseIndicator 0
lastGmPhaseChange 0x0000'0000000000000000.0000
gmPresent true
gmIdentity 00044b.fffe.cbb2a3