xntpd does not seem to adjust the clock
Naohiko Shimizu writes:
> Hi,
>
> I use slink. And I have a ntp server in my room
> which is syncronize to an external ntp server.
> I installed the xntpd3 package, but it does not seem to adjust the clock.
> (Of course I worte the /etc/ntp.conf file.)
> The clock runs evidently slow than the server (about 30 minutes a day).
> On the other hand, I have x86 machine which also runs slink.
> It seem to work fine.
>
> Does anyone have same problem or any solution?
>
Hello,
Which kernel are you using?
I just try to investigate and it looks that under 2.2.x you need to
apply something like the kernel patch below to have NTP working.
If you are actually running a 2.0.x kernel, a copy of
ntpstats/{loopstats,peerstats}, and the output of "adjtimex --print"
could help to find the problem.
Regards,
Loic
--- linux22/arch/alpha/kernel/osf_sys.c 1999/04/13 12:36:12 1.1.1.1
+++ linux22/arch/alpha/kernel/osf_sys.c 1999/04/24 19:01:05
@@ -1408,7 +1408,7 @@
offsetof(struct timex32, time)))
return -EFAULT;
- if ((ret = do_adjtimex(&txc)))
+ if ((ret = do_adjtimex(&txc)) < 0)
return ret;
/* copy back to timex32 */
@@ -1418,5 +1418,5 @@
(put_tv32(&txc_p->time, &txc.time)))
return -EFAULT;
- return 0;
+ return ret;
}
Reply to: