Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] hwclock fails during init on 2006.1 Livedisc
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
aryaniae
n00b
n00b


Joined: 18 Sep 2006
Posts: 40
Location: Sunnyvale, CA U.S.A.

PostPosted: Fri Oct 06, 2006 8:22 pm    Post subject: [SOLVED] hwclock fails during init on 2006.1 Livedisc Reply with quote

I'm installing gentoo on a iMac G3, and get errors every time I try to boot the livedisc. It often freezes at
init wrote:
* letting udev process events ...
Other times, it panics because the kernel attempts to access page 0 and when it gets past that, it fails on hwclock. Specifically, it says
init wrote:
* Setting system clock using the hardware clock [UTC] ...
* hwclock: settimeofday() failed, errno=22: Invalid argument.
* Failed to set system clock to hardware clock [ !! ]


I've tried setting the hardware clock through the OpenFirmare prompt (Cmd+Option+O+F at boot), but this does nothing.

EDIT: fixed quote about udev


Last edited by aryaniae on Sat Oct 07, 2006 4:18 am; edited 3 times in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Oct 06, 2006 9:31 pm    Post subject: Reply with quote

The hardware clock won't set if you have a dead clock battery. This release has a bug in it where it won't let you get past it if you have a dead clock battery. Either try 2006.0 (and use the 2006.1 stage3 to install) or get a new battery.

As for the other issues, without more detail, I can't begin to diagnose the issue.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
aryaniae
n00b
n00b


Joined: 18 Sep 2006
Posts: 40
Location: Sunnyvale, CA U.S.A.

PostPosted: Sat Oct 07, 2006 4:17 am    Post subject: Solved Reply with quote

Thanks for the batery lead. If I continue to run in to the other problems, I'll start a new thread for them.
Back to top
View user's profile Send private message
projectle
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jan 2005
Posts: 90

PostPosted: Tue Oct 10, 2006 2:37 am    Post subject: Reply with quote

Interesting side issue, but assuming that you are already installed, if you can get your computer to overheat and auto-shutdown it will set the clock back to March 1, 1904 and in turn prevent booting under 2006.1 with Gentoo-Sources 2.6.17 or 2.6.18.

I have tested this several times on a Powerbook 17" (Final Generation) and a Mac Mini (First Generation).

The mini is less likely to overheat, unless you cover it with something, but the Powerbook can do it if you keep it running on a compile overnight. (Not sure exactly when the powerbook dies, but sometime in the night after a good 20-30 packages.)

The only way that I have found to get Linux to boot again is to bring along the OS X install disc and letting it boot once, at which point it sets the date to January 1, 2000 then allowing Linux to boot.

What is the issue here and is it something that can be changed by rewriting a configuration file?
The whole idea of needing to spend a good 5 minutes playing around after a crash to get my notebook to boot again is a little outrageous.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Oct 10, 2006 12:26 pm    Post subject: Reply with quote

The clock issue is already fixed in baselayout 1.12.4-r2 and newer. Upgrade to this and it will just warn you that your clock isn't set correctly.

Losing the clock time is a result of the PMU being reset, there's not much you can do about it.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
aryaniae
n00b
n00b


Joined: 18 Sep 2006
Posts: 40
Location: Sunnyvale, CA U.S.A.

PostPosted: Wed Oct 11, 2006 5:20 am    Post subject: Reply with quote

You can also set the time to a sane value through OpenFirmware.

To get the OpenFirmware prompt, hold down Cmd+Opt+O+F during boot, then type into the prompt:
Code:
decimal dev rtc sec min hour day month year set-time
It should say "ok" after you hit enter, then type
Code:
mac-boot
to boot the mac.

Don't forget to replace "sec min hour day month year" with the correct time.
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