From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18925 invoked from network); 7 Jul 1998 19:09:54 -0000 Received: from zruty.comnets.rwth-aachen.de (137.226.4.16) by mail2.redhat.com with SMTP; 7 Jul 1998 19:09:54 -0000 Received: from moritz.comnets.rwth-aachen.de (moritz [137.226.4.235]) by zruty.comnets.rwth-aachen.de (8.8.8/8.8.8) with ESMTP id VAA17975; Tue, 7 Jul 1998 21:09:36 +0200 (MET DST) From: Martin Ostermann Received: (ost@localhost) by moritz.comnets.rwth-aachen.de (8.6.12/COMNETS-1.0) id VAA24575; Tue, 7 Jul 1998 21:09:36 +0200 Message-Id: <199807071909.VAA24575@moritz.comnets.rwth-aachen.de> Subject: Re: setting correct time on jensen To: nyasi@alpha.bzlogi.hu (Buda Sandor Attila) Date: Tue, 7 Jul 1998 21:09:35 +0200 (MET DST) Cc: axp-list@redhat.com In-Reply-To: from "Buda Sandor Attila" at Jul 7, 98 05:59:27 pm X-Mailer: ELM [version 2.4 PL21] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Please tell me how can I set the correct time under redhat 5.1 The clock package supplied with RedHat-5.1 is still brocken in respect to the Jensen. Either you could grab an replacement from my web page, or use use the following patch on the clock-1.1-2.src.rpm. HTH, Martin PS.: It's basically the same error present since redhat 4.0, I reported it many times, but I gave up on hoping that it will be ever fixed in the release. diff -ubr clock-1.1/clock-alpha.c clock-1.2/clock-alpha.c --- clock-1.1/clock-alpha.c Thu Oct 9 17:29:15 1997 +++ clock-1.2/clock-alpha.c Tue Jul 7 20:41:44 1998 @@ -138,14 +138,17 @@ * V1.4.3axp: ost@coments.rwth-aachen.de (Martin Ostermann) * Wed May 22 1996, modified to support J option for the Jensen * Reason: on a Jensen the RTC is at 0x170 instead of 0x70 + * + * V1.4.4axp: ost@coments.rwth-aachen.de (Martin Ostermann) + * Tue July 7 1998, use DEV_PORT, fixed bugs for the Jensen */ -#define VERSION "1.4.3axp" +#define VERSION "1.4.4axp" -#undef USE_DEV_PORT +#define USE_DEV_PORT #ifdef USE_DEV_PORT -# include +# include #else # include #endif @@ -297,7 +300,7 @@ save_control = cmos_read (11); /* tell the clock it's being set */ cmos_write (11, (save_control | 0x80)); save_freq_select = cmos_read (10); /* stop and reset prescaler */ - cmos_write (10, (save_freq_select | clockport)); + cmos_write (10, (save_freq_select | 0x70)); cmos_write (0, tm->tm_sec); cmos_write (2, tm->tm_min); -- Martin Ostermann | DEC 2000/300, DECpc-150, Jensen tips: Communication Networks | http://www.comnets.rwth-aachen.de/~ost Aachen University of Technology | Linux/Alpha Hompage with FAQ: Germany | http://www.azstarnet.com/~axplinux