Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: RH4.0 pc164 Clock
@ 1996-11-14 16:09 geerten kuiper
  0 siblings, 0 replies; 4+ messages in thread
From: geerten kuiper @ 1996-11-14 16:09 UTC (permalink / raw)


Johan,

I understand it is best to set the firmware clock from the ARC-console, and
never from within Linux.

At boot time the command "clock -A -a" will set the kernel's idea of time
from the firmware clock. From then on the firmware clock isn't used anymore
(until the next boot)

BUT: reading the firmware clock with "clock -A" often fails, resulting in
funny system times like yours.

I tested this with the following command:
echo `date` `clock -A` >>logfile
which I executed a number of times. The results:

Thu Nov 14 16:03:57 MET 1996 Fri Nov 30 00:03:03 1979
Thu Nov 14 16:04:08 MET 1996 Wed Apr 4 04:04:04 1984
Thu Nov 14 16:05:02 MET 1996 Sun May 5 05:05:05 1985
Thu Nov 14 16:05:07 MET 1996 Sun May 5 05:05:05 1985
Thu Nov 14 16:05:31 MET 1996 Thu Nov 14 16:05:32 1996
Thu Nov 14 16:05:33 MET 1996 Fri Nov 30 00:05:05 1979
Thu Nov 14 16:05:46 MET 1996 Sun May 5 05:05:05 1985
Thu Nov 14 16:05:47 MET 1996 Thu Nov 14 16:05:49 1996
Thu Nov 14 16:06:56 MET 1996 Thu Nov 14 16:06:58 1996
Thu Nov 14 16:07:00 MET 1996 Thu Nov 14 16:07:02 1996
Thu Nov 14 16:07:48 MET 1996 Thu Nov 14 16:07:49 1996
Thu Nov 14 16:07:49 MET 1996 Thu Nov 14 16:07:50 1996
Thu Nov 14 16:07:59 MET 1996 Thu Nov 14 16:08:03 1996
Thu Nov 14 16:08:09 MET 1996 Mon Nov 30 00:00:08 1987
Thu Nov 14 16:08:13 MET 1996 Thu Nov 14 16:08:14 1996
Thu Nov 14 16:08:17 MET 1996 Thu Nov 14 16:08:18 1996
Thu Nov 14 16:08:23 MET 1996 Mon Nov 30 00:00:08 1987
Thu Nov 14 16:08:26 MET 1996 Thu Nov 14 16:08:27 1996
Thu Nov 14 16:09:36 MET 1996 Fri Nov 30 00:00:09 1979
Thu Nov 14 16:09:39 MET 1996 Thu Nov 14 16:09:40 1996
Thu Nov 14 16:11:12 MET 1996 Mon Nov 11 11:11:11 1991
Thu Nov 14 16:11:14 MET 1996 Mon Nov 11 11:11:11 1991
Thu Nov 14 16:12:13 MET 1996 Thu Nov 14 16:12:15 1996
Thu Nov 14 16:12:18 MET 1996 Thu Nov 14 16:12:20 1996
Thu Nov 14 16:12:21 MET 1996 Thu Nov 14 16:12:22 1996
Thu Nov 14 16:13:16 MET 1996 Thu Nov 14 16:13:18 1996
Thu Nov 14 16:13:18 MET 1996 Thu Nov 14 16:13:20 1996
Thu Nov 14 16:13:53 MET 1996 Thu Nov 14 16:13:55 1996
Thu Nov 14 16:13:56 MET 1996 Thu Nov 14 16:13:58 1996
Thu Nov 14 16:14:00 MET 1996 Tue Feb 14 14:14:14 1995
Thu Nov 14 16:14:00 MET 1996 Tue Feb 14 14:14:14 1995
Thu Nov 14 16:14:02 MET 1996 Thu Nov 14 16:14:04 1996
Thu Nov 14 16:15:14 MET 1996 Fri Mar 15 15:15:15 1996
Thu Nov 14 16:15:15 MET 1996 Fri Mar 15 15:15:15 1996
Thu Nov 14 16:15:16 MET 1996 Thu Nov 14 16:15:18 1996
Thu Nov 14 16:15:19 MET 1996 Wed Nov 30 00:00:15 1994
Thu Nov 14 16:16:40 MET 1996 Wed Apr 16 16:16:16 1997
Thu Nov 14 16:16:43 MET 1996 Fri Nov 30 00:16:16 1979

as you can see, many times the ARC time is read correctly, but also many
times it is not.
Note those occasions where it says 11-11-(1980+11) 11:11:11 (at 11 past four) or
4-4-(1980+4) 04:04:04 (at 4 past four). There is some system to this madness !

I guess the implementors of "clock" should look into this. Any idea who they
are ?

Groeten,
Geerten.

> 
>Here is my system time:
> 
>Mon Nov 14 01:35:20 MST 2016
> 
>the culprit is /sbin/clock which reports mostly this
>time and also several other varietiess.
>
>If I try to update the time using timetool, it 
>completely trashes the clock setting in NVRAM or CMOS
>or wherever.
>
>I've tried clock -A and -J to see if these would get it right,
>but this gets it wronger.
>
>Anyone have a fix?
>
>Johan
>
>--
>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
>
>
>

Geerten Kuiper            |  "It is customary to append a signature or 
Corn. Houtmanstraat 113   |   .sig to a mail message, usually containing 
2593 RG   Den Haag        |   information on the author, along with a 
Nederland                 |   joke or a motto."
                          |                                Olaf Kirch
                          |        LINUX Network Administrators Guide

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: RH4.0 pc164 Clock
@ 1996-11-14 16:49 Martin Ostermann
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Ostermann @ 1996-11-14 16:49 UTC (permalink / raw)


Johan Grape <grape@asgard.dartmouth.edu> writes:
> Here is my system time:
>  
> Mon Nov 14 01:35:20 MST 2016
[..]
> Anyone have a fix?

The clock of my Jensen used to be 20 years off like this with old
firmwares. Upgrading to a new firmware version solved that for me.

Before that, I just put a `date -s "-20 years"' instead of 'clock'. 
in rc.sysinit. 

Martin

-- 
Martin Ostermann                | mailto:ost@comnets.rwth-aachen.de
Communication Networks          | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany                         | faxto:++49/241/8890378

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RH4.0 pc164 Clock
@ 2016-11-14  9:05 Johan Grape
  1996-11-14 15:54 ` jestabro
  0 siblings, 1 reply; 4+ messages in thread
From: Johan Grape @ 2016-11-14  9:05 UTC (permalink / raw)


Here is my system time:
 
Mon Nov 14 01:35:20 MST 2016
 
the culprit is /sbin/clock which reports mostly this
time and also several other varietiess.

If I try to update the time using timetool, it 
completely trashes the clock setting in NVRAM or CMOS
or wherever.

I've tried clock -A and -J to see if these would get it right,
but this gets it wronger.

Anyone have a fix?

Johan

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-14  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-14 16:09 RH4.0 pc164 Clock geerten kuiper
  -- strict thread matches above, loose matches on Subject: below --
1996-11-14 16:49 Martin Ostermann
2016-11-14  9:05 Johan Grape
1996-11-14 15:54 ` jestabro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox