Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Neoklis <neoklis@my-deja.com>
Subject: Re: Please help: CMOS clock causing problems
Date: 2000/07/08	[thread overview]
Message-ID: <8k6rjb$14h$1@nnrp1.deja.com> (raw)
In-Reply-To: 8k2pji$f49$1@nnrp1.deja.com

In article <8k2pji$f49$1@nnrp1.deja.com>,
  Neoklis <neoklis@my-deja.com> wrote:
>  Hello,
>
> The CMOS clock is giving the wrong time intermittently and is causing
> occasional hung-ups of the boot process.
>
Hi!

Thanks for the responses to this posting. I have carried out
more tests and I think I have now corrected the fault to some
extend and think it could be useful to metion them here.

Originally the CMOS clock was changing its set time
eratically from reboot to reboot. Also the "clock" command
was occasionally reading incorrectly as I described. I used
hwclock --debug --show and noticed that a very large
correction factor was being used for clock drift. I looked
into SuSE 6.3 AXP /sbin/init.d/boot script and found that it uses
the "clock" command to set system time and adjust the CMOS clock.
Because the adjustment factor was so large, the RTC was changed
wildly on each reboot.

I corrected this problem by removing /etc/adjtime and setting the
RTC from the BIOS. I also added some tests in the boot script to
check that the year in the system time is not 2256 after the "clock"
commands. So far there are no more clock problems during boot-up
although hwclock still occasionally reads incorrectly when run from
the console. I assume that this is some glitch or conflict after
boot-up is complete, as "clock" reads correctly when invoked by
sbin/init.d/boot. I will try the latest hwclock version and will
also replace the "clock" command with "hwclock" in the boot script
as is the case in SuSE 6.4 .

I don't really know how such a huge adjustment factor was arrived at
but I think hwclock could incorporate some "sanity checking" to avoid
entering unrealistic adjustment factors in /etc/adjtime.

Thanks again!
--
Regards

Neoklis
My (ex-Acorn) RiscOS Homepage: http://www.arcsite.de/hp/neoklis


Sent via Deja.com http://www.deja.com/
Before you buy.



      parent reply	other threads:[~2000-07-08  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-06  4:00 Please help: CMOS clock causing problems Neoklis
2000-07-06  4:00 ` Hugo Haas
2000-07-08  4:00 ` Neoklis [this message]
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