Re: [Linuxptp-users] recvmsg tx timestamp failed: Resource temporarily unavailable
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Rayagond K. <ray...@gm...> - 2013-02-06 04:47:44
|
Thank you Richard, I will implement .adjfreq and use default.cfg and test it and let you know. On 5 February 2013 22:20, Richard Cochran <ric...@gm...> wrote: > On Tue, Feb 05, 2013 at 09:23:03PM +0530, Rayagond Kokatanur wrote: > > > > I am not getting how to write configuration file that can be provided as > > input to *ptp4l, *please send me one example. > > There are two example files in the code, default.cfg, and gPTP.cfg. > I would start with the first one. > > > Yes, it is unpublished driver and I referred Linux driver and document > and > > added PTP support into my driver. > > > > I have written PHC driver, but its not yet complete, need to implement > some > > other clock operations like .adjfreq and .enable. > > You can leave .enable as a stub, but you must implement the other > methods, otherwise you won't be able to run PTP. > > > My test setup is as below, > > > > 1. Two system connected back to back and both the system running Linux > > 3.1.1 kernel. > > 2. On one side my HW and driver is running and on other side realteck > 8169 > > driver is running. I modified the realteck driver to support software > > timestamping ie added "skb_tx_timestamp()" in start_xmit function. Since > I > > don't have other NIC card that support HW time stamping, so I am using > > software timestaping on other side. > > > > So is it possible to do basic validation/tetsing of PTP using above > setup ? > > Yes, I think so. > > > Feb 5 20:11:04 snps ptp4l: [17640.898] failed to adjust the clock: > > Operation not supported > > Because your driver isn't finished. > > > I am new to PTP so not able to understand the above log completely, > please > > let me know if my test setup is correct or not. > > Looks okay to me. > > HTH, > Richard > |