Discussion:
[Linuxptp-users] Stuck in the ptp4l command
Namit Agrawal
2016-01-24 15:42:51 UTC
Permalink
Hi All,
I am running linuxptp in software mode. This is the command that
I gave:
ptp4l -i eth0 -m -S
ptp4l[2562.960]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[2562.961]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[2569.982]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[2569.982]: selected best master clock 080027.fffe.907de9
ptp4l[2569.982]: assuming the grand master role

It is stuck at this point. Is there any solution for this??

Also, can you explain me who is master, grandmaster and slave here. My
guess is system clock is slave, eth0 is master and ptp4l is grandmaster.
Am I right or wrong??
Richard Cochran
2016-01-24 19:42:18 UTC
Permalink
Post by Namit Agrawal
Hi All,
I am running linuxptp in software mode. This is the command that
ptp4l -i eth0 -m -S
ptp4l[2562.960]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[2562.961]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[2569.982]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[2569.982]: selected best master clock 080027.fffe.907de9
ptp4l[2569.982]: assuming the grand master role
It is stuck at this point. Is there any solution for this??
There is no problem that I can see.

This is the expected output when your PC is the only PTP node in your
network. Add another PTP node into your network, and something more
interesting will happen, namely one node will begin synchronizing to
the other one.
Post by Namit Agrawal
Also, can you explain me who is master, grandmaster and slave here. My
guess is system clock is slave, eth0 is master and ptp4l is grandmaster.
Am I right or wrong??
No, these terms having nothing to do with the system clock. Instead,
they describe the role of a single port in the PTP state machine.

Your port has progressed through the followings states:

INITIALIZING -> LISTENING -> MASTER

It did this because no better master was discovered in your network.
(In fact, no other master at all is present.)

HTH
Richard

Loading...