Re: Dealing with lack of a real time clock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 19, 2014 at 08:25:24AM -0400, Robert Moskowitz wrote:
>A lot of the arm boards, or so I have been told, are like mine; no rtc.
>
>This is causing a lot of interesting problems with boot up until ntp
>can set the time (or is it ntpdate?).
>
>So I was thing of how to 'fix' this.  Over on the Redsleeve list a
>fellow that is dealing with this on his RasberryPi noted:
>http://zenit.senecac.on.ca/wiki/index.php/Nortc
>
>This might be one solution if someone took it on (I have no skills in
>coding or building packages).
>
>But I was thinking of a scripted approach.
>
>First you need a file that has date/time in a format that it can be
>piped into the date command like:
>
>date < /etc/fixtime
>
>The image build process would put the build date into this file for
>starters.  At firstboot, if the time is near zero (some seconds
>having passed since poweron), a few things happen:
>
>The fixtime script is run to set the time to the image build date/time.
>The fixtime script is set to run at every boot as one of the first
>processes.
>A cron job is enabled (hourly or dayly) to update /etc/fixtime so the
>next boot will have a more current time.

Hi Robert,

You're describing almost exactly the fake-hwclock package I wrote for
Debian a couple of years ago, to solve exactly this problem... :-)

Explicitly it also saves the current time at shutdown too.

Cheers,
-- 
Steve McIntyre                                steve.mcintyre@xxxxxxxxxx
<http://www.linaro.org/> Linaro.org | Open source software for ARM SoCs

_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux