Hi, I have a problem to sync two pc's. 1: Linux laptop with 5.4.5-rt3 kernel 2: Linux PC with 4.9.115-rt93 Kernel and I210 interface
I start the ptp4l master on my pc (2) with: sudo daemonize -E BUILD_ID=dontKillMe -o /var/log/ptp4l.log -e /var/log/ptp4l.err.log /usr/bin/taskset -c 1 chrt 90 /usr/local/sbin/ptp4l -i enp3s0 -2 -mq -f /etc/linuxptp/gPTP.cfg --step_threshold=1 --fault_reset_interval=0 --announceReceiptTimeout=10 sudo pmc -u -b 0 -t 1 "SET GRANDMASTER_SETTINGS_NP clockClass 248 clockAccuracy 0xfe offsetScaledLogVariance 0xffff currentUtcOffset 37 leap61 0 leap59 0 currentUtcOffsetValid 1 ptpTimescale 1 timeTraceable 1 frequencyTraceable 0 timeSource 0xa0" sudo daemonize -E BUILD_ID=dontKillMe -o /var/log/phc2sys.log -e /var/log/phc2sys.err.log /usr/bin/taskset -c 1 chrt 89 /usr/local/sbin/phc2sys -s enp3s0 -c CLOCK_REALTIME --step_threshold=1 -w -m I got no error logs but after a short time I got the following status: ● ptp4l.service - Precision Time Protocol (PTP) service Loaded: loaded (/lib/systemd/system/ptp4l.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2020-04-23 18:25:00 CEST; 1h 13min ago Docs: man:ptp4l Main PID: 628 (ptp4l) Tasks: 1 (limit: 4915) CGroup: /system.slice/ptp4l.service └─628 /usr/sbin/ptp4l -f /etc/linuxptp/ptp4l.conf -i enp3s0 Apr 23 18:47:36 student-Precision-T1700 ptp4l[628]: [1385.935] increasing tx_timestamp_timeout may correct this issue, but it is likely cau Apr 23 18:47:36 student-Precision-T1700 ptp4l[628]: [1385.935] port 1: send sync failed Apr 23 18:47:36 student-Precision-T1700 ptp4l[628]: [1385.935] port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) Apr 23 18:47:52 student-Precision-T1700 ptp4l[628]: [1401.936] driver changed our HWTSTAMP options Apr 23 18:47:52 student-Precision-T1700 ptp4l[628]: [1401.936] tx_type 1 not 1 Apr 23 18:47:52 student-Precision-T1700 ptp4l[628]: [1401.936] rx_filter 1 not 12 Apr 23 18:47:52 student-Precision-T1700 ptp4l[628]: [1401.936] port 1: FAULTY to LISTENING on FAULT_CLEARED Apr 23 18:47:59 student-Precision-T1700 ptp4l[628]: [1408.504] port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES Apr 23 18:47:59 student-Precision-T1700 ptp4l[628]: [1408.504] selected best master clock b49691.fffe.2b6901 Apr 23 18:47:59 student-Precision-T1700 ptp4l[628]: [1408.504] assuming the grand master role on my laptop (1) I start the slave with: sudo daemonize -E BUILD_ID=dontKillMe -o /var/log/ptp4l.log -e /var/log/ptp4l.err.log /usr/bin/taskset -c 1 chrt 90 /usr/local/sbin/ptp4l -i enp0s31f6 -2 -mq -s -f /etc/linuxptp/gPTP.cfg --step_threshold=1 --fault_reset_interval=0 --announceReceiptTimeout=10 sudo pmc -u -b 0 -t 1 "SET GRANDMASTER_SETTINGS_NP clockClass 248 clockAccuracy 0xfe offsetScaledLogVariance 0xffff currentUtcOffset 37 leap61 0 leap59 0 currentUtcOffsetValid 1 ptpTimescale 1 timeTraceable 1 frequencyTraceable 0 timeSource 0xa0" sudo daemonize -E BUILD_ID=dontKillMe -o /var/log/phc2sys.log -e /var/log/phc2sys.err.log /usr/bin/taskset -c 1 chrt 89 /usr/local/sbin/phc2sys -s enp0s31f6 -c CLOCK_REALTIME --step_threshold=1 -w -m the ptp4l error log shows: ptp4l[26624.453]: port 1: master state recommended in slave only mode ptp4l[26624.453]: port 1: defaultDS.priority1 probably misconfigured ptp4l[30399.153]: timed out while polling for tx timestamp ptp4l[30399.153]: increasing tx_timestamp_timeout may correct this issue, but it is likely caused by a driver bug ptp4l[30399.153]: port 1: send peer delay response failed ptp4l[31677.494]: port 1: received PDELAY_RESP without timestamp I am happy about every suggestion. Best wishes Marcel
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users