Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]/etc/init.d/clock problem on PPC64-64ul
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
sewulba
Guru
Guru


Joined: 09 Feb 2005
Posts: 497
Location: Heidelberg

PostPosted: Wed May 23, 2007 8:40 pm    Post subject: [solved]/etc/init.d/clock problem on PPC64-64ul Reply with quote

Hello...

If I start my Gentoo PPC64-64ul, then I got such an Error. Rhe same error like when I make '/etc/init.d/clock restart'!
Code:

* Setting system clock using the hardware clock [UTC] ...
 * Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
 * Failed to set clock You will need to set the clock yourself


How to fix that Problem?

Greets Sewulba
_________________
System1:Apple PowerMac Dual G4 @ 1,83GHz with 2GB Ram. 400GB + 80GB HDD, Gentoo 13.0-ppc32
System2:Apple MacIntosh PowerMac Dual G5 @ 2.7 GHz/1,35GHz FSB... 8GB Ram. 250GB SATA. Gentoo 10.0-PPC64-64ul


Last edited by sewulba on Fri May 25, 2007 5:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Wed May 23, 2007 10:21 pm    Post subject: Reply with quote

Yep been there done that.

It took me a week to find a clean fix.

The problem is simple, the kernel driver guys have stopped calling it /dev/rtc and have started calling it /dev/rtc0, in line with the way things ought to work.

The kernel driver guy sent a patch to the hwclock code maintainers to enable that code to change its device to be specified from the command line, however the hwclock maintainers are apparently having some issue as to who does what and the change has never been released.

So we, the end users, suffer. The kernel developer informed them in Sept. of '06 that things were changing. Its obvious the hwclock guys have dropped the ball.

There are a few ways to fix this according to the email I found:

1. symbolicly link /dev/rtc0 to /dev/rtc. You have to do that in the clock init script because udev won't remember.
2. Get the latest developer version of hwclock and specify that it use /dev/rtc0 instead of /dev/rtc. I'm not brave enough to emerge sys-apps/util-linux-9999, so I decided against that.

And last but my favorite fix:
3. Have UDEV add the symlink:

Change /etc/udev/rules.d/50-udev.rules to add this line:

Code:
KERNEL=="rtc0",         SYMLINK+="rtc"


I put it right under the rtc line.

This solved my problem.

I hope it helps you too.

Raydude.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
sewulba
Guru
Guru


Joined: 09 Feb 2005
Posts: 497
Location: Heidelberg

PostPosted: Thu May 24, 2007 5:54 pm    Post subject: Reply with quote

Hi...

Thnx for helping, but I don´t got any rtc in /dev!

Sewulba :cry:
_________________
System1:Apple PowerMac Dual G4 @ 1,83GHz with 2GB Ram. 400GB + 80GB HDD, Gentoo 13.0-ppc32
System2:Apple MacIntosh PowerMac Dual G5 @ 2.7 GHz/1,35GHz FSB... 8GB Ram. 250GB SATA. Gentoo 10.0-PPC64-64ul
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Thu May 24, 2007 7:39 pm    Post subject: Reply with quote

sewulba wrote:
Hi...

Thnx for helping, but I don´t got any rtc in /dev!

Sewulba :cry:


Yes and that's the problem.

You need /dev/rtc for clock to start.

Do you have a /dev/rtc0? If so then you need to add that line I mention to udev-rules.

If you don't have a /dev/rtc0 then you need to adjust your kernel to include the driver you need for your PPC motherboard.

I'd be shocked if it was different than a PC, but anything is possible.

If you aren't sure which one you need then make all real time clock drivers into modules and see which one loads.

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
sewulba
Guru
Guru


Joined: 09 Feb 2005
Posts: 497
Location: Heidelberg

PostPosted: Fri May 25, 2007 5:14 pm    Post subject: Reply with quote

RayDude wrote:
sewulba wrote:
Hi...

Thnx for helping, but I don´t got any rtc in /dev!

Sewulba :cry:


Yes and that's the problem.

You need /dev/rtc for clock to start.

Do you have a /dev/rtc0? If so then you need to add that line I mention to udev-rules.

If you don't have a /dev/rtc0 then you need to adjust your kernel to include the driver you need for your PPC motherboard.

I'd be shocked if it was different than a PC, but anything is possible.

If you aren't sure which one you need then make all real time clock drivers into modules and see which one loads.

Raydude


Okay... Thnx for helping. That was it. Big mistake by me. OOPS :oops:

I only have to aktivate Device Drivers --> Character devices --> Generic /dev/rtc emulation
That was it.
Thank you for helping me out! :wink:

Sewulba
_________________
System1:Apple PowerMac Dual G4 @ 1,83GHz with 2GB Ram. 400GB + 80GB HDD, Gentoo 13.0-ppc32
System2:Apple MacIntosh PowerMac Dual G5 @ 2.7 GHz/1,35GHz FSB... 8GB Ram. 250GB SATA. Gentoo 10.0-PPC64-64ul
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