Imported the means for migrating to gcc-2.5.8 when we feel the urge and
[unix-history] / contrib / xntpd / hints / linux
CommitLineData
98771864
GW
1
2Requirements: kernel 0.99.14 or newer, libc 4.5 or newer
3------------
4
5 With this configuration, xntp should build an run right out of the
6box (see generic hints for how-to), with one big limitation: tickadj doesn't
7work yet. This is especially painful since PCs are usually equipped with
8untuned, badly-drifting quartzes, values up to 200 ppm being no exception.
9Because the loop filter algorithms are limited to compensating no more than
10100 ppm, currently only one workaround is possible:
11 Compile your own kernel and adjust linux/include/linux/timex.h,
12line 67 (in pl14):
13
14#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
15
16 Since this is surely not true for your hardware, adjust the hundreds
17to match your quartz. Adding 100 compensates for a drift of -83.8 ppm
18(1/CLOCK_TICK_RATE). The number gets rounded to the nearest 100 so don't
19bother to tune any finer.
20
21Fixing tickadj is already in my work queue, so the previous comment should be
22obsolete RSN. If you really need to run xntp on any earlier versions of the
23kernel or libc, or have any other question not covered in the READMEs / hint
24files (sorry, necessary comment in the Linux community ;-) feel free to ask
25me (duwe@informatik.uni-erlangen.de)
26
27xntp3.3b of 1993/12/06 : remember to change #define ntp_adjtime adjtimex to
28__adjtimex in the Linux section (line 316). This is hopefully done if you
29(don't :-) see this paragraph in the xntp3.x distribution.