On Thu, Mar 24, 2011 at 9:21 PM, Roman Mamedov <r...@romanrm.ru> wrote: > Hello, > > I don't know if this is perhaps something simple, but every time I boot my > Yeeloong, the system clock is off by about 10 hours. > > I fix the date/time with ntpdate, and then the clock runs correctly, without > any speed skew or pauses. But on the next boot date/time is wrong again. > > I noticed this rtc error on system shutdown, and indeed, any attempt to > access /dev/rtc produces it: > > # hwclock -r > select() to /dev/rtc to wait for clock tick timed out > > # hwclock --systohc > select() to /dev/rtc to wait for clock tick timed out > > How can I fix this?
Did you enable the kernel support? $ cat .config | grep RTC | grep -v ^# CONFIG_RTC_LIB=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" CONFIG_RTC_INTF_SYSFS=y CONFIG_RTC_INTF_PROC=y CONFIG_RTC_INTF_DEV=y CONFIG_RTC_DRV_CMOS=y Or did you touch the /dev/rtc file, it should a link to /dev/rtc0. Regards, Wu Zhangjin > > -- > With respect, > Roman > -- You received this message because you are subscribed to the Google Groups "loongson-dev" group. To post to this group, send email to loongson-dev@googlegroups.com. To unsubscribe from this group, send email to loongson-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/loongson-dev?hl=en.