[Linuxptp-users] Bad message error

2018-02-06 Thread Yan Yankovskyi via Linuxptp-users
Hello, I have a configuration with a PC running Ubuntu and a board running Linux. ethtool reports that the board doesn't support SOF_TIMESTAMPING_TX_SOFTWARE, and I disabled ethtool check as mentioned in this post http://linuxptp-users.narkive.com/Q6DUVkta/using-ptp4l-on-vlan-interfaces#post7 . No

Re: [Linuxptp-users] Bad message error

2018-02-07 Thread Yan Yankovskyi via Linuxptp-users
On Tue, Feb 6, 2018 at 7:49 PM, Richard Cochran wrote: > By "board running Linux" you mean a custom embedded design, don't you? Exactly. Connection is established using the BroadR-Reach <-> Ethernet converter, if it matters. >> ethtool reports that the board doesn't support SOF_TIMESTAMPING_TX_S

Re: [Linuxptp-users] Bad message error

2018-02-07 Thread Yan Yankovskyi via Linuxptp-users
I also checked the values for the working case, where the host behaves as a slave, and I found out that: 1) *ptr value is always set to 0x; 2) len (cnt - pdulen) is either 0 or 2, i.e. it is always less then sizeof(struct TLV). On Wed, Feb 7, 2018 at 12:39 PM, Yan Yankovskyi < yan.yankovs.

Re: [Linuxptp-users] Bad message error

2018-02-08 Thread Yan Yankovskyi via Linuxptp-users
> The topic was running PTP over a VLAN > interface. This is now fully supported by the Linux kernel. Even in kernel version 4.15.2 in file net/8021q/vlan_dev.c function vlan_ethtool_get_ts_info contains the following code: info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE | SOF_TIMESTAMPING_

[Linuxptp-users] Increase synchronization frequency

2018-03-09 Thread Yan Yankovskyi via Linuxptp-users
Hello. I try to reduce logSyncInterval below default value 0, and I am keep getting 1 sync message per second. I use the same settings for both master and slave. Increasing of this value works as expected, but decreasing affects only output format (avg and max value / variance of values for each fi

[Linuxptp-users] Software clock

2018-03-22 Thread Yan Yankovskyi via Linuxptp-users
Hello, In case of use software timestamping we are adjusting system clock. Is it possible to create another clock, and use it in ptp4l? I see that in clock_create function in case if phc_index < 0 we use CLOCK_REALTIME as value for clkid, so I suppose it isn't possible. But it implies that using so

Re: [Linuxptp-users] Software clock

2018-03-22 Thread Yan Yankovskyi via Linuxptp-users
0, Yan Yankovskyi via > Linuxptp-users wrote: > > In case of use software timestamping we are adjusting system clock. Is it > > possible to create another clock, and use it in ptp4l? I see that in > > clock_create function in case if phc_index < 0 we use CLOCK_REALTIME as >

[Linuxptp-users] PTP data in kernel space

2018-04-17 Thread Yan Yankovskyi via Linuxptp-users
Hello, I need to get gmTimeBaseIndicator, gmIdentity and clock value. I use the following command: pmc -u -b 0 'GET TIME_STATUS_NP' But I need to receive this data in a kernel module, and sending the data from user to kernel space is inefficient. Is there a way of getting such data in kernel spa

[Linuxptp-users] ptp4l doesn't recognize /dev/ptp0

2018-04-24 Thread Yan Yankovskyi via Linuxptp-users
Hello, After manual creation of /dev/ptp0 node, ptp4l doesn't accept this node as a PTP clock. I use the following command: mknod /dev/ptp0 c 252 0 On ptp4l launch I'm getting the following error: Failed to open /dev/ptp0: No such device or address But it is actually present. Do you have any t

Re: [Linuxptp-users] ptp4l doesn't recognize /dev/ptp0

2018-04-24 Thread Yan Yankovskyi via Linuxptp-users
artup. On Tue, Apr 24, 2018 at 5:30 PM, Richard Cochran wrote: > On Tue, Apr 24, 2018 at 01:35:29PM +0300, Yan Yankovskyi via > Linuxptp-users wrote: > > I use the following command: > > > > mknod /dev/ptp0 c 252 0 > > > > On ptp4l launch I'm getting t

[Linuxptp-users] Sync interval in free running mode

2018-06-19 Thread Yan Yankovskyi via Linuxptp-users
Hello, I use the following settings: logSyncInterval = -5 and summary_interval = -5. I see synchronization messages approximately every 30 ms, as expected. But with free_running = 1 option, synchronization occurs once a second. What is the reason for this? -- Best regards, Yan Yankovskyi | Juni

[Linuxptp-users] Filter for master nodes

2018-06-20 Thread Yan Yankovskyi via Linuxptp-users
Hello, I need to restrict ptp4l slave to accept one specific ptp4l instance as a master, e.g. by MAC address. The reason is security concern. Are there any solutions for such a problem? I thought about disabling BMCA and defining master node manually, but I'm not sure is it possible. Maybe the bes