From: jestabro@amt.tay1.dec.com <jestabro@amt.tay1.dec.com>
Subject: Console Clock Setting, The Definitive Answer
Date: Sun, 05 Oct 1997 20:04:30 +0500 [thread overview]
Message-ID: <199710060004.UAA10877@alpha1.estabrook.org> (raw)
In-Reply-To: <Pine.SUN.3.95.971005134001.17607A-100000@katie.vnet.net>
NOTE: the below is true for *ALL* Linux/Alpha platforms, not just UDB.
Note also, this is the VERY LAST TIME I'm going to go through this, so
you'd better burn this into your brains, save the posting, or get someone
somewhere to make this part of *ANY* Linux/Alpha FAQ. PLEASE!!!!!
------------------------------------------------------------------------
ARC console and SRM console keep dates in the time-of-year (TOY) clock
in slightly different formats (actually, only the "year" field differs).
The "/sbin/clock" binary normally expects the format which SRM uses; you
can, however, tell it to expect ARC format instead, using the "-A" flag.
Thus, to read the clock when its kept in ARC format, say "clock -r -A",
and to write it, "clock -w -A". If its not written in the expected format,
the console (ARC or SRM) will prolly complain about it the next time it
has a chance... :-\
The best way to ensure you're using the correct format, is to set the date
via the console's date-setting facility; under ARC, it's a menu item some
place, under SRM it's a command (IIRC; try "help date").
Then you must ensure that the "clock" call in the RH script
/etc/rc.d/rc.sysconfig KNOWS WHAT FORMAT TO READ THE TOY IN!!!!
If you're using ARC console to boot MILO/kernel, do:
1. running RH 4.1, make sure /etc/sysconfig/clock contains:
CLOCKMODE="ARC"
2. running RH 4.2, make sure /etc/sysconfig/clock contains (at least):
ARC=true
Now, If you're using SRM console to directly boot a kernel, then:
1. RH 4.1, same file, set CLOCKMODE=""
2. RH 4.2, same file, set ARC=false
Refer to /etc/rc.d/rc.sysconfig for details about how the above are used
to call "clock" with the appropriate arguments.
Thank you all for your attention.
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407 decnet: tallis::jestabro
-------------------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-10-05 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.SUN.3.95.971005134001.17607A-100000@katie.vnet.net>
1997-10-05 15:04 ` jestabro [this message]
1997-10-06 3:51 ` Console Clock Setting, The Definitive Answer tfreeman
1997-10-05 15:08 ` Several Questions Regarding Digital UDB & RedHat 4.1/4.2 jestabro
1997-10-05 18:57 ` nm
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox