[LV] [RFC] RTC/TOY cleanup: move to new RTC API

Maciej W. Rozycki macro at linux-mips.org
Mon Apr 10 16:24:37 CEST 2006


On Mon, 10 Apr 2006, Kenn Humborg wrote:

> Standard operating procedure on VAX/VMS is to run SET TIME at least
> once per year.  This command writes the current year to SYS.EXE and
> the month/day/etc to the TOY register.  As long as you do a SET TIME
> before May the following year, you'll be OK.
> 
> In our case, we should probably write the current year to a known
> place in the kernel image.

 I'd recommend an unused location of NVRAM if available in a given system 
(a working trick might be to use the console variable that specifies 
kernel arguments; there's probably a firmware-to-kernel ABI to access it) 
or a file under /etc (updated regularly with `cron' or however).  Network 
boots could use MOP to retrieve the remote time initially, but if a 
network is available, then *the* solution is NTP.

  Maciej
_______________________________________________
Linux-Vax mailing list
Linux-Vax at pergamentum.com
http://www.pergamentum.com/mailman/listinfo/linux-vax




More information about the Vax-linux mailing list