From: Martin Ostermann <ost@comnets.rwth-aachen.de>
Subject: Re: redhat-4.0: /sbin/clock for the Jensen (again)
Date: 08 Oct 1996 22:08:16 +0200 [thread overview]
Message-ID: <a86df22355005a95324ae61dcfbb4842.axp-list@archive.invalid> (raw)
David Mosberger-Tang <davidm@AZStarNet.COM> writes:
> >>>>> On 08 Oct 1996 10:44:14 +0200, Martin Ostermann <ost@comnets.rwth-aachen.de> said:
>
> Martin> Hmm, I'm afraid this is going to be the runnig gag of this
> Martin> list ... The following patch is still missing in Colgate:
>
> I don't think that patch is correct. While I don't have the cmos
> datasheet, somebody else (I believe it was Miquel) pointed out that
> the 0x70 value that your patch changes is simply a bitmask that is
> unrelated to the port address.
Yes, exactly! Please look at the patch again:
- cmos_write (10, (save_freq_select | clockport));
+ cmos_write (10, (save_freq_select | 0x70));
Its changing it back to 0x70! Actually I believed it was you who
erroneously changed it to clockport, after I pointed out a different
line; I never made that change, and only detected it when Miquel had
problems with the patch from azstartnet.
> Also, not all Alpha platforms need to
> use the dev port. With the dev port, you loose atomicity of the
> update, which in my opinion is a nice feature to have.
Ok, I see. When I patched clock the first time, USE_DEV_PORT was
standard on the Alpha platform. The comments suggested, that it was
needed on non EV4 machines.
> Are you saying the existing clock doesn't work at all for the Jensen?
Yes. I think I know what the problem is: (clock.c)
#ifdef USE_DEV_PORT
# include <asm/fcntl.h>
#else
# include <asm/io.h>
#endif
Because of <asm/io.h>, the kernel i/o functions get used instead of
the ones in glibc. Thus it only works on the i/o-architecture it was
compiled on (or similar ones). But even if I compile it on my Jensen,
it doesn't work. I need USE_DEV_PORT. I am going to take a look at it.
> I know Miquel was working on a modified clock utility that uses
> /dev/rtc. I'm not sure what solution is better (/dev/port or
> /dev/rtc) but maybe the Jensen folks could get together and present a
> coherent solution?
Miquel didn't mail his patches, so I don't know how it's
working. I recall, he also had problems with interrupts.
IMHO, using a kernel device would probably be the best solution, indeed.
I see if I can clock working with glibc's i/o functions. Should be no
problem.
Martin
--
Martin Ostermann | mailto:ost@comnets.rwth-aachen.de
Communication Networks | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany | faxto:++49/241/8890378
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next reply other threads:[~1996-10-08 20:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-08 20:08 Martin Ostermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-10-08 21:37 redhat-4.0: /sbin/clock for the Jensen (again) Martin Ostermann
1996-10-08 21:37 Martin Ostermann
1996-10-08 20:34 David Mosberger
1996-10-08 15:11 David Mosberger-Tang
1996-10-08 8:44 Martin Ostermann
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