Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OldWorld G3 Tower - Where is the RTC?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Wed Dec 07, 2005 4:52 pm    Post subject: OldWorld G3 Tower - Where is the RTC? Reply with quote

I have Gentoo on an OldWorld G3 Tower (266MHz), and I can't see how to enable /dev/rtc; hwclock fails with "No usable clock interface found," and trying to access /dev/rtc directly gives "No such device." Curiously, the system can apparently still read the hardware clock, but it doesn't do so correctly. Despite CLOCK being set to "local" in /etc/conf.d/clock, the time is still six hours off (I'm in the Central time zone).

The kernel sources mention how newer PowerMacs use the PMU to control the RTC, but my system doesn't have the PMU chip, and I haven't found any other options in the kernel (at least not through menuconfig) to enable /dev/rtc. Any ideas?

Thanks.
_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Dec 08, 2005 1:40 pm    Post subject: Reply with quote

What say:
Code:
cat /proc/driver/rtc
egrep "CUDA|RTC" /path/to/your/kernel/.config
ls -l /etc/localtime
ls -lL /etc/localtime
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Dec 08, 2005 2:32 pm    Post subject: Reply with quote

You'll want to enable the RTC emulation options, CONFIG_GEN_RTC and CONFIG_GEN_RTC_X.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Thu Dec 08, 2005 5:43 pm    Post subject: Reply with quote

limn wrote:
What say:
Code:
cat /proc/driver/rtc
egrep "CUDA|RTC" /path/to/your/kernel/.config
ls -l /etc/localtime
ls -lL /etc/localtime


I had enabled CUDA support (otherwise I wouldn't have my ADB keyboard and mouse!), but nothing RTC was enabled. Also, please excuse me for not mentioning my time zone information, which I do have set correctly:

Code:

$ ls -lL /etc/localtime
-rw-r--r--  4 root root 1279 Oct 23 12:41 /etc/localtime
$ ls -l /etc/localtime
lrwxrwxrwx  1 root root 35 Oct 13 15:26 /etc/localtime -> /usr/share/zoneinfo/America/Chicago


JoseJX wrote:
You'll want to enable the RTC emulation options, CONFIG_GEN_RTC and CONFIG_GEN_RTC_X.


That did it! Thank you once again, JoseJX!

I did some follow-up reading, so hopefully I'm a bit wiser now. I guess I've never enabled the RTC on any of my systems. The Intel PCs apparently have another means of accessing the hardware clock, so hwclock and the clock init script never complained on those boxes. I don't recall seeing this issue on my PowerMac 7300 when it was running Gentoo, but I can't say for sure; that machine is in pieces at the moment.

I will swear I looked everywhere for RTC settings, including in the character devices section, but obviously I wasn't looking hard enough.

I appreciate the help!
_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Dec 08, 2005 6:26 pm    Post subject: Reply with quote

CUDA support provides the interface to the hardware clock, in addition to keyboard and mouse.
Are you saying that enabling RTC corrected the time zone?
Back to top
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Fri Dec 09, 2005 12:12 am    Post subject: Reply with quote

limn wrote:
CUDA support provides the interface to the hardware clock, in addition to keyboard and mouse.


If CUDA is supposed to provide the RTC, it isn't on my system. Enabling the kernel flags that JoseJX recommended did provide the RTC, however.

Quote:
Are you saying that enabling RTC corrected the time zone?


Yes. Whether or not it's supposed to do that, I don't know, but with the hardware clock set to the local time, and with /etc/localtime pointing to the right timezone file (America/Chicago), my system time would be six hours off without the RTC enabled. The fact that the clock init script couldn't start properly seems to have something to do with that.
_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Fri Dec 09, 2005 1:51 pm    Post subject: Reply with quote

Perhaps I misunderstood you.
You seemed curious that the kernel could get the time when hwclock could not: CUDA support.
The egrep was to show that you had one part, but not the other.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum