On Thu, Mar 24, 2022 at 09:14:08AM -0500, Chris Caudle wrote: > On Thu, March 24, 2022 5:02 am, > linuxptp-users-requ...@lists.sourceforge.net wrote: > > From: Federico Murciano <federico.murci...@dai-labor.de> > > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and > > date > > Message-ID: <1648115598945.22...@dai-labor.de> > > > Thank you for your answer. Yes this is in the slave computer. In the > > master computer I only execute the following, which is working for my > > other setup (with replicated master and slave devices): > > > > cat ptp.cfg > > [global] > > tx_timestamp_timeout 10 > > step_threshold 1 > > > > sudo ptp4l -A -i eth0 -m -f ptp.cfg > > Then what process is expected to set the time for the PHC? That seems to > be a missing step in your configuration. Perhaps the better question is > why does the other setup ever work? > > -- > Chris Caudle
(there might be other reasons why his setup is working, but) Some kernel Ethernet drivers have a bad habit of writing the current (UTC) system time (derived from the battery-backed RTC) into the PHC current (TAI) time at boot. You're off by 37 seconds, but hey, at least it's 2022, so the time _must_ be right! https://elixir.bootlin.com/linux/latest/source/drivers/ptp/ptp_qoriq.c#L504 _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users