On Sun, Feb 22, 2015 at 01:11:12PM -0800, Gary E. Miller wrote:
> No.  I noticed how the Redhat HOWTO specifies all three needed.  That
> should be in the linuxptp README.

Good point.
 
> > PTP doesn't work well anyhow over wifi because of the unpredicable
> > transmission scheme.
> 
> Can it be worse than just plain old NTP?

I would think it can, depending on the PI weights.

> Sadly no luck getting phc2sys to work for me on a system already
> running ptp4l.  I change time_stamping software to hardware and run this:
> 
> kong ~ # phc2sys -a -m -l 7

This would be without ntpshm.

> phc2sys[880.851]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000
> phc2sys[881.852]: reconfiguring after port state change
> phc2sys[881.852]: master clock not ready, waiting...

For a simple run without ntpshm, try this:

  phc2sys -a -r -i eth0 -m -q

  -a  automatic mode
  -r  include system clock as a possible slave
  -i  interface that ptp4l is running on
  -m  messages to stdout/stderr
  -q  no messages to syslog

> I looked at doing manual settings and go confused.  Like what to set
> for -M?  Same as ptp4l or unique?

So, backing up a bit, when using hardware time stamping, the ptp4l
servo should never be set to ntpshm.  That is only for software time
stamping.

For a HW time stamping setup, I would run ptp4l with defaults, and
then phc2sys like so.

  phc2sys -s eth0 -E ntpshm -m -q

The -M value only has to agree with your ntp setup.

Miroslav?

I admit the options for phc2sys are really confusing.  On the one
hand, the phc2sys underwent a "organic" development process, and on
the other hand, there really are a great many ways to configure the
system clock and one (or more!) PTP hardware clocks.  I always have to
re-read the man page every time.

> Got my system clock off by 24 hours
> and gave up...

Oops.
 
Sorry,
Richard

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to