From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199710060004.UAA10877@alpha1.estabrook.org> Date: Sun, 05 Oct 1997 20:04:30 +0500 From: jestabro@amt.tay1.dec.com Subject: Console Clock Setting, The Definitive Answer In-Reply-To: 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