Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to set system clock...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
IvanHoe
l33t
l33t


Joined: 05 Oct 2002
Posts: 658

PostPosted: Tue Jun 15, 2004 7:57 am    Post subject: Unable to set system clock... Reply with quote

I get the error "unable to set system clock to hardware clock" on boot and the opposite ("unable to set hardware clock to system clock") on shutdown. Anyone know what's causing this and how to correct it?
Back to top
View user's profile Send private message
RAPUL
l33t
l33t


Joined: 29 Dec 2002
Posts: 664
Location: Valencia (SPAIN)

PostPosted: Tue Jun 15, 2004 12:38 pm    Post subject: Hmm... Reply with quote

Go to BIOS and change date by hand.

Then check /etc/localtime (link) points to your zoneinfo.

Also check goggle:

http://www.google.es/search?hl=es&ie=ISO-8859-1&q=%22unable+to+set+system+clock%22&btnG=B%FAsqueda&meta=
_________________
Entropy rulz world.
Redundancy sux.
World is full of redundancy.
World sux.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Mon Jun 21, 2004 12:51 am    Post subject: I have the same trouble.... Reply with quote

The real problem here is that every boot is going to fsck your root partition because the machine is going to think that last time it was fsck'd was the epoch. And that's just wrong.

I just moved to 2.6.7 kernel too. I did the following to troubleshoot this:

Code:
# hwclock --show --debug
hwclock from util-linux-2.12
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.


Aha. No /dev/rtc (real time clock). Let's check the kernel config:

Code:
# grep -i rtc .config
CONFIG_GEN_RTC=m
CONFIG_GEN_RTC_X=y


Ah. It's compiled as a module. This means I either need an initrd at boot, or I need to recompile it into the kernel. I'll try the latter and let you know what happens.
Back to top
View user's profile Send private message
IvanHoe
l33t
l33t


Joined: 05 Oct 2002
Posts: 658

PostPosted: Mon Jun 21, 2004 1:16 am    Post subject: Reply with quote

Thanks for the info. I'll take a look at my config a little later.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Mon Jun 21, 2004 1:21 am    Post subject: no "error" now.... Reply with quote

no error, and the /dev/rtc is there. However it does hang when it tries to access it. I have to do a series of ^C and returns to get control back from the hwclock process.

It may be that I am on a PPC and I am running a stock 2.6.7 kernel. Don't know.

This isn't solved for me yet.
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Mon Jun 21, 2004 3:59 am    Post subject: SOLVED Reply with quote

*My* problem was that I had both CONFIG_GEN_RTC and CONFIG_GEN_RTC_X set in my kernel. What threw me off was that 2.4.x used CONFIG_PPC_RTC instead. This appears not to have been carried forward in 2.6.x.

For PPCs, just set CONFIG_GEN_RTC, leave CONFIG_GEN_RTC_X disabled, and you are golden.

This may also be the case for your AMD64 IvanHoe, but can't be sure.
Back to top
View user's profile Send private message
IvanHoe
l33t
l33t


Joined: 05 Oct 2002
Posts: 658

PostPosted: Mon Jun 21, 2004 6:45 am    Post subject: Reply with quote

I figured it out. I just needed to select "Enhanced Real Time Clock Support" under "Device Drivers / Character devices" and it works fine now. :)
Back to top
View user's profile Send private message
zawart
n00b
n00b


Joined: 03 Sep 2006
Posts: 3

PostPosted: Sun Sep 03, 2006 4:45 pm    Post subject: Cannot access the Hardware Clock via any known method AMD64 Reply with quote

hi,
I have gentoo 2006.1.
I do everything what was in handbook,
and I get some error when i try to boot gento

Code:
Setting system clock using the hardware clock [Local Time] ...
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 system clock to hardware clock

Of course when i delete /etc/init.d/clock and the registry 'clock' in the /sbin/rc and the symbolic link in /etc/runlevels for clock. System boot. but without syslog-ng, which is not working witout clock. Any ideas what to do to start /etc/init.d/clock without errors ??
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Sep 03, 2006 4:48 pm    Post subject: Reply with quote

Did you enable the driver for the RTC device in your kernel? Or did you use genkernel to build a kernel?
What machine does this happen on?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
zawart
n00b
n00b


Joined: 03 Sep 2006
Posts: 3

PostPosted: Sun Sep 03, 2006 4:50 pm    Post subject: Reply with quote

I checked the "Real Time Clock" in Device Driver in Kernel. I don't used genkernel.
It's on Processor AMD64 3500+ s.939 , Motherboard Gigabyte GA-K8N51GMF-9

Now, it's works. I missed the driver for RTC in Character Device. :oops:


Last edited by zawart on Sun Sep 03, 2006 5:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Sep 03, 2006 5:01 pm    Post subject: Reply with quote

Merged above three posts here.
Let's continue here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
SHINODATT
n00b
n00b


Joined: 07 Jan 2006
Posts: 70
Location: Ontario, Canada

PostPosted: Mon Sep 18, 2006 10:41 pm    Post subject: Reply with quote

I had the same problem and just found out I didn't have Generic RTC support enabled in my Kernel.

DOH!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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