Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Clock starts up with wrong date.
@ 1998-08-13  4:00 John Walstra
  1998-08-14  4:00 ` G. Hugh SONG
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: John Walstra @ 1998-08-13  4:00 UTC (permalink / raw)


I thought I fixed this, but is seem like it came back.  I had my machine
on for about 4 months and decided it reset it.  When it came up, it was
1991.  I had previously updated "clock" and "milo", which stopped my
clock from running fast.  Now the clock runs fine, but the date is wrong
after booting.

I am running RedHat 5.1.  My machine has Alphabios, 164SX, ARC. The file
/etc/sysconfig/clock
is as following

UTC=false
ARC=true

I'm bewildered by this,
John
 
......................................................................
John Walstra                               Motorola, Inc. CIG
mailto:walstra@cig.mot.com                 1475 West Shure Drive 2C4
phone :(847) 632-3071                      Arlington Heights, IL 60004
fax   :(847) 632-4164



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

* Re: Clock starts up with wrong date.
  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
  2 siblings, 0 replies; 19+ messages in thread
From: G. Hugh SONG @ 1998-08-14  4:00 UTC (permalink / raw)
  To: John Walstra

In article <35D36FB5.47555D3D@cig.mot.com>, John Walstra <walstra@cig.mot.com> writes:
> I thought I fixed this, but is seem like it came back.  I had my machine
> on for about 4 months and decided it reset it.  When it came up, it was
> 1991.  I had previously updated "clock" and "milo", which stopped my
> clock from running fast.  Now the clock runs fine, but the date is wrong
> after booting.
> 
> I am running RedHat 5.1.  My machine has Alphabios, 164SX, ARC. The file
> /etc/sysconfig/clock
> is as following
> 
> UTC=false
> ARC=true
> 
> I'm bewildered by this,
> John
>  
> ......................................................................
> John Walstra                               Motorola, Inc. CIG
> mailto:walstra@cig.mot.com                 1475 West Shure Drive 2C4
> phone :(847) 632-3071                      Arlington Heights, IL 60004
> fax   :(847) 632-4164

After posting my article, I found your article describing 
the same symptom.  Yes!  This kind of system misbehavior is
my first experience.  The fact is that the system arrived
only yesterday.  Today, I updated several RPMs.  I think
that one of the updated RPMs caused this symptom.  The most
suspicious thing probably is my updating glibc-related RPMs.

Have you done anything suspicious in your case?

Regards,

-- 
G. Hugh Song

PS: please remove "NOSPAM"



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

* Re: Clock starts up with wrong date.
  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
  2 siblings, 0 replies; 19+ messages in thread
From: Adam C. Powell @ 1998-08-16  4:00 UTC (permalink / raw)
  To: John Walstra, G.\aHugh\aSONG

John Walstra wrote:

> I thought I fixed this, but is seem like it came back.  I had my machine
> on for about 4 months and decided it reset it.  When it came up, it was
> 1991.  I had previously updated "clock" and "milo", which stopped my
> clock from running fast.  Now the clock runs fine, but the date is wrong
> after booting.
>
> I am running RedHat 5.1.  My machine has Alphabios, 164SX, ARC. The file
> /etc/sysconfig/clock
> is as following
>
> UTC=false
> ARC=true

Try adding the line:

CLOCKMODE=ARC

It solved the problem on my machine.

Zeen,

-Adam      "...the firmament sheweth His handywork" (Ps 19:1)    ///
............................................................__  ///|
Adam "Cold Fusion" Powell IV Firmament Science & Engineering\\\///_|
http://lyre.mit.edu/~powell/ Standing on the Solid State Rock\XX/  |MIGA





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

* Re: Clock starts up with wrong date.
  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-09-29  4:00   ` juhana paavola
  2 siblings, 2 replies; 19+ messages in thread
From: cekim @ 1998-08-17  4:00 UTC (permalink / raw)


double UGH....

This again.

Clock is broken (still it seems) and has been so for several rh releases now.

you need to download the clock binary at dec's gatekeeper site.

I would give you a link but trying to do so has crashed my xserver 3 times
now, so you will have to do with knowing that it is the same site that holds
the milo images.  go to the linux-alpha home page and then the faq on booting
alpha linux.  They have a link to the dec ftp site there.

poke around and you will find a clock binary for redhat (4.2 binary works just
fine under 5.1 if that is all that is there.

BTW you are in for some very strange problems if you don't fix this!

/Mike

In article <35D36FB5.47555D3D@cig.mot.com>,
  John Walstra <walstra@cig.mot.com> wrote:
> I thought I fixed this, but is seem like it came back.  I had my machine
> on for about 4 months and decided it reset it.  When it came up, it was
> 1991.  I had previously updated "clock" and "milo", which stopped my
> clock from running fast.  Now the clock runs fine, but the date is wrong
> after booting.
>
> I am running RedHat 5.1.  My machine has Alphabios, 164SX, ARC. The file
> /etc/sysconfig/clock
> is as following
>
> UTC=false
> ARC=true
>
> I'm bewildered by this,
> John
>
> ......................................................................
> John Walstra                               Motorola, Inc. CIG
> mailto:walstra@cig.mot.com                 1475 West Shure Drive 2C4
> phone :(847) 632-3071                      Arlington Heights, IL 60004
> fax   :(847) 632-4164
>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum



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

* Re: Clock starts up with wrong date.
  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-09-29  4:00   ` juhana paavola
  1 sibling, 2 replies; 19+ messages in thread
From: John Walstra @ 1998-08-18  4:00 UTC (permalink / raw)


cekim@ix.netcom.com wrote:
> 
> double UGH....
> 
> This again.
> 
> Clock is broken (still it seems) and has been so for several rh releases now.
> 

Yep, I had the problem once fixed by downloading "clock" from
dev.gatekeeper.com.  Once I got RedHat 5.1, I updated "milo" and "clock"
and the date went crazy (took me time to notice).  It just seemed
logical to me that if "clock" was fixed that it would be included on the
next distribution of RedHat (ie 5.1).  Silly me.

Problem is now fixed and we learned that RedHat 5.1 still has a problem
with "clock."

......................................................................
John Walstra                               Motorola, Inc. CIG
mailto:walstra@cig.mot.com                 1475 West Shure Drive 2C4
phone :(847) 632-3071                      Arlington Heights, IL 60004
fax   :(847) 632-4164



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

* Re: Clock starts up with wrong date.
  1998-08-18  4:00   ` John Walstra
@ 1998-08-19  4:00     ` cekim
  1998-08-24  4:00     ` chitm
  1 sibling, 0 replies; 19+ messages in thread
From: cekim @ 1998-08-19  4:00 UTC (permalink / raw)


I made that silly asumption at first as well (they would fix this since it is
posted in many reseller's faqs, has appeared hundreds of times on various
newsgroups over the past 2 years......)

Oh well, I guess that is why I downloaded it, rather than purchasing it.

(actually, I should/will buy it just to support thier good work, but they sure
do shovel it out the door a little early...on occaision).

/Mike

In article <35D9ECA6.11134D5C@cig.mot.com>,
  John Walstra <walstra@cig.mot.com> wrote:
> cekim@ix.netcom.com wrote:
> >
> > double UGH....
> >
> > This again.
> >
> > Clock is broken (still it seems) and has been so for several rh releases
now.
> >
>
> Yep, I had the problem once fixed by downloading "clock" from
> dev.gatekeeper.com.  Once I got RedHat 5.1, I updated "milo" and "clock"
> and the date went crazy (took me time to notice).  It just seemed
> logical to me that if "clock" was fixed that it would be included on the
> next distribution of RedHat (ie 5.1).  Silly me.
>
> Problem is now fixed and we learned that RedHat 5.1 still has a problem
> with "clock."
>
> ......................................................................
> John Walstra                               Motorola, Inc. CIG
> mailto:walstra@cig.mot.com                 1475 West Shure Drive 2C4
> phone :(847) 632-3071                      Arlington Heights, IL 60004
> fax   :(847) 632-4164
>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum



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

* Re: Clock starts up with wrong date.
  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
  1 sibling, 1 reply; 19+ messages in thread
From: chitm @ 1998-08-24  4:00 UTC (permalink / raw)


In article <35D9ECA6.11134D5C@cig.mot.com>,
  John Walstra <walstra@cig.mot.com> wrote:
> cekim@ix.netcom.com wrote:

> Yep, I had the problem once fixed by downloading "clock" from
> dev.gatekeeper.com.  Once I got RedHat 5.1, I updated "milo" and "clock"
> and the date went crazy (took me time to notice).  It just seemed
> logical to me that if "clock" was fixed that it would be included on the
> next distribution of RedHat (ie 5.1).  Silly me.
>
> Problem is now fixed and we learned that RedHat 5.1 still has a problem
> with "clock."

I tried  to download a clock.pc164.gz from gatekeeper.dec.com and it
just doesn't work on my 164LX (RH5.1) machine. Any help or other places
to download??

Christian

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum



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

* Re: Clock starts up with wrong date.
  1998-08-24  4:00     ` chitm
@ 1998-08-25  4:00       ` John Walstra
  0 siblings, 0 replies; 19+ messages in thread
From: John Walstra @ 1998-08-25  4:00 UTC (permalink / raw)


chitm@my-dejanews.com wrote:
> 
> In article <35D9ECA6.11134D5C@cig.mot.com>,
>   John Walstra <walstra@cig.mot.com> wrote:
> > cekim@ix.netcom.com wrote:
> 
> > Yep, I had the problem once fixed by downloading "clock" from
> > dev.gatekeeper.com.  Once I got RedHat 5.1, I updated "milo" and "clock"
> > and the date went crazy (took me time to notice).  It just seemed
> > logical to me that if "clock" was fixed that it would be included on the
> > next distribution of RedHat (ie 5.1).  Silly me.
> >
> > Problem is now fixed and we learned that RedHat 5.1 still has a problem
> > with "clock."
> 
> I tried  to download a clock.pc164.gz from gatekeeper.dec.com and it
> just doesn't work on my 164LX (RH5.1) machine. Any help or other places
> to download??
> 
> Christian
> 
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

What doesn't work, system date is wrong date after booting or clock keep
randomly skipping into the future?

If you have the wrong date after booting try this.

	Reboot computer so you have the wrong date.

	At the prompt type "clock -Ar"

		If date is correct then change ARC=true in /etc/sysconfig/clock

	else

	At the prompt type "clock -r"
	
		If date is correct then change ARC=false in /etc/sysconfig/clock

	Reboot

I have an ARC console, but strange enough I have to run clock without
having ARC=true.

......................................................................
John Walstra                               Motorola, Inc. CIG
mailto:walstra@cig.mot.com                 1475 West Shure Drive 2C4
phone :(847) 632-3071                      Arlington Heights, IL 60004
fax   :(847) 632-4164



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

* Re: Clock starts up with wrong date.
  1998-08-17  4:00 ` cekim
  1998-08-18  4:00   ` John Walstra
@ 1998-09-29  4:00   ` juhana paavola
  1998-09-29  4:00     ` Raymond P Chudzinski
  1 sibling, 1 reply; 19+ messages in thread
From: juhana paavola @ 1998-09-29  4:00 UTC (permalink / raw)


What is the directory to clock ?
(I'm using RH5.1...on Alpha XL)

Tired to poking round in gatekeeper...



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

* Re: Clock starts up with wrong date.
  1998-09-29  4:00   ` juhana paavola
@ 1998-09-29  4:00     ` Raymond P Chudzinski
  1998-09-29  4:00       ` Steve Peltz
  0 siblings, 1 reply; 19+ messages in thread
From: Raymond P Chudzinski @ 1998-09-29  4:00 UTC (permalink / raw)
  To: juhana paavola

I've what I believe to be the same problem. The year shows up as 2018
accourding to the 'date'
command. This despite the year showing 1998 in the Hardware setup. It
seems the kernel
is messing it up when it reads from the hardware.

Does anyone know if this problem is documented by DEC?

My config,
166mhz UDB
Redhat 5.0


juhana paavola wrote:

> What is the directory to clock ?
> (I'm using RH5.1...on Alpha XL)
>
> Tired to poking round in gatekeeper...

--
Raymond P Chudzinski
Network Management Systems Development
Verio
rchudzinski@verio.net






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

* Re: Clock starts up with wrong date.
  1998-09-29  4:00     ` Raymond P Chudzinski
@ 1998-09-29  4:00       ` Steve Peltz
  1998-10-20  4:00         ` naegele
  0 siblings, 1 reply; 19+ messages in thread
From: Steve Peltz @ 1998-09-29  4:00 UTC (permalink / raw)


In article <6ur9nt$6j2$1@news.onramp.net>,
Raymond P Chudzinski  <chud@verio.net> wrote:
>I've what I believe to be the same problem. The year shows up as 2018
>accourding to the 'date'
>command. This despite the year showing 1998 in the Hardware setup. It
>seems the kernel
>is messing it up when it reads from the hardware.
>
>Does anyone know if this problem is documented by DEC?

Edit the file /etc/sysconfig/clock, and make sure it says ARC=true.

This file is referenced in /etc/rc.d/rc.sysinit; also see the
documentation on /sbin/clock.



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

* Re: Clock starts up with wrong date.
  1998-09-29  4:00       ` Steve Peltz
@ 1998-10-20  4:00         ` naegele
  1998-10-20  4:00           ` Reinhard Meyer
  0 siblings, 1 reply; 19+ messages in thread
From: naegele @ 1998-10-20  4:00 UTC (permalink / raw)


Steve Peltz <peltz@jaka.ece.uiuc.edu> wrote:
: In article <6ur9nt$6j2$1@news.onramp.net>,
: Raymond P Chudzinski  <chud@verio.net> wrote:
:>I've what I believe to be the same problem. The year shows up as 2018
:>accourding to the 'date'
:>command. This despite the year showing 1998 in the Hardware setup. It
:>seems the kernel
:>is messing it up when it reads from the hardware.
:>
:>Does anyone know if this problem is documented by DEC?

Same problem here.

: Edit the file /etc/sysconfig/clock, and make sure it says ARC=true.

After a cold start I get as year 2038 (month/day/time are correct)
wether I have ARC=true or not.

: This file is referenced in /etc/rc.d/rc.sysinit; also see the
: documentation on /sbin/clock.




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

* Re: Clock starts up with wrong date.
  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
  0 siblings, 2 replies; 19+ messages in thread
From: Reinhard Meyer @ 1998-10-20  4:00 UTC (permalink / raw)


In article <70i6he$m51@linde.she.de>,  <naegele@ShE.DE> wrote:
>Steve Peltz <peltz@jaka.ece.uiuc.edu> wrote:
>: In article <6ur9nt$6j2$1@news.onramp.net>,
>: Raymond P Chudzinski  <chud@verio.net> wrote:
>:>I've what I believe to be the same problem. The year shows up as 2018
>:>accourding to the 'date'
>:>command. This despite the year showing 1998 in the Hardware setup. It
>:>seems the kernel
>:>is messing it up when it reads from the hardware.
>:>
>:>Does anyone know if this problem is documented by DEC?
>
>Same problem here.
>
>: Edit the file /etc/sysconfig/clock, and make sure it says ARC=true.
>
>After a cold start I get as year 2038 (month/day/time are correct)
>wether I have ARC=true or not.
>
>: This file is referenced in /etc/rc.d/rc.sysinit; also see the
>: documentation on /sbin/clock.
>

You may want to replace /sbin/clock with
ftp://gatekeeper.dec.com/pub/DEC/Linux-Alpha/Kernels/clock-pc164-rh50

Seems to work for my alpha (RH 5.1). But i did only 10 cold boots to
verify it.

For reference, I will append the article which gave this solution.

- Reinhard

'deja news' article <6r9vp2$abq$1@nnrp1.dejanews.com>
from cekim@ix.netcom.com follows:

double UGH....

This again.

Clock is broken (still it seems) and has been so for several rh releases now.

you need to download the clock binary at dec's gatekeeper site.

I would give you a link but trying to do so has crashed my xserver 3 times
now, so you will have to do with knowing that it is the same site that holds
the milo images.  go to the linux-alpha home page and then the faq on booting
alpha linux.  They have a link to the dec ftp site there.

poke around and you will find a clock binary for redhat (4.2 binary works just
fine under 5.1 if that is all that is there.

BTW you are in for some very strange problems if you don't fix this!

/Mike




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

* Re: Clock starts up with wrong date.
  1998-10-20  4:00           ` Reinhard Meyer
@ 1998-10-22  4:00             ` Peter
  1998-10-26  5:00             ` naegele
  1 sibling, 0 replies; 19+ messages in thread
From: Peter @ 1998-10-22  4:00 UTC (permalink / raw)



Reinhard Meyer wrote in message
<70iang$98h$1@cabrera.haiti.cs.uni-potsdam.de>...
>In article <70i6he$m51@linde.she.de>,  <naegele@ShE.DE> wrote:
>>Steve Peltz <peltz@jaka.ece.uiuc.edu> wrote:
>>: In article <6ur9nt$6j2$1@news.onramp.net>,
>>: Raymond P Chudzinski  <chud@verio.net> wrote:
>>:>I've what I believe to be the same problem. The year shows up as 2018
>>:>accourding to the 'date'
>>:>command. This despite the year showing 1998 in the Hardware setup. It
>>:>seems the kernel
>>:>is messing it up when it reads from the hardware.
>>:>
>>:>Does anyone know if this problem is documented by DEC?
>>
>>Same problem here.
>>
>>: Edit the file /etc/sysconfig/clock, and make sure it says ARC=true.
>>
>>After a cold start I get as year 2038 (month/day/time are correct)
>>wether I have ARC=true or not.
>>
>>: This file is referenced in /etc/rc.d/rc.sysinit; also see the
>>: documentation on /sbin/clock.
>>


I had the same problem and fixed it this way:

If you are in ARC console change to the SRM console.
http://www.mindspring.com/~ccsf-lug/AS200.htm has instructions on making the
firmware disk needed to do this.  You will need two disks, one readable by
the ARC console and the other readable by SRM.

Once you get to the SRM prompt (>>>) type :date yyyymmddhhmm  (enter)
Example 199810221045, type :date (enter) it should now display the new date
and time.
Change back to the ARC console, now your time and date can be set correctly
from ARC

hiles@uswest.net





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

* Re: Clock starts up with wrong date.
  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
  1 sibling, 2 replies; 19+ messages in thread
From: naegele @ 1998-10-26  5:00 UTC (permalink / raw)


Reinhard Meyer <rm@cabrera.haiti.cs.uni-potsdam.de> wrote:
: In article <70i6he$m51@linde.she.de>,  <naegele@ShE.DE> wrote:
:>Steve Peltz <peltz@jaka.ece.uiuc.edu> wrote:
:>: In article <6ur9nt$6j2$1@news.onramp.net>,
:>: Raymond P Chudzinski  <chud@verio.net> wrote:
:>:>I've what I believe to be the same problem. The year shows up as 2018
:>:>accourding to the 'date'
:>:>command. This despite the year showing 1998 in the Hardware setup. It
:>:>seems the kernel
:>:>is messing it up when it reads from the hardware.
:>:>
:>:>Does anyone know if this problem is documented by DEC?
:>
:>Same problem here.
:>
:>: Edit the file /etc/sysconfig/clock, and make sure it says ARC=true.
:>
:>After a cold start I get as year 2038 (month/day/time are correct)
:>wether I have ARC=true or not.
:>
:>: This file is referenced in /etc/rc.d/rc.sysinit; also see the
:>: documentation on /sbin/clock.
:>

: You may want to replace /sbin/clock with
: ftp://gatekeeper.dec.com/pub/DEC/Linux-Alpha/Kernels/clock-pc164-rh50

: Seems to work for my alpha (RH 5.1). But i did only 10 cold boots to
: verify it.

: For reference, I will append the article which gave this solution.

: - Reinhard

Well, I tried this fix, but I doesn't help ... after a cold boot the ARC says
something about wrong system time - I should fix it. Odd is also that the
time, day, month is ok. Only the year ist set to 2038. 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.

Some weeks ago I opened a support ticket at RedHat, but until yet 
with no answer.

Now I am a little disappointed about it, because I cannot use this
fast machine as a productive server for my company ...

: 'deja news' article <6r9vp2$abq$1@nnrp1.dejanews.com>
: from cekim@ix.netcom.com follows:

: double UGH....

: This again.

: Clock is broken (still it seems) and has been so for several rh releases now.

: you need to download the clock binary at dec's gatekeeper site.

: I would give you a link but trying to do so has crashed my xserver 3 times
: now, so you will have to do with knowing that it is the same site that holds
: the milo images.  go to the linux-alpha home page and then the faq on booting
: alpha linux.  They have a link to the dec ftp site there.

: poke around and you will find a clock binary for redhat (4.2 binary works just
: fine under 5.1 if that is all that is there.

: BTW you are in for some very strange problems if you don't fix this!

: /Mike





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

* Re: Clock starts up with wrong date.
  1998-10-26  5:00             ` naegele
@ 1998-10-29  5:00               ` wbonner
  1998-10-30  5:00               ` Jay A Estabrook
  1 sibling, 0 replies; 19+ messages in thread
From: wbonner @ 1998-10-29  5:00 UTC (permalink / raw)


I occasionally have this problem still, and I wanted to make sure that I've
got my info straight.

I'm using AlphaBios on a SX164 motherboard.  I've rebuilt the kernel with
2.0.35 sources.

When I do a "clock -v" I get "clock 1.4.3axp" in return.

The Milo I've got on disk is dated March 24 1998, which is probably when I
downloaded it, and the file size is 427505.

I just now realized that I've had ARC=false in the /etc/sysconfig/clock file.

Does this line need to be changed to ARC=true ?  I've made the change, but
haven't rebooted since I made the change.

This machine is not in front of me, so I don't like doing things that might
make it not come up.

Wim.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



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

* Re: Clock starts up with wrong date.
  1998-10-26  5:00             ` naegele
  1998-10-29  5:00               ` wbonner
@ 1998-10-30  5:00               ` Jay A Estabrook
  1998-11-02  5:00                 ` Robert Harley
  1998-11-02  5:00                 ` C. Ray Ng
  1 sibling, 2 replies; 19+ messages in thread
From: Jay A Estabrook @ 1998-10-30  5:00 UTC (permalink / raw)


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



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

* Re: Clock starts up with wrong date.
  1998-10-30  5:00               ` Jay A Estabrook
  1998-11-02  5:00                 ` Robert Harley
@ 1998-11-02  5:00                 ` C. Ray Ng
  1 sibling, 0 replies; 19+ messages in thread
From: C. Ray Ng @ 1998-11-02  5:00 UTC (permalink / raw)


Jay A Estabrook wrote:
> 
> 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!!!!
> 

The problem is that the RH install/update scripts ask the users what
the clock format to use ONLY at the end of installation. All of us
using ARC clock would have the time stamp wrong all over the places
by then. A lot of us wrote small script/program to reset the year
afterward and hope that one day RedHat would fix it! It didn't for
RH 4.0, 4.1, 4.2, 5.0 and 5.1. 

But we can't fix those already in the RPM database, nor for example,
the time in the /proc directory. It breaks some other tools that
compares time stamp for updates, sanitary check etc.

Is it posssible to detect the clock format somehow, or RedHat
installation script be changed to ask the users before it starts
to write any files?  

Is RedHat watching this thread?

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

-- 
 C. Ray Ng                           Tel: (607) 255-4882
 Wilson Synchrotron Lab              Fax: (607) 255-8062      
 Cornell University             Internet: crn1@cornell.edu
 Ithaca, NY 14853                   http://www.lns.cornell.edu



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

* Re: Clock starts up with wrong date.
  1998-10-30  5:00               ` Jay A Estabrook
@ 1998-11-02  5:00                 ` Robert Harley
  1998-11-02  5:00                 ` C. Ray Ng
  1 sibling, 0 replies; 19+ messages in thread
From: Robert Harley @ 1998-11-02  5:00 UTC (permalink / raw)



Jay A Estabrook <Jay.Estabrook@digital.com> writes:
> 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!!!!
  ^^^^^^^^^^^^^^^^^^^^^^

Shouldn't this be /etc/rc.d/rc.sysinit?

Rob.



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

end of thread, other threads:[~1998-11-02  5:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1998-11-02  5:00                 ` Robert Harley
1998-11-02  5:00                 ` C. Ray Ng

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