Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 380911

Summary: Gentoo-LiveDVD 11.2 hwclock cannot get datetime
Product: Gentoo Release Media Reporter: r01 <crquan>
Component: LiveCD/DVD/USBAssignee: Team Anniversary <ten>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 378027    

Description r01 2011-08-28 06:35:05 UTC
The latest Gentoo-LiveDVD 11.2 doesn't have RTC drivers, then hwclock cannot get the system time correctly:

Gentoo-11 ~ # /sbin/hwclock 
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Gentoo-11 ~ # /sbin/hwclock --debug
hwclock from util-linux 2.19.1
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
No usable clock interface found.
Cannot access the Hardware Clock via any known method.


Gentoo-11 ~ # grep ^CONFIG_RTC /kernel-config-x86_64-2.6.39-gentoo-r4
CONFIG_RTC_LIB=m
CONFIG_RTC_CLASS=m
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
CONFIG_RTC_DRV_DS1374=m
CONFIG_RTC_DRV_MAX6900=m
CONFIG_RTC_DRV_M41T80=m
CONFIG_RTC_DRV_M41T80_WDT=y
CONFIG_RTC_DRV_CMOS=m
CONFIG_RTC_DRV_DS1553=m
CONFIG_RTC_DRV_DS1742=m
CONFIG_RTC_DRV_STK17TA8=m
CONFIG_RTC_DRV_M48T86=m
CONFIG_RTC_DRV_M48T59=m
CONFIG_RTC_DRV_V3020=m

Gentoo-11 ~ # grep RTC /usr/src/linux-3.0-gentoo-r1/.config
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_RTC_CLASS is not set

On x86 computers, I think this one is mostly needed, 
CONFIG_RTC_DRV_CMOS=m

But I don't understand why there are two different "/kernel-config-x86_64-2.6.39-gentoo-r4", "/usr/src/linux-3.0-gentoo-r1/.config" on the LiveDVD ?
Comment 1 r01 2011-08-28 06:36:25 UTC
even no any rtc related kernel modules:

Gentoo-11 ~ # modprobe -l |grep rtc
Gentoo-11 ~ #
Comment 2 Kamen Dokov 2011-12-29 13:27:18 UTC
Same with 2012 multilib amd64:


/sbin/hwclock 
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Gentoo-11 ~ # /sbin/hwclock --debug
hwclock from util-linux 2.20.1
hwclock: Open of /dev/rtc failed: No such file or directory.
No usable clock interface found.
Cannot access the Hardware Clock via any known method.

and from livecd .config:


#CONFIG_RTC is not set
#CONFIG_GEN_RTC is not set
Comment 3 Fernando (likewhoa) 2011-12-29 14:49:47 UTC
thanks for reporting this, not sure how this was disabled.
Comment 4 Fernando (likewhoa) 2011-12-29 15:01:24 UTC
fixed, thanks for reporting.