Re: [Linuxptp-users] Bad message error

2018-02-07 Thread Richard Cochran
On Wed, Feb 07, 2018 at 12:39:12PM +0200, Yan Yankovskyi wrote:
> 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.

IOW, you are using your own unpublished custom driver.  Sorry, can't
help you with that.

If there is an issue with TLV handling, please reproduce it using
standard drivers and unaltered linuxptp sources.  Then, post the
details of the configuration.
 
> >> ethtool reports that the board doesn't support
> SOF_TIMESTAMPING_TX_SOFTWARE,
> 
> > Then you are out of luck.
> 
> Is it crucial? Am I able to add support of this timestamp mode by myself?

I hope so.

Thanks,
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


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...@globallogic.com> wrote:

> 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_SOFTWARE,
>
> > Then you are out of luck.
>
> Is it crucial? Am I able to add support of this timestamp mode by myself?
>
> > Looks like the endianness of the value is wrong.
>
> You mean endianess of *ptr variable value? Because if I have for example
> 0x68e3 or 0xe368 values for tlv->length field, it doesn't change much.
> I have a raw value of *ptr equal to 0x68e3, doesn't it seem like a
> correct value? It implies that tlv->type equals 0.
>
> Thanks.
>
> --
> Best regards,
>
> Yan Yankovskyi | Junior Software Engineer, Ukraine
> GlobalLogic
> M  +380.95.049.64.73 <+380950496473>   Skype huandesale
>
> www.globallogic.com
>
> http://www.globallogic.com/email_disclaimer.txt
>



-- 
Best regards,

Yan Yankovskyi | Junior Software Engineer, Ukraine
GlobalLogic
M  +380.95.049.64.73 <+380950496473>   Skype huandesale

www.globallogic.com

http://www.globallogic.com/email_disclaimer.txt
--
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


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_SOFTWARE,

> Then you are out of luck.

Is it crucial? Am I able to add support of this timestamp mode by myself?

> Looks like the endianness of the value is wrong.

You mean endianess of *ptr variable value? Because if I have for example
0x68e3 or 0xe368 values for tlv->length field, it doesn't change much.
I have a raw value of *ptr equal to 0x68e3, doesn't it seem like a
correct value? It implies that tlv->type equals 0.

Thanks.

-- 
Best regards,

Yan Yankovskyi | Junior Software Engineer, Ukraine
GlobalLogic
M  +380.95.049.64.73 <+380950496473>   Skype huandesale

www.globallogic.com

http://www.globallogic.com/email_disclaimer.txt
--
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