Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2024 22:07:17 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Warner Losh <imp@bsdimp.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:  <433162018.16507.1720382837193@localhost>
In-Reply-To: <CANCZdfrdFrCkt8VPd%2Bnv=UpVMzqHmX2kw=7wULwZvkQnHDcAhg@mail.gmail.com>
References:  <Zoq7xD2BRT6YyF6l@www.zefox.net> <454282477.15929.1720372600841@localhost> <CANCZdfrdFrCkt8VPd%2Bnv=UpVMzqHmX2kw=7wULwZvkQnHDcAhg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_16506_15357732.1720382837137
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

 
Van: Warner Losh <imp@bsdimp.com>
Datum: zondag, 7 juli 2024 19:18
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: bob prohaska <fbsd@www.zefox.net>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Onderwerp: Re: ntpd vs ntpdate with no hardware clock
> 
>  
> On Sun, Jul 7, 2024, 11:16AM Ronald Klop <ronald-lists@klop.ws> wrote:
>> 
>> I created fakertc for my rpi4. 
>>  
>> https://www.freshports.org/sysutils/fakertc/
>>  
>> Saves the time on shutdown and sets it back early at boot.
>>  
>> Plus I use ntpdate together with ntpd. Works fine.
> 
>  
> Curious why the root mod time isn't firing... it whould alrwady do that
>  
> Warner 
> __blockquote_end__
> 
> I'm using ZFS as root. AFAIK ZFS does not implement the usage of superblock unmount timestamp as time sync on boot like UFS. (or did you mean something else with "root mod time"?)
> 
> Regards,
> Ronald.
> 
>  >> 
>>  
>>> 
>>> Regards,
>>> Ronald
>>>  
>>> Van: bob prohaska <fbsd@www.zefox.net>
>>> Datum: 7 juli 2024 18:01
>>> Aan: freebsd-arm@freebsd.org
>>> Onderwerp: ntpd vs ntpdate with no hardware clock
>> 
>> 
>>  
> 

 
------=_Part_16506_15357732.1720382837137
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>&nbsp;
<p><strong>Van:</strong> Warner Losh &lt;imp@bsdimp.com&gt;<br>
<strong>Datum:</strong> zondag, 7 juli 2024 19:18<br>
<strong>Aan:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br>
<strong>CC:</strong> bob prohaska &lt;fbsd@www.zefox.net&gt;, "freebsd-arm@freebsd.org" &lt;freebsd-arm@freebsd.org&gt;<br>
<strong>Onderwerp:</strong> Re: ntpd vs ntpdate with no hardware clock</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="MultipartAlternativeViewer">
<div class="TextHTMLViewer" id="P.P.P">
<div>
<div>&nbsp;
<div class="gmail_quote">
<div class="gmail_attr">On Sun, Jul 7, 2024, 11:16AM Ronald Klop &lt;<a href="mailto:ronald-lists@klop.ws">ronald-lists@klop.ws</a>&gt; wrote:</div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I created fakertc for my rpi4.&nbsp;
<div>&nbsp;</div>

<div><a href="https://www.freshports.org/sysutils/fakertc/" target="_blank">https://www.freshports.org/sysutils/fakertc/</a></div>;

<div>&nbsp;</div>

<div>Saves the time on shutdown and sets it back early at boot.</div>

<div>&nbsp;</div>

<div>Plus I use ntpdate together with ntpd. Works fine.</div>
</div>
</blockquote>
</div>
</div>

<div>&nbsp;</div>

<div>Curious why the root mod time isn't firing... it whould alrwady do that</div>

<div>&nbsp;</div>

<div>Warner&nbsp;</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
I'm using ZFS as root. AFAIK ZFS does not implement the usage of superblock unmount timestamp as time sync on boot like UFS. (or did you mean something else with "root mod time"?)<br>
<br>
Regards,<br>
Ronald.<br>
<br>
&nbsp;
<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div>&nbsp;</div>

<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>Regards,</div>

<div>Ronald</div>

<div>&nbsp;
<p><small><strong>Van:</strong> bob prohaska &lt;<a href="mailto:fbsd@www.zefox.net" target="_blank">fbsd@www.zefox.net</a>&gt;<br>
<strong>Datum:</strong> 7 juli 2024 18:01<br>
<strong>Aan:</strong> <a href="mailto:freebsd-arm@freebsd.org" target="_blank">freebsd-arm@freebsd.org</a><br>
<strong>Onderwerp:</strong> ntpd vs ntpdate with no hardware clock</small></p>

<blockquote style="margin-left:5px;border-left:3px solid #ccc;margin-right:0px;padding-left:5px">
<div id="m_-3271010977458805280P">
<div id="m_-3271010977458805280P.P">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>
Thanks for reading,<br>
<br>
bob prohaska<br>
<br>
&nbsp;</div>

<hr></div>
</blockquote>
<br>
<br>
&nbsp;</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
&nbsp;</body></html>
------=_Part_16506_15357732.1720382837137--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?433162018.16507.1720382837193>