This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A3: About the use of phc2sys instruction in linuxptp

Part Number: AM62A3


Tool/software:

Test environment:
User customized development board
Linux Kernel 6.6
TI SDK 10.1

Regarding the use of phc2sys instruction in linuxptp, I want to synchronize the system clock to the NIC clock, but the error is as follows

root@am62axx-evm:~# phc2sys -c CLOCK_REALTIME -s eth0 -w -m
phc2sys[900.614]: uds: bind failed: No such file or directory
phc2sys[900.614]: failed to open transport
phc2sys[900.614]: failed to create pmc

root@am62axx-evm:~# phc2sys -c CLOCK_REALTIME -s /dev/ptp0 -w -m
phc2sys[927.099]: uds: bind failed: No such file or directory
phc2sys[927.099]: failed to open transport
phc2sys[927.099]: failed to create pmc

At present, ptp4l has been determined to work normally, and the process service has been started normally

root@am62axx-evm:~# systemctl status ptp4l.service
* ptp4l.service - Precision Time Protocol (PTP) service for
Loaded: loaded (/usr/lib/systemd/system/ptp4l.service; enabled; preset: disabled)
Active: active (running) since Tue 2024-02-27 17:40:35 UTC; 4s ago
Docs: man:ptp4l
Main PID: 803 (ptp4l)
Tasks: 1 (limit: 879)
Memory: 240.0K (peak: 472.0K)
CPU: 21ms
CGroup: /system.slice/ptp4l.service
`-803 ptp4l -P -2 -H -i eth0 -f /root/automotive-master.cfg -m -q -p /dev/ptp0

Feb 27 17:40:35 am62axx-evm systemd[1]: Started Precision Time Protocol (PTP) service for .
Feb 27 17:40:35 am62axx-evm ptp4l[803]: ptp4l[873.949]: selected /dev/ptp0 as PTP clock
Feb 27 17:40:35 am62axx-evm ptp4l[803]: ptp4l[874.013]: port 1 (eth0): INITIALIZING to MASTER on INIT_COMPLETE
Feb 27 17:40:35 am62axx-evm ptp4l[803]: ptp4l[874.013]: uds: bind failed: No such file or directory
Feb 27 17:40:35 am62axx-evm ptp4l[803]: ptp4l[874.013]: port 0 (/var/run/ptp4l): INITIALIZING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
Feb 27 17:40:35 am62axx-evm ptp4l[803]: ptp4l[874.014]: uds: bind failed: No such file or directory
Feb 27 17:40:35 am62axx-evm ptp4l[803]: ptp4l[874.014]: port 0 (/var/run/ptp4lro): INITIALIZING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)

Problem prompt:uds: bind failed: No such file or directory

I don't know if you've had similar problems?