nxp-archive / openil_linuxptp

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

Question about master and slave #11

Open eddietseng1129 opened 4 years ago

eddietseng1129 commented 4 years ago

Hi, I'm new to time synchronization with PTP. When I try to make my device (Ubuntu 18.04) run as master (sudo ptp4l -q -i eno1 -m), it keep waiting like this: Screenshot from 2020-08-20 17-42-08

Another thing is I try to use the same computer as a slave (is it okay?), it cannot find the master clock and keep select local clock as best master.

Screenshot from 2020-08-20 17-45-20

Did I did anything wrong? Or did I miss something? Thank you for the help!

vladimiroltean commented 4 years ago

Hi, What device is this, and what software is it running?

arnolde commented 3 years ago

@vladimiroltean Is it possible to run ptp4l as grandmaster (for testing) without having a precise sync itself (i.e. only NTP)? I want to test a software which requires a valid PTP lock but without going to the trouble of obtaining a "real" PTP sync here in the testlab.

vladimiroltean commented 3 years ago

For the most part, ptp4l doesn't care what time it broadcasts into the network.

Mo-way commented 7 months ago

@eddietseng1129 I'm seeing the same Symptoms on Ubuntu 22.04. Did you ever solve it? Would be happy if you share.