From: Drasko D. <dra...@gm...> - 2013-05-30 15:03:29
|
Hi Richard, On Thu, May 30, 2013 at 4:41 PM, Richard Cochran <ric...@gm...> wrote: > On Thu, May 30, 2013 at 03:36:17PM +0200, Drasko DRASKOVIC wrote: > >> ptp4l[106799.964]: poll tx timestamp failed: Success >> ptp4l[106799.964]: port 1: send sync failed >> >> What is happening here and how to debug this ? > > Your MAC driver is lacking transmit time stamp support. I don't know > what the pandaboard has (davinci_emac?), but you would need to add a > call to > > * skb_tx_timestamp() - Driver hook for transmit timestamping > * > * Ethernet MAC Drivers should call this function in their hard_xmit() > * function immediately before giving the sk_buff to the MAC hardware. > > in your MAC driver. Thanks for this information and for your help. I was suspecting that this is the source of error, as it has been discussed earlier on this list, but error : port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) is difficult to understand, By the way, what are port 0 and port 1? I will grep for some examples, to see how it is currently done in the kernel. Is there any example for wlan drivers that I can take - what would be the most quick and dirty way, just to have all tools in place. I will work later on precision, for now I just want something that compiles and that make server and client communicate (even if the timestamps are imprecise). Best regards, Drasko |