I'm pretty sure the proc nodes for the RTC are always read only. I have 2.4.3 and 2.4.20 sitting here, and both of them are read only. I'm not 100% sure about the other versions of the kernel. I would expect them to be the same. If all you want to do is programmatically set the clock instead of calling hwclock to do it, just rip out the code from hwclock that does the actual set and put it in your program. All hwclock does is call an ioctl() on the rtc device to set the time. If you're writing a program to do this, that's certainly an option. If you're looking for a text based interface to rtc then you're best bet is either using hwclock or writing something else like it.
I guess you could hack your kernel to make the proc node read/write instead of readonly also. Really depends what your goal is. -- Rev
|