From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,aa1fd67ea3941729 X-Google-Attributes: gid111c93,public From: Neoklis Subject: Re: Please help: CMOS clock causing problems Date: 2000/07/08 Message-ID: <8k6rjb$14h$1@nnrp1.deja.com>#1/1 X-Deja-AN: 643878368 References: <8k2pji$f49$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x57.deja.com:80 (Squid/1.1.22) for client 195.14.131.190 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Jul 08 09:17:34 2000 GMT X-MyDeja-Info: XMYDJUIDneoklis Newsgroups: comp.os.linux.alpha X-Http-User-Agent: Mozilla/4.7 [en] (Win95; I) In article <8k2pji$f49$1@nnrp1.deja.com>, Neoklis 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.