Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2024 10:16:34 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: ntpd vs ntpdate with no hardware clock
Message-ID:  <CANCZdfpPQ3jpHTHifCRBAwd3Tp85EHFLLVFyd7CWVzg-wBqk%2Bg@mail.gmail.com>
In-Reply-To: <Zoq7xD2BRT6YyF6l@www.zefox.net>
References:  <Zoq7xD2BRT6YyF6l@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000008585a9061caa9f60
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Try -q on ntpd. It will step system time, but only once.

FreeBSD will set the time to the last modification of /. At least for
UFS... I'm guessing this is why it was within a minute.... and is FreeBSD's
psuedo equivalent.

Warner.

On Sun, Jul 7, 2024, 10:01=E2=80=AFAM bob prohaska <fbsd@www.zefox.net> wro=
te:

> Just tried using ntpd with a fresh 14.1 installation on a Pi4.
> Near as I can tell, ntpd reports a failure due to the clock
> being off by too much, even if it's set manually to within
> a minute before reboot. Probably that's caused by the lack
> of a hardware clock on the Pi4, linux has a bodge called
> fake-hwclock. Is there an equivalent workaround for FreeBSD?
>
> In the meantime ntpdate seems to work, though deprecated
>
> Thanks for reading,
>
> bob prohaska
>
>
>

--0000000000008585a9061caa9f60
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Try -q on ntpd. It will step system time, but only once.<=
div dir=3D"auto"><br></div><div dir=3D"auto">FreeBSD will set the time to t=
he last modification of /. At least for UFS... I&#39;m guessing this is why=
 it was within a minute.... and is FreeBSD&#39;s psuedo equivalent.=C2=A0</=
div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner.</div></div><br><d=
iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Jul =
7, 2024, 10:01=E2=80=AFAM bob prohaska &lt;<a href=3D"mailto:fbsd@www.zefox=
.net">fbsd@www.zefox.net</a>&gt; wrote:<br></div><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex">Just tried using ntpd with a fresh 14.1 installation on a Pi4.<br>
Near as I can tell, ntpd reports a failure due to the clock<br>
being off by too much, even if it&#39;s set manually to within<br>
a minute before reboot. Probably that&#39;s caused by the lack<br>
of a hardware clock on the Pi4, linux has a bodge called<br>
fake-hwclock. Is there an equivalent workaround for FreeBSD?<br>
<br>
In the meantime ntpdate seems to work, though deprecated<br>
<br>
Thanks for reading,<br>
<br>
bob prohaska<br>
<br>
<br>
</blockquote></div>

--0000000000008585a9061caa9f60--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpPQ3jpHTHifCRBAwd3Tp85EHFLLVFyd7CWVzg-wBqk%2Bg>