Re: 1.1.6 build fails on FC30

2019-11-03 Thread Achim Gratz via devel
Udo van den Heuvel via devel writes: > We found out that the major number of the pps0 device had changed. You shouldn't assume fixed device numbers for devices generated dynamically. Look in /proc/devices instead of hardcoding the major number. Alternatively, sysfs lets you know the device numbe

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 03-11-2019 17:12, Achim Gratz via devel wrote: >> So we take another look at the chroot... > > I'm not sure the chroot really buys you anything, security-wise. Not doing anything felt not OK. ntpd run outside of the chroot does not have an issue. ntpd in the chroot does have this issue. We f

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Achim Gratz via devel
Udo van den Heuvel via devel writes: > I do not understand why NO_HZ is necessary or even usable without > conflict witgh PPS such as CONFIG_NO_HZ_COMMON. NO_HZ has been the default configuration for a long time and it doesn't have anything to do with the PPS API support. The _only_ conflict is w

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 03-11-2019 14:36, Achim Gratz via devel wrote: > configuration, like so: > > CONFIG_NO_HZ_COMMON=y > CONFIG_NO_HZ_IDLE=y > # CONFIG_NO_HZ_FULL is not set > CONFIG_NO_HZ=y I do not understand why NO_HZ is necessary or even usable without conflict witgh PPS such as CONFIG_NO_HZ_COMMON. > CONFI

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Achim Gratz via devel
Udo van den Heuvel via devel writes: > On 03-11-2019 13:22, Udo van den Heuvel via devel wrote: >> Thanks for your thoughts. I will post the results... > > # gzip -dc /proc/config.gz |grep NO_HZ > # CONFIG_NO_HZ_IDLE is not set > # CONFIG_NO_HZ_FULL is not set > # CONFIG_NO_HZ is not set Again, I

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 03-11-2019 13:22, Udo van den Heuvel via devel wrote: > Thanks for your thoughts. I will post the results... # gzip -dc /proc/config.gz |grep NO_HZ # CONFIG_NO_HZ_IDLE is not set # CONFIG_NO_HZ_FULL is not set # CONFIG_NO_HZ is not set Yet we still see: REFCLOCK: refclock_ppsapi: time_pps_crea

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 03-11-2019 13:10, Achim Gratz via devel wrote: >> We do have continuous timer ticks enabled. > > That doesn't matter AFAIK. The incompatibility is already introduced by > > CONFIG_NO_HZ_COMMON=y Ah This box has that setting. The other does not. > based on the comments in the source. Ag

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Achim Gratz via devel
Udo van den Heuvel via devel writes: > On 03-11-2019 12:35, ASSI via devel wrote: >> Udo van den Heuvel via devel writes: >>> yet: >>> >>> # grep PPS .config >>> CONFIG_PPS=y >>> # CONFIG_PPS_DEBUG is not set >>> CONFIG_NTP_PPS=y >> >> If you really wanted to enable hardpps, then you _must_ disabl

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 03-11-2019 12:35, ASSI via devel wrote: > Udo van den Heuvel via devel writes: >> yet: >> >> # grep PPS .config >> CONFIG_PPS=y >> # CONFIG_PPS_DEBUG is not set >> CONFIG_NTP_PPS=y > > If you really wanted to enable hardpps, then you _must_ disable NOHZ in > the kernel config and let ntpd know

Re: 1.1.6 build fails on FC30

2019-11-03 Thread ASSI via devel
Udo van den Heuvel via devel writes: > yet: > > # grep PPS .config > CONFIG_PPS=y > # CONFIG_PPS_DEBUG is not set > CONFIG_NTP_PPS=y If you really wanted to enable hardpps, then you _must_ disable NOHZ in the kernel config and let ntpd know (via flag3) that the kernel PLL is active. Otherwise, di

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 03-11-2019 12:15, Udo van den Heuvel via devel wrote: > > On 03-11-2019 12:06, Hal Murray wrote: >> >>> We do see pps and nmea but ntpd does not choose the local gps. Why? >> >> How do you "see" them? > > I use `ntpq -pn` to see what the status is. > > >>> NMEA(0) .GPS.0 l8 64

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 03-11-2019 12:06, Hal Murray wrote: > >> We do see pps and nmea but ntpd does not choose the local gps. Why? > > How do you "see" them? I use `ntpq -pn` to see what the status is. >> NMEA(0) .GPS.0 l8 64 377 0. 0. 0.0019 > > I don't understand what's going o

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Hal Murray via devel
> We do see pps and nmea but ntpd does not choose the local gps. Why? How do you "see" them? > NMEA(0) .GPS.0 l8 64 377 0. 0. 0.0019 I don't understand what's going on. The 377 says it is working, but the 0. and 0.0019 say that it isn't working. Do you hav

Re: 1.1.6 build fails on FC30

2019-11-03 Thread Udo van den Heuvel via devel
On 02-08-2019 10:31, Udo van den Heuvel via devel wrote: > On 02-08-19 07:33, Udo van den Heuvel via devel wrote: >> On one machine I see something weird: >> >> # ntpq -pn >> remote refid st t when poll reach delay offset >> jitter >> ===

Re: Determining the frequency offset

2019-11-03 Thread ASSI via devel
Achim Gratz via devel writes: > I have been experimenting with determining the frequency offset via the > MONOTONIC_RAW clock. At the moment I've implemented that as a Perl > script although it should eventually go into some sort of pps-raw device > driver that timestamps the incoming PPS pulses.