missing /dev/rtc
running debian Sarge on a dual opteron246 system with 2GB system mem, dual SATA drives, etc, etc.
i have notices that the CMOS clock reading and the system clock reading are different. not different in the terms of utc vs est, which i believe would be 5 hours???, but sometimes 12 hours off and a day behind, sometimes by an odd amount. i then noticed that i received the following on start up: Code:
Setting the System Clock using the Hardware Clock as reference... I tried hwclock --debug and received: Code:
hwclock from util-linux-2.12p but this doesn't persist through start up. Right now i have installed and run adjtimex which seems to have straightened things out...i still can't get a positive result back from hwclock though. Any ideas why i don't have a /dev/rtc? thanks |
Do you have CONFIG_RTC set in the kernel (and rtc module loaded if necessary)? I just looked at a udev setup and /dev/rtc is supposed to be created by this module.
|
Tanks for the reply. I'm new to linux so could you explain how to check if CONFIG_RTC is set in the kernel. I did check to see if udev was installed...it is, but I think I recall someone stating that the latest udev caused some problems. I don't know if i have the lastest version...the one i have installed is 0.056-3.
Here a portion of the results from kern.log from yesterday. If you notice at the beginning it appears that no module sysmbols were loaded...is this right? Also, why is it ignoring one of my processors? Closer to the end there is something the APIC and about ungzip failed....don't know what that means.... Thanks again. Code:
Oct 13 01:03:02 localhost kernel: klogd 1.4.1#17, log source = /proc/kmsg started. |
I'm not an expert at interpreting kernel logs, but to use mulitiple processors you also need to enable SMP in the kernel. If you have the kernel source the file .config in the top directory has all the settings. Alternatively if you are lucky the kernel has stashed a compressed copy at /proc/config.gz, so
gzip -cd /proc/config.gz | grep RTC should give you the RTC status. You could also try 'lsmod' and see if rtc module is listed. This will also tell you what other kernel modules are loaded. There are a number of ways modules get loaded. I don't know the full picture myself. You can always load manually with e.g. 'modprobe rtc' (as root). This might give you a /dev/rtc also if you don't have one. There should be a line in /etc/udev/rules.d/udev.rules referring to rtc. |
These are the results of what I tried.
I installed using binary cds. I couldn't find .config I tried lsmod and didn't see anything resembling rtc. I looked at /etc/udev/rules.d/udev.rules and didn't see anything referring to rtc. What should be my next step? Should i try to get the soure for the kernel and reconfigure it? Not sure if I'm ready for that. Code:
fserver:~# gzip -cd /proc/config.gz | grep RTC Code:
fserver:~# gzip -cd /proc/config.gz | grep SMP Code:
fserver:~# modprobe rtc |
CONFIG_HPET_EMULATE_RTC=y
CONFIG_RTC=y CONFIG_SND_RTCTIMER=y that's what i have for my kernel. The /dev/rtc node is always there. |
Your kernel does not exactly match your module installation for some reason. I think Debian provides various packages with a range of ready-compiled kernels. You could try installing one with SMP enabled - it might fix your RTC problem also. Or there are several guides to compiling a new kernel in a Debian framework - e.g.
http://www.debian.org/doc/manuals/re...kernel.en.html http://myrddin.org/howto/debian-kernel-recompile.php Here is the line from udev.rules that is supposed to create the rtc device KERNEL="rtc", NAME="misc/%k", SYMLINK="%k", MODE="0664" This is from a non-Debian system. I'm not sure how udev is set up on Debian. I still have old-style. EDIT: Looking at your modprobe error message again - I think this is a udev problem. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308693 |
Thnks for all the help. I'll see what i can do from here.
|
All times are GMT -5. The time now is 10:19 AM. |