Dealing with lack of a real time clock

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

 



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.

I probably have the skills to write a fixtime script and a cron fixtime update, but I don't know how to alter the boot process. But I think that such a process is needed to address all the little oddities that come up when the system boots with time ZERO. And think about desktop setup where only after the user logs into wireless can ntp get the time.

Comments?


_______________________________________________
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