Ethan Benson wrote: > > On Thu, Aug 10, 2000 at 04:20:49PM -0400, James Waterhouse wrote: > > Hello all, > > can anyone tell me... are we supposed to be able to set the hardware > > clock from within linux? I'm running kernel 2.2.14 on a powermac 7200 > > and when I try to set the clock using I get the following... > > > > [EMAIL PROTECTED]:~# hwclock --debug > > hwclock 2.4c/util-linux-2.10f > > hwclock: Open of /dev/rtc failed, errno=19: No such device. > > No usable clock interface found. > > Cannot access the Hardware Clock via any known method. Use --debug > > option to see the details of our search for an access method. > > use `clock' instead of hwclock, ppc needs a different userland > utility. (why not add ppc rtc support to hwclock?)
No longer necessary: The newer kernels [1] have a driver for /dev/rtc that lets you use the standard hwclock utility from util-linux. Just choose CONFIG_PPC_RTC=y when compiling your kernel (or choose CONFIG_PPC_RTC=m and patch a small bug in arch/ppc/kernel/ppc_ksyms.c) [1] 2.2.17preX since X=5; recent 2.4.0-test from bitkeeper and Paul's trees. -- Martin