Rick Thomas writes:
> Thanks, Harlan, for the quick reply!
> 
> On Feb 12, 2015, at 1:57 PM, Harlan Stenn <[email protected]> wrote:
> 
> > Rick Thomas writes:
> >> Hi All,
> >>=20
> >> I have a machine with a really bad clock.  When I run NTP on it, the
> >> freq goes straight to 500.0 (over a period of a few days) and stays =
> there,
> >> while the offset grows and grows.
> >>=20
> >> I recently switched this machine from Debian Linux to FreeBSD =
> (wanting to
> >> learn more about FreeBSD).  Under Linux, I used adjtimex to modify =
> the TICK
> >> value and (once I had converged on the right value) NTP was able to
> >> stabilize the clock.
> >>=20
> >> Is there an equivalent hack for FreeBSD?
> >=20
> > Try 'tickadj'.
> >=20
> > H
> 
> The tickadj command is in the net/ntp-rc package.
> When I try to compile that package I get:
> 
> > [rbthomas@grey ~]$ portmaster net/ntp-rc
> > mkdir: /usr/ports/packages/portmaster-backup: Permission denied
> >=20
> > =3D=3D=3D>>> Port directory: /usr/ports/net/ntp-rc
> >=20
> >     =3D=3D=3D>>> This port is marked FORBIDDEN
> >     =3D=3D=3D>>> CVE-2013-5211 / VU
> >=20
> >=20
> >     =3D=3D=3D>>> If you are sure you can build it, remove the
> >            FORBIDDEN line in the Makefile and try again.
> > [rbthomas@grey ~]$=20
> >=20
> 
> And an excerpt from the Makefile shows:
> 
> > COMMENT=3D        The Network Time Protocol Distribution
> > IGNORE=3D         RC branch not currently active
> > FORBIDDEN=3D      CVE-2013-5211 / VU#348126
> > BROKEN=3D         Does not configure

I'm not familiar with this one...

> Also, googling around a bit seems to indicate that tickadj would not
> be appropriate for the =93tickles=94 kernel in FreeBSD-10.1.
> 
> If it makes a difference, the hardware is a PowerPC Mac G4 =
> =93quicksilver=94.
> The only available timecounter is =93timebase=94.
> Can I do a sysctl to modify =93timebase.frequency=94.
> If so, what direction should I modify it in?
> 
> > [rbthomas@grey /usr/ports/net/ntp-rc]$ sysctl kern.timecounter
> > kern.timecounter.fast_gettime: 1
> > kern.timecounter.tick: 1
> > kern.timecounter.choice: timebase(0) dummy(-1000000)
> > kern.timecounter.hardware: timebase
> > kern.timecounter.alloweddeviation: 5
> > kern.timecounter.stepwarnings: 0
> > kern.timecounter.tc.timebase.mask: 4294967295
> > kern.timecounter.tc.timebase.counter: 593642255
> > kern.timecounter.tc.timebase.frequency: 33290001
> > kern.timecounter.tc.timebase.quality: 0

I'm not familiar with the above, either.

While this won't help a lot, if you figure this out please write
something up and we can find a good place to start putting this
information at:

 https://support.ntp.org/bin/view/Support/TroubleshootingNTP

H
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions

Reply via email to