From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199610081721.NAA29147@postman.osf.org> Date: 08 Oct 1996 22:08:16 +0200 From: Martin Ostermann Subject: Re: redhat-4.0: /sbin/clock for the Jensen (again) David Mosberger-Tang writes: > >>>>> On 08 Oct 1996 10:44:14 +0200, Martin Ostermann 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 #else # include #endif Because of , 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