Matthew Burgess wrote: > On Tue, 15 Sep 2009 20:42:57 -0700, Bryan Kadzban > <br...@kadzban.is-a-geek.net> wrote: > >> Did you have that setting on? We might want to warn about that in the >> book in the kernel-config section, actually. Hmm. > > Nope, CONFIG_SYSFS_DEPRECATED_V2 is not set. > > Here's the RTC-related config bits: > > CONFIG_HPET_EMULATE_RTC=y > CONFIG_RTC_LIB=y > CONFIG_RTC_CLASS=y > CONFIG_RTC_HCTOSYS=y > CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
Assuming I remember the issue you were having correctly, these last two options are likely (at least part of) the problem. The kernel has *no* idea what your local time zone is, so it can't work with an RTC in local-time (I'm pretty sure the kernel help message for the last option says something to this effect). It always assumes the RTC is in UTC when setting the local clock. I'd turn these off. Also, note that these options are unavailable if CONFIG_RTC_CLASS is "m", which is how I have this kernel configured. (Which explains why it took me a while to find these options. Irrelevant, but anyway...) > CONFIG_RTC_INTF_SYSFS=y > CONFIG_RTC_INTF_PROC=y > CONFIG_RTC_INTF_DEV=y > CONFIG_RTC_DRV_CMOS=y > >> /sbin/udevadm --attribute-walk -n /dev/rtc > > looking at device '/devices/platform/rtc_cmos/rtc/rtc0': > KERNEL=="rtc0" > SUBSYSTEM=="rtc" > DRIVER=="" > ATTR{name}=="rtc_cmos" > ATTR{date}=="2009-09-17" > ATTR{time}=="19:44:06" > ATTR{since_epoch}=="1253216646" > ATTR{max_user_freq}=="64" > ATTR{wakealarm}=="" > > looking at parent device '/devices/platform/rtc_cmos': > KERNELS=="rtc_cmos" > SUBSYSTEMS=="platform" > DRIVERS=="rtc_cmos" > ATTRS{modalias}=="platform:rtc_cmos" > ATTRS{nvram}=="" > > looking at parent device '/devices/platform': > KERNELS=="platform" > SUBSYSTEMS=="" > DRIVERS=="" That all looks fine... > I tried changing SUBSYSTEM to KERNEL as the OP reported but that didn't change > anything for me. Yeah, the OP wasn't using CONFIG_RTC_CLASS. We need to fix the udev config to duplicate this rule for both SUBSYSTEM=="rtc" and KERNEL=="rtc", is what it sounds like. (Because the former is required for RTC_CLASS, while the latter seems to be required for machines that don't use it.) But if that doesn't change anything for you... > Note my BIOS does have localtime, not UTC set. So, I've > changed UTC to 0 in my /etc/sysconfig/clock but to no avail. I've edited > setclock to echo to a log file, /root/setclock.log, but it never gets written > to, suggesting the udev rule never gets fired here. Even with it set back to SUBSYSTEM? What about "udevadm test /devices/platform/rtc_cmos/rtc/rtc0" perhaps? Does it say anything there about running this script? (Does it echo to a file then?)
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page