nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

Is there any possible branch supporting running linuxptp-related tools without root privilege? #43

Open lenardxu opened 1 year ago

lenardxu commented 1 year ago

Due to the restriction of the working computer, I have no root privilege. Thus, I've been trying the tools such ptp4l providd by your project and other projects, typically the original maintained by Richard (https://github.com/richardcochran/linuxptp) without root privilege. However, there is always the error like follows: """ xxx@weizenbaum:~/xxx/openil_linuxptp_install$ ./sbin/ptp4l -i enp3s0f0 -f configs/automotive-master.cfg --step_threshold=1 -m -S ptp4l[4204.460]: failed to set the clock status: Operation not permitted ptp4l[4204.461]: socket failed: Operation not permitted ptp4l[4204.461]: port 1 (enp3s0f0): INITIALIZING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[4204.461]: uds: bind failed: Permission denied ptp4l[4204.461]: port 0 (/var/run/ptp4l): INITIALIZING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[4204.462]: uds: bind failed: Permission denied ptp4l[4204.462]: port 0 (/var/run/ptp4lro): INITIALIZING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) """ So is there any chance I can use all the utilities inside linuxptp as a regular user?