Re: RH4.0 pc164 Clock

geerten kuiper (geerten@bart.nl)
Thu, 14 Nov 1996 17:09:14 +0100 (MET)

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



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices