On Tue, Feb 06, 2018 at 06:20:59PM +0200, Yan Yankovskyi via Linuxptp-users wrote: > I have a configuration with a PC running Ubuntu and a board running Linux.
By "board running Linux" you mean a custom embedded design, don't you? Or what do you mean? > ethtool reports that the board doesn't support SOF_TIMESTAMPING_TX_SOFTWARE, Then you are out of luck. > and I disabled ethtool check as mentioned in this post > http://linuxptp-users.narkive.com/Q6DUVkta/using-ptp4l-on-vlan-interfaces#post7 That thread is out of date. The topic was running PTP over a VLAN interface. This is now fully supported by the Linux kernel. > . Now if the board behaves as a master, I see correct log on the PC. But > when I try use slave-only mode on the board, it says "port 1: bad message" > all the time. I found out that error detects in the "suffix_post_recv" > function ("msg.c" file). len variable is always equal to 6, but tlv->length > variable is taking for example the following values: 210, 20250, 50666, > 18066, and so on. Such values lead to failing either on (tlv->length % 2) > or on (tlv->length > len) check, and I'm gerring -EBADMSG error. I would be > thankful if anyone could explain what do such values mean and what can be > the cause. Looks like the endianness of the value is wrong. HTH, Richard ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users