Gary,
The config file for ptp4l was just as provided in my last note. There
wasn't much else to setup. Note that I had no success with any of the Intel
igb drivers under RHEL 6.5.  Everything works nicely under RHEL 7.0 kernel
3.10. (Or CenOS 7, same thing for free).  I turned off tickless kernel
addng "nohz=off"  to /boot/grub2/grub.cfg:
     linux16 /vmlinuz-3.10.0-123.20.1.el7.x86_64
root=/dev/mapper/vg_ptp-lv_root ro audit=1 nomodeset crashkernel=auto
vconsole.keymap=us rd.lvm.lv=vg_ptp/lv_swap crashkernel=auto
vconsole.font=latarcyrheb-sun16 rd.lvm.lv=vg_ptp/lv_root rhgb quiet
LANG=en_US.UTF-8 nohz=off

I disabled chrony, as I am serving NTP.  I have an FEI-Zyfer Gsync II Time
and Frequency Processor acting as PTP Grandmaster.  I configured the IP
address of an i350 NIC to the same subnet as my Grandmaster.  Using
"ethtool -T" I find that my PHC is number 0, which is /dev/ptp0.

So my ptp4l command is:
nohup nice --20 /usr/local/sbin/ptp4l -m -f /etc/ptp4l.conf -i eth2 -p
/dev/ptp0 > /var/log/ptp4l.log &
and to steer my system to the PHC I run:
nohup nice --20 /usr/local/sbin/phc2sys -q -m -c CLOCK_REALTIME -s
/dev/ptp0 -E linreg -O 0 -l 7 >/var/log/ptp/phc2sys.log &

Note that my Grandmaster is on UTC , not PTP timescale, so I specify -O 0
for the UTC offset for phc2sys.
Then I run as an NTP stratum 1 server using the local clock refclock in
/etc/ntp.conf:
server 127.127.1.0 prefer
server 192.5.41.40 noselect
fudge 127.127.1.0 stratum 0
fudge 127.127.1.0 refid PTP

Not everyone has an FEI-Zyfer Gsync for a grandmaster. At home I have two
Supermicro Atom servers, one is grandmaster, one is slave. The grandmaster
has a GPS receiver outputting 1PPS which is connected to the DCD pin on the
internal COM2 serial header.  Here the NTP refclock_nmea driver
synchronizes the system clock of the grandmaster. Then 'phc2sys -s
CLOCK_REALTIME -c /dev/ptp0" steers the PHC to system time, while ptp4l
provides PTP on an Intel i210 NIC.  On the slave Supermicro server a second
Intel i210 NIC synchronizes to the grandmaster as above.  For complete
details google "Developing Low-Cost NTP Stratum 1 Servers with Linux PTP
and GPS".

Hope this helps,
Rich Schmidt

On Thu, Feb 26, 2015 at 3:23 PM, Gary E. Miller <g...@rellim.com> wrote:

> Yo Rich!
>
> On Thu, 26 Feb 2015 14:59:01 -0500
> Rich Schmidt <schmidt.r...@gmail.com> wrote:
>
> > I have been running phase stability tests of linuxptp-1.5  using
> > linreg servo on an Intel i350-T2 (HP ProLiant DL120G6 RHEL 7.0 kernel
> > 3.10) synchronizing to an FEI-Zyfer Gsync Time and Frequency
> > Processor.
>
> Can you provide the full configuration and setup?  Plus your measurement
> procedure?  My newbie results are many orders of magnitude worse.
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
>         g...@rellim.com  Tel:+1(541)382-8588
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to