Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Jay A Estabrook <Jay.Estabrook@digital.com>
Subject: Re: Clock starts up with wrong date.
Date: 1998/10/30	[thread overview]
Message-ID: <363A876F.167E@digital.com> (raw)
In-Reply-To: 711ln7$u@linde.she.de

naegele@ShE.DE wrote:
> 
> If I fix the date
> in the ARC console to the correct year 1998 and boot up linux,
> then the system time und CMOS time is set to 2018 and also
> only the year is wrong, month day, time is ok.

NOTE: the below is true for *ALL* Linux/Alpha platforms.

---------------------------------------------------------

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, or later, 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, or later, 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.

--Jay++



  parent reply	other threads:[~1998-10-30  5:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-13  4:00 Clock starts up with wrong date John Walstra
1998-08-14  4:00 ` G. Hugh SONG
1998-08-16  4:00 ` Adam C. Powell
1998-08-17  4:00 ` cekim
1998-08-18  4:00   ` John Walstra
1998-08-19  4:00     ` cekim
1998-08-24  4:00     ` chitm
1998-08-25  4:00       ` John Walstra
1998-09-29  4:00   ` juhana paavola
1998-09-29  4:00     ` Raymond P Chudzinski
1998-09-29  4:00       ` Steve Peltz
1998-10-20  4:00         ` naegele
1998-10-20  4:00           ` Reinhard Meyer
1998-10-22  4:00             ` Peter
1998-10-26  5:00             ` naegele
1998-10-29  5:00               ` wbonner
1998-10-30  5:00               ` Jay A Estabrook [this message]
1998-11-02  5:00                 ` Robert Harley
1998-11-02  5:00                 ` C. Ray Ng
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