Re: clock problems
On Thu, Aug 15, 2002 at 05:11:13PM -0400, R.A. wrote:
> I'm having problems with the clock: I'm experiencing an offset of
> about 5-10 minutes per day. My comp is a Quadra 950 with debian woody
> (3.0r0). At install time I disabled the hwclock scripts, becouse
> otherwise it won't boot. Does this has to do with the problem? (it
> doesn't matter if I leave it on or off). Maybe it's the battery...
> any ideas?
>From my understanding, the 68k Macs have a habit of losing timer
interrupts. This causes the clock to lose a lot of time. I just
run ntpd to keep mine on the right time. Of course, that requires
a permanent connection via network to something with a more
stable clock...
> PS: where can I find the source code of hwclock? I would like to take
> a look at it, to see if I can fix it...
I believe the problem is in the kernel. I seem to recall that
the clock routines in the kernel don't support every model. Try
looking at the function mac_hwclk in arch/m68k/mac/config.c in
2.2 kernels, or in arch/m68k/mac/misc.c in 2.4 kernels. It looks
like it should treat a Q950 like the Mac IIfx for clock routines,
which may or may not be correct. It decides what to do based on
the ADB controller... It does work for reading the clock on my
IIfx with a recent kernel. Writing the clock breaks everything.
Brad Boyer
flar@allandria.com
Reply to: