From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6a33d9d4c46558a075ff22a454841a6b.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199610082034.NAA23393@web.azstarnet.com> Date: Tue, 8 Oct 1996 13:34:53 -0700 (MST) From: David Mosberger Subject: Re: redhat-4.0: /sbin/clock for the Jensen (again) Martin> David Mosberger-Tang writes: Martin> > >>>>> 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: David> I don't think that patch is correct. While I don't have the cmos David> datasheet, somebody else (I believe it was Miquel) pointed out that David> the 0x70 value that your patch changes is simply a bitmask that is David> unrelated to the port address. Martin> Yes, exactly! Please look at the patch again: Martin> - cmos_write (10, (save_freq_select | clockport)); Martin> + cmos_write (10, (save_freq_select | 0x70)); Duh, I looked at your patch, went to my sources, saw that all is fine and then concluded that your patch must be backwards. Sorry about that. Hmmh, maybe my patch on azstarnet doesn't have this fix in. I'll double check. David> Are you saying the existing clock doesn't work at all for the Jensen? Martin> Yes. I think I know what the problem is: (clock.c) Martin> #ifdef USE_DEV_PORT Martin> # include Martin> #else Martin> # include Martin> #endif Martin> Because of , the kernel i/o functions get used instead of Martin> the ones in glibc. Thus it only works on the i/o-architecture it was Martin> compiled on (or similar ones). But even if I compile it on my Jensen, Martin> it doesn't work. I need USE_DEV_PORT. I am going to take a look at it. I don't think that's true. Even with , you should get the library versions. But it would be cleaner to include for glibc. Martin> Miquel didn't mail his patches, so I don't know how it's Martin> working. I recall, he also had problems with interrupts. Martin> IMHO, using a kernel device would probably be the best solution, Martin> indeed. The axp-diffs have some patches to rtc.c that are supposed to fix this problem. But I haven't heard from Miquel in a while, so I'm not sure whether it's all working. Martin> I see if I can clock working with glibc's i/o functions. Should be no Martin> problem. It should work, I agree. If not, maybe there is a bug in the glibc functions in which case a fix is definitively needed. --david -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null