[comp.sys.mips] ntp for risc/os?

datri@convex.com (Anthony A. Datri) (03/07/91)

I managed to get ntp 3.4 to build on a 4.51 machine, but when it runs it
logs the following:

Mar  6 12:04:21 bambi ntpd[10343]: /usr/local/bin/ntpd version $Revision: 3.4.1.9
Mar  6 12:04:21 bambi ntpd[10343]: patchlevel 13
Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tickadj
Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var hz
Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tick


Has anyone out there had more success?
--


--
In MDDT no one can hear you scream

bin@primate.wisc.edu (Brain in Neutral) (03/07/91)

From article <1991Mar06.181053.5033@convex.com>, by datri@convex.com (Anthony A. Datri):
> I managed to get ntp 3.4 to build on a 4.51 machine, but when it runs it
> logs the following:
> 
> Mar  6 12:04:21 bambi ntpd[10343]: /usr/local/bin/ntpd version $Revision: 3.4.1.9
> Mar  6 12:04:21 bambi ntpd[10343]: patchlevel 13
> Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tickadj
> Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var hz
> Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tick

I also get the hz message but not the others.
Did you patch ntp to use "/unix" and not "/vmunix"?   I had to do
that... (RISC/os 4.01)

Paul DuBois
dubois@primate.wisc.edu

k2@bl.physik.tu-muenchen.de (Klaus Steinberger) (03/07/91)

datri@convex.com (Anthony A. Datri) writes:

>I managed to get ntp 3.4 to build on a 4.51 machine, but when it runs it
>logs the following:

>Mar  6 12:04:21 bambi ntpd[10343]: /usr/local/bin/ntpd version $Revision: 3.4.1.9
>Mar  6 12:04:21 bambi ntpd[10343]: patchlevel 13
>Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tickadj
>Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var hz
>Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tick

I have ported xntp to EP/IX 1.2.3 (basically RiscOS 4.51). It runs
since four months on two CD4330 (Mips Magnum) and one CD4680 (RC6280)
in our lab. I prefer xntp against ntp, it supports the newer protocol
releases.

You can get a tar file with the sources, and completly built binaries
with anonymous ftp from:

charly.bl.physik.tu-muenchen.de [129.187.160.10]

The file is in pub/mips/xntp-1.4.tar.Z

Sincerely,
Klaus Steinberger
--
Klaus Steinberger               Beschleunigerlabor der TU und LMU Muenchen
Phone: (+49 89)3209 4287        Hochschulgelaende
FAX:   (+49 89)3209 4280        D-8046 Garching, Germany
BITNET: K2@DGABLG5P             Internet: k2@bl.physik.tu-muenchen.de

stacy@sobeco.com (s.millions) (03/12/91)

In <1991Mar06.181053.5033@convex.com> datri@convex.com (Anthony A. Datri) writes:

>I managed to get ntp 3.4 to build on a 4.51 machine, but when it runs it
>logs the following:

>Mar  6 12:04:21 bambi ntpd[10343]: /usr/local/bin/ntpd version $Revision: 3.4.1.9
>Mar  6 12:04:21 bambi ntpd[10343]: patchlevel 13
>Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tickadj
>Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var hz
>Mar  6 12:04:21 bambi ntpd[10343]: Unknown kernal var tick

>Has anyone out there had more success?


Parallel development or what :-) I started porting ntp last week... 

You have two problems,

1 - you need to edit ntpd.c and change
	nlist("/vmunix", nl);
to
	nlist("/vmunix", nl);

2 - The mips kernel does not have a hz variable you need to use the
    HZ constant defined in <sys/param.h>

Other than that, it has been working quite nicely.

-stacy

-- 
"You have only 24 hours to live.... well, 22 hours. Sorry      stacy@sobeco.com
I kept you waiting so long" - doctor to Homer Simpson        uunet!sobeco!stacy

bin@primate.wisc.edu (Brain in Neutral) (03/12/91)

> You have two problems,
> 
> 1 - you need to edit ntpd.c and change
> 	nlist("/vmunix", nl);
> to
> 	nlist("/vmunix", nl);

Well, that should be easy. :-)

--
Paul DuBois
dubois@primate.wisc.edu

stacy@sobeco.com (s.millions) (03/12/91)

stacy@sobeco.com (s.millions; ie Me) writes:

>You have two problems,
>
>1 - you need to edit ntpd.c and change
>	nlist("/vmunix", nl);
>to
>	nlist("/vmunix", nl);

OK, so my brain wasn't fully functional at the time :-).
Try this instead:

	nlist("/unix", nl);

-stacy

-- 
"You have only 24 hours to live.... well, 22 hours. Sorry      stacy@sobeco.com
I kept you waiting so long" - doctor to Homer Simpson        uunet!sobeco!stacy