Hello,
1)
PTP master/slave is not working while I tried to run it over same host.
Following messages are displayed repeatedly:
ptp4l[269.788]: sendto failed: No message of desired type
ptp4l[269.789]: port 1: send sync failed
ptp4l[269.789]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[269.861]: driver changed our HWTSTAMP options
ptp4l[269.863]: tx_type 1 not 1
ptp4l[269.863]: rx_filter 1 not 12
ptp4l[269.864]: selected best master clock 169acc.fffe.7d54bd
ptp4l[277.043]: driver changed our HWTSTAMP options
ptp4l[277.046]: tx_type 1 not 1
ptp4l[277.046]: rx_filter 1 not 12
ptp4l[277.047]: selected best master clock 169acc.fffe.7d54bd
ptp4l[284.513]: driver changed our HWTSTAMP options
ptp4l[284.514]: tx_type 1 not 1
ptp4l[284.515]: rx_filter 1 not 12
ptp4l[284.516]: selected best master clock 169acc.fffe.7d54bd
ptp4l[285.796]: driver changed our HWTSTAMP options
ptp4l[285.798]: tx_type 1 not 1
ptp4l[285.798]: rx_filter 1 not 12
ptp4l[285.799]: port 1: FAULTY to LISTENING on FAULT_CLEARED
ptp4l[290.943]: driver changed our HWTSTAMP options
ptp4l[290.944]: tx_type 1 not 1
ptp4l[290.945]: rx_filter 1 not 12
ptp4l[290.946]: selected best master clock 169acc.fffe.7d54bd
2)
And Can you please suggest How I could run it on two different linux host, Do I
need to use some kind of multicast forwarding for that ?
I tried to run PTP master behind, 10.0.0.1/24 and slave behind 10.0.1.1/24
+----------------------+ +----------------------+
| Linux Guest Host-1 | | Linux Guest Host-2 |
| __________ | | __________ |
| | | | | | | |
| | eth0 | | | | eth0 | |
| | 10.2.0.2 | | | | 10.1.0.2 | |
| |__________| | | |__________| |
| | | |
+---------+------------+ +----------+-----------+
____|____ ___|_____
| | | |
|piface_1 | | piface_2|
|10.2.0.2 | |10.2.0.1 |
|_________| |_________|
piface_1 and piface_2 exist on the host, where I am running two linux guest
host.
Now, I tried to run ptp master on linux guest host-1
./ptp4l -i eth0 -m -q
And ptp slave on linux guest host-2,
./ptp4l -i eth0 -m -s -q
But On wireshark I could see sync, Follow_up messages from master(captured for
piface_1) and on slave(captured over piface_2) I could just see IGMP massages,
I think multicast frames from master doesn't reach to the slave.
Am I missing here some configuration ?
Regards,
Ronex
On Thursday, 7 August 2014 12:38 AM, Richard Cochran <[email protected]>
wrote:
On Thu, Aug 07, 2014 at 01:51:18AM +0800, Ronex Dicapriyo wrote:
> And by `ptp subsystem`, Do you refer "<kernel_source>/drivers/ptp" ?
Yes, some important files for the ptp subsystem are in drivers/ptp,
but there are also drivers there.
Overall it is not as simple you try to make it. When we say "driver"
this can mean an Ethernet MAC driver, a PHY driver, or a PTP Hardware
Clock driver. Also, the core ptp code is mostly in drivers/ptp, but
there are some bits in the core networking code as well.
You have the source. Now go and read it!
> Does it sends ptp messages (like sync, delay etc..) to all the system in
> local LAN, and all the local IP's(Private and Public ethernet interface
> present on same host) ?
It sends multicast messages on the given interface.
> Now How am I supposed to check output, I believe log messages along with
> wireshark might can help here.
You can use wireshark, sure. But the slave ptp4l program should print
out the current time offset, once per second.
> Does it stops after syncing the time between slave and master device ?
No.
> 3) Is it possible to establish ptp communication on one to one basis, means
> master sends ptp messages to slave IP,where ptp4l slave application is
> listening for master IP address ?
Unicast messaging is possible with the protocol, but it is not
implemented in linuxptp.
Thanks,
Richard
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users