You are not logged in.
Hi all!
I am missing /proc/sys/dev/rtc/max-user-freq to set the maximum frequency that an user app can fetch the rtc device. It seems that there is a new implementation for the rtc driver since 2.6.21. Before that (don't remember exactly when) the /proc/... was there, but now it isn't. Does anybody know how can I achieve the same result with the newer kernels?
Thanks in advance
Denis Falqueto
Last edited by denisfalqueto (2007-07-27 16:24:49)
Satisfied users don't rant, so you'll never know how many of us there are.
Offline
You have to modprobe rtc to have that proc entry.
Offline
Yes, I did it, but it tells me the following:
FATAL: Error inserting rtc (/lib/modules/2.6.21-rt/kernel/drivers/char/rtc.ko): Input/output error
This kernel is from AUR, but with the ck it remains the same. Dmesg also tells me:
rtc: I/O resource 70 is not free.
It seems that there is something holding the rtc.
Some googling gave me some tips to build a kernel with the RTC compiled inside the kernel, not as a module, but I couldn't find the option in the menuconfig. I will try to rebuild this kernel with a manual configuration for the RTC.
Satisfied users don't rant, so you'll never know how many of us there are.
Offline
It is in Device Drivers --> Character devices --> Enhanced Real Time Clock Support
Offline
Yes, it worked. I compiled the kernel with the realtime patch from Ingo Molnar from AUR and enabled the rtc as sugested above inside the kernel (not as a module). Now there is back again the /proc/sys/dev/rtc/max-user-freq.
I would suggest also to the kernel-ck maintainers to do the same for that we can use this interesting feature. I found that it can help lots of applications, for example, mplayer, cd/dvd-writing and even virtualization softwares like qemu. There are dozens of tips with that in google.
Satisfied users don't rant, so you'll never know how many of us there are.
Offline
Yes, I did it, but it tells me the following:
FATAL: Error inserting rtc (/lib/modules/2.6.21-rt/kernel/drivers/char/rtc.ko): Input/output error
This is caused because you've already got an rtc module modprobed - most likely rtc_cmos (which was inserted on my default setup.)
Offline
For the record, it was really rtc_cmos that was preventing rtc to be loaded. So, I configured rc.conf to forbid rtc_cmos and load rtc. Now the /proc/.... entry is back again.
Thanks to all!
Satisfied users don't rant, so you'll never know how many of us there are.
Offline