On Fri, 29 Apr 2011 08:57:54 -0700 bsquared <[email protected]> wrote:
> > Yes, I rebooted and checked /dev/rtc is a link to /dev/rtc0 which > > matches kernel config. > > -- > > Thank you, > > -Brian > > > On re-reading my last message wasn't very clear. Yes I have the rtc > file, but the time is incorrrect. It appears that udev is not running > setclock. > > What could be causing this? I looked in the logs and there is no > reference to udev,setclock. > It seems that /dev/rtc0 is matching this rule in 50-udev-default.rules which is why it's making the symlink: SUBSYSTEM=="rtc", DRIVERS=="rtc_cmos", SYMLINK+="rtc" The question is, why doesn't it match the 55-lfs.rules: SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start" KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start" Maybe it's the ACTION=="add" bit that doesn't match? Do you have your kernel configured to mount a tempfs on /dev before udev is run? CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y If you delete from the rule ACTION=="add", does it work then? Or, try adding this to the end of the line in 50-udev-default.rules: , RUN+="/etc/rc.d/init.d/setclock start" Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
