From: Martin Ostermann <ost@comnets.rwth-aachen.de>
To: nyasi@alpha.bzlogi.hu (Buda Sandor Attila)
Cc: axp-list@redhat.com
Subject: Re: setting correct time on jensen
Date: Tue, 7 Jul 1998 21:09:35 +0200 (MET DST) [thread overview]
Message-ID: <199807071909.VAA24575@moritz.comnets.rwth-aachen.de> (raw)
In-Reply-To: <Pine.3.89.9807071756.A22736-0100000@sun> from "Buda Sandor Attila" at Jul 7, 98 05:59:27 pm
> 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 <asm/fcntl.h>
+# include <fcntl.h>
#else
# include <asm/io.h>
#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
next prev parent reply other threads:[~1998-07-07 19:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-07 15:59 setting correct time on jensen Buda Sandor Attila
1998-07-07 19:09 ` Martin Ostermann [this message]
1998-07-08 14:56 ` Buda Sandor Attila
-- strict thread matches above, loose matches on Subject: below --
1999-10-08 12:28 Henry van der Vegt
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