Date: Sun, 7 Jul 2024 10:28:47 -0600 From: Warner Losh <imp@bsdimp.com> To: Mark Millard <marklmi@yahoo.com> Cc: bob prohaska <fbsd@www.zefox.net>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: ntpd vs ntpdate with no hardware clock Message-ID: <CANCZdfpGy0ZYeN7OaPc%2BreCM9KGi5vsR30gqSYcjrt_pU=6pwg@mail.gmail.com> In-Reply-To: <663B8441-A84B-481A-95D6-D22EDC4E66A3@yahoo.com> References: <Zoq7xD2BRT6YyF6l@www.zefox.net> <663B8441-A84B-481A-95D6-D22EDC4E66A3@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000338a9f061caacbaf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jul 7, 2024, 10:24=E2=80=AFAM Mark Millard <marklmi@yahoo.com> wrot= e: > On Jul 7, 2024, at 09:01, bob prohaska <fbsd@www.zefox.net> wrote: > > > 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 > > FYI: my /etc/rc.conf for media sometimes used on such > hardware has: > > ntpd_enable=3D"YES" > ntpd_sync_on_start=3D"YES" > ntpd_user=3D"root" > > "man 5 rc.conf" reports about ntpd_sync_on_start : > > ntpd_sync_on_start > (bool) If set to =E2=80=9CYES=E2=80=9D, ntpd(8) is run w= ith the -g flag, > which syncs the system's clock on startup. See ntpd(8) > for > more information regarding the -g option. This is a > preferred alternative to using ntpdate(8) or specifying > the > ntpdate_enable variable. > Maybe it is -g now. This is better advice than what i said.. Warner > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > > --000000000000338a9f061caacbaf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Sun, Jul 7, 2024, 10:24=E2=80=AFAM Mark Millard <= ;<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>> wrote:<br><= /div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le= ft:1px #ccc solid;padding-left:1ex">On Jul 7, 2024, at 09:01, bob prohaska = <<a href=3D"mailto:fbsd@www.zefox.net" target=3D"_blank" rel=3D"noreferr= er">fbsd@www.zefox.net</a>> wrote:<br> <br> > 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's set manually to within<br> > a minute before reboot. Probably that'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> FYI: my /etc/rc.conf for media sometimes used on such<br> hardware has:<br> <br> ntpd_enable=3D"YES"<br> ntpd_sync_on_start=3D"YES"<br> ntpd_user=3D"root"<br> <br> "man 5 rc.conf" reports about ntpd_sync_on_start :<br> <br> =C2=A0 =C2=A0 =C2=A0ntpd_sync_on_start<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(bool) If set= to =E2=80=9CYES=E2=80=9D, ntpd(8) is run with the -g flag,<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0which syncs t= he system's clock on startup.=C2=A0 See ntpd(8) for<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0more informat= ion regarding the -g option.=C2=A0 This is a<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0preferred alt= ernative to using ntpdate(8) or specifying the<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ntpdate_enabl= e variable.<br></blockquote></div></div><div dir=3D"auto"><br></div><div di= r=3D"auto">Maybe it is -g now. This is better advice than what i said..</di= v><div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div dir=3D"aut= o"><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex"> <br> =3D=3D=3D<br> Mark Millard<br> marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer noreferrer" targe= t=3D"_blank">yahoo.com</a><br> <br> <br> </blockquote></div></div></div> --000000000000338a9f061caacbaf--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpGy0ZYeN7OaPc%2BreCM9KGi5vsR30gqSYcjrt_pU=6pwg>