> -----Original Message-----
> From: Jord Pool [mailto:jord.p...@outlook.com]
> Sent: Tuesday, June 26, 2018 10:44 PM
> To: Keller, Jacob E <jacob.e.kel...@intel.com>; Richard Cochran
> <richardcoch...@gmail.com>
> Cc: Cliff Spradlin via Linuxptp-users <linuxptp-users@lists.sourceforge.net>
> Subject: Re: [Linuxptp-users] Synchronisation
> 
> Hi Jake,
> 
> I have just simply created a linuxptp container image using a Dockerfile like 
> the
> following:
> 
> FROM ubuntu:latest
> RUN apt-get update && \
>     apt-get install -y linuxptp && \
>     rm -rf /var/lib/apt/lists/*
> 
> Next, I start the containers using the following commands:
> # docker run -d -v /var/run/:/var/run/ —privileged —net=host —name ptp-
> server {image_name} /usr/sbin/ptp4l -i enp0s25 -m -q -4 -H
> 
> 
> # docker run -d -v /var/run/:/var/run/ —privileged —net=host —name phc2sys
> {image_name} /usr/sbin/phc2sys -s CLOCK_REALTIME -c /dev/ptpX -w -m -q
> 
> By mapping the /var/run/ folder from the host OS to the /var/run/ folder of 
> the
> container by using the -v option (mount volume to container), you can easily 
> give
> the container access.
> 
> Furthermore, I managed to clear the synchronisation problem I was facing. The
> problem was due to the e1000e driver apparently. I must honestly say I do not
> know for sure what the problem of the driver exactly was, but by updating the
> e1000e driver on my CoreOS (PTP Grandmaster) server from version 3.2.6-k to
> 3.4.0.2 I managed to get rid of the synchronisation problem with the extreme
> high offsets.
> 
> So basically I am now running the following setup, where both the master as 
> well
> as the client run the 3.4.0.2 version of the e1000e driver:
> High Resolution Oscillator FPGA —> NTP Shared Memory —> System Clock
> (Through NTP) —> PHC Grandmaster (Through phc2sys) —> PHC Client —>
> System Clock (Through phc2sys) —> NTP synchronising to LOCAL (127.127.1.0) —
> > Other NTP Clients
> 
> All ptp4l AND phc2sys instances in this scenario are running inside 
> containers on
> Docker!
> 
> Thanks for your support and interest!
> 
> Jord
> 
> 

I'm glad this was resolved for you! :) Yea, it sounds like that kernel is 
missing some backports for fixes then.

Thanks,
Jake

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

Reply via email to