Hello<br>
<br>
I don't think any armv7 board like cubie has a battery to backup clock<br>
I think ntpd is the only way, and seems to work well on my bpi with c7. I will check if dns resolution works when date is 1970.<br>
<br>
I think setting the currenttime can be a good idea on the rbf tool :-)<div class='profimail-signature'><br>Nicolas Repentin<br>
<nicolas@shivaserv.fr></div><br><br><div class='profimail-cite-prefix'>Le 1 septembre 2015 18:12, Robert Moskowitz a écrit:<br></div><blockquote type='cite'>How is system time set at boot? Is ntpdate run after the network is
<br>
ready? How long does it retry waiting for the network to be available?
<br>
<br>
I have seen a number of challenges becuase the system time is back at
<br>
the epoch start as there is no battery rtc. And I wonder how many
<br>
armv7 boards have a battery to maintain time across boots?
<br>
<br>
Minimally, a process could right the time, in the proper format, to a
<br>
file, say /etc/currenttime every 5 min and at shutdown.
<br>
<br>
Then date can be run early in the boot process, piping this file in. It
<br>
would not be perfect and does not help, much for new installs, but
<br>
better than epoch start.
<br>
<br>
Plus /etc/currenttime can be at least set to the image build date/time
<br>
so not even firstboot will be at epoch start.
<br>
<br>
Opinions?
<br>
<br>
<br>
_______________________________________________
<br>
Arm-dev mailing list
<br>
Arm-dev@centos.org
<br>
https://lists.centos.org/mailman/listinfo/arm-dev
<br>
</blockquote>