View previous topic :: View next topic |
Author |
Message |
makaveli87 Guru
Joined: 22 Aug 2005 Posts: 311 Location: Italy
|
Posted: Fri Aug 26, 2005 6:20 pm Post subject: [SOLVED] cannot access hardware clock!! |
|
|
I've a G4 cube (it's the one with problems with alsa, X ,....).
When I boot I have this error:
Failed to set the System Clock to Hardaware clock
Failed to start /etc/init.d/clock
If I try hwclock -w :
cannot access the Hardware Clock via any known method _________________ GoogleTalk: romanovic@gmail.com |
|
Back to top |
|
|
makaveli87 Guru
Joined: 22 Aug 2005 Posts: 311 Location: Italy
|
Posted: Sun Aug 28, 2005 12:41 pm Post subject: SOLVED |
|
|
I forgot to enable the kernel support :
Device Drivers -> Character devices -> <*> Generic /dev/rtc emulation
<*> Extended ETC operation
Now the clock works .
Thanks _________________ GoogleTalk: romanovic@gmail.com |
|
Back to top |
|
|
Frostwarrior Apprentice
Joined: 02 Mar 2007 Posts: 165
|
Posted: Thu Sep 09, 2010 8:16 pm Post subject: |
|
|
constructive revive (?)
I had the same problem, until I realized the real time clock support needs to be integrated in the kernel to work properly.
cheers |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 717 Location: Barcelona, Spain
|
Posted: Sun Dec 26, 2010 12:58 am Post subject: |
|
|
Good to find this thread. I have been able to revive the hardware clock by enabling in the kernel:
Devide Drivers -> Real Time Clock -> PC-style 'CMOS'
CONFIG_RTC_DRV_CMOS=m
Thanks for the thread!
Cheers! |
|
Back to top |
|
|
gohmdoree Guru
Joined: 12 Oct 2004 Posts: 533
|
Posted: Mon Dec 27, 2010 2:21 pm Post subject: |
|
|
hasn't work for me as of yet on my ppc64 |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 717 Location: Barcelona, Spain
|
Posted: Tue Dec 28, 2010 7:37 pm Post subject: |
|
|
gohmdoree wrote: | hasn't work for me as of yet on my ppc64 |
I do not have much experience on ppc64. Do you have any relevant messages on dmesg? The kernel option I have used above (CONFIG_RTC_DRV_CMOS=m) is platform specific. I have no idea of what kernel options are needed on a ppc64.
Cheers! |
|
Back to top |
|
|
gohmdoree Guru
Joined: 12 Oct 2004 Posts: 533
|
Posted: Tue Dec 28, 2010 7:58 pm Post subject: |
|
|
I will have to fire up my machine and check. It was something similar to the above. The suggestions for the fix did not work for me. Still searching around. |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3525
|
Posted: Fri Sep 09, 2011 12:21 pm Post subject: |
|
|
Just an odd note on this...
I never paid much attention to the RTC. I normally build my kernels by tweaking a previous config, and for years now most things have "just worked" (TM) with occasional hiccups as kernel features changed. One of those changes, and I'm not sure what it was, came with the 3.0 kernel series. Suddenly I was having hardware clock problems at boot and shutdown. Once I was fully aware of it and had a little time to chase it down, it was easy to fix, as in this thread. But something changed with the 3.0 config, either the name or the way the option was split out, because that's when it broke. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Fri Nov 04, 2011 10:53 am Post subject: |
|
|
I remember having a similar issue of "unable to access the hardware clock" which was actually completely unrelated to the hardware clock but instead the result of a screwed up /etc/adjtime. While I don't remember what exactly I did to resolve it (which was slightly more complex), removing the file should resolve the problem. |
|
Back to top |
|
|
Bashrc n00b
Joined: 06 Nov 2011 Posts: 1
|
Posted: Sun Nov 06, 2011 12:52 pm Post subject: |
|
|
For some reason I was unable to make this work until I set rtc_cmos as a module (CONFIG_RTC_DRV_CMOS=m) instead of in-kernel (CONFIG_RTC_DRV_CMOS=y). |
|
Back to top |
|
|
Ottre Tux's lil' helper
Joined: 23 Dec 2012 Posts: 129
|
Posted: Mon Oct 20, 2014 7:17 am Post subject: |
|
|
gohmdoree wrote: | hasn't work for me as of yet on my ppc64 |
Sorry to bump this old thread, but I'm installing Gentoo on a ppc64 machine today, and want to share something.
I've found that setting CONFIG_RTC_DRV_CMOS, either built-in or as a module, does not work on ppc64.
Instead you should copy the settings used in the G5 kernel on the livecd:
Quote: |
uname -a
Linux livecd 3.12.21-gentoo-r1-G5 #1 SMP Sun Jul 13 22:58:55 UTC 2014 ppc64 PPC970MP, altivec supported PowerMac11,2 GNU/Linux
zgrep 'RTC' /proc/config.gz
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
# RTC interfaces
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
# I2C RTC drivers
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
# SPI RTC drivers
# Platform RTC drivers
# CONFIG_RTC_DRV_CMOS is not set
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# on-CPU RTC drivers
CONFIG_RTC_DRV_GENERIC=m
# CONFIG_RTC_DRV_SNVS is not set
# CONFIG_RTC_DRV_MOXART is not set
# HID Sensor RTC drivers
# CONFIG_RTC_DRV_HID_SENSOR_TIME is not set
|
|
|
Back to top |
|
|
|