Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) Failed to set system clock
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Thu Sep 20, 2012 9:02 pm    Post subject: (solved) Failed to set system clock Reply with quote

Here's my current list of warnings and errors as i boot.
Code:
Warning: rc_sys not defined in rc.conf. Falling back to automatic detection
hwclock: Cannot access the Hardware Clock via any known method.
hwlcock: Use the --debug option to see the details of our search for an access method.
Failed to set the system clock


I find that "failed to set the system clock" awfully intimidating... i don't know what it might cause, but if it doesn't do anything wrong i don't mind just ignoring it

here's the debug results
Code:
hwclock --debug
hwclock from util-linux 2.20.1
hwclock: Open of /dev/rtc failed: No such file or directory
No useable clock interface found.
hwclock: Cannot access the Hardware clock via any known method.


The way i see it (an absolute noob) this most likely has to do with realtimeclock or something like that, which i saw when i was configing my kernel (with genkernel --menuconfig)
i remember (by default) it was turned off. not knowing what exactly it was supposed to do i just left it like that.

How would you recommend i fix this problem? i don't have the spine to just continue installing stuff on my OS if its giving me errors like that unless i understand precisely what they are going to cause. as a matter of fact this is one of the traits i like about myself.


Last edited by rabcor on Fri Sep 21, 2012 8:45 am; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 9:14 pm    Post subject: Reply with quote

Is udev in your sysinit runlevel :?:

And these should be set CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Thu Sep 20, 2012 9:17 pm    Post subject: Reply with quote

how do i check that? how do i do that?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 9:19 pm    Post subject: Reply with quote

rabcor wrote:
how do i check that? how do i do that?

Code:
grep DEVTMPFS /usr/src/linux/.config

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Thu Sep 20, 2012 9:51 pm    Post subject: Reply with quote

BillWho wrote:

Code:
grep DEVTMPFS /usr/src/linux/.config


Trying now, took me a while cus i was busy installing my windows 7 drivers.

they're both set to y.

what about that udev thing?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 10:01 pm    Post subject: Reply with quote

rabcor wrote:
BillWho wrote:

Code:
grep DEVTMPFS /usr/src/linux/.config


Trying now, took me a while cus i was busy installing my windows 7 drivers.

they're both set to y.

what about that udev thing?

Code:
rc-update|grep udev

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Thu Sep 20, 2012 11:02 pm    Post subject: Reply with quote

Code:
                udev|                           sysinit
udev-postmount|     default



it would seem this was not our problem.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 11:22 pm    Post subject: Reply with quote

rabcor,

That's odd - I've installed gentoo at least a dozen times and never had hwclock fail :?

Paste back the results of these:
Code:
ls -l /dev/rtc*

grep CONFIG_RTC_INTF_DEV /usr/src/linux/.config

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Thu Sep 20, 2012 11:31 pm    Post subject: Reply with quote

i already know /dev/rtc is nonexistant. (did ls before)

i'll see what the other one says in a few
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Sep 20, 2012 11:37 pm    Post subject: Reply with quote

rabcor wrote:
i already know /dev/rtc is nonexistant. (did ls before)

i'll see what the other one says in a few

I wanted to check for /dev/rtc0

According to Kconfig
82 config RTC_INTF_DEV
83 boolean "/dev/rtcN (character devices)"
84 default RTC_CLASS
85 help
86 Say yes here if you want to use your RTCs using the /dev
87 interfaces, which "udev" sets up as /dev/rtc0 through
88 /dev/rtcN.
89
90 You may want to set up a symbolic link so one of these
91 can be accessed as /dev/rtc, which is a name
92 expected by "hwclock" and some other programs. Recent
93 versions of "udev" are known to set up the symlink for you
.
94
95 If unsure, say Y.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Fri Sep 21, 2012 1:22 am    Post subject: Reply with quote

BillWho wrote:
rabcor wrote:
i already know /dev/rtc is nonexistant. (did ls before)

i'll see what the other one says in a few

I wanted to check for /dev/rtc0

According to Kconfig
82 config RTC_INTF_DEV
83 boolean "/dev/rtcN (character devices)"
84 default RTC_CLASS
85 help
86 Say yes here if you want to use your RTCs using the /dev
87 interfaces, which "udev" sets up as /dev/rtc0 through
88 /dev/rtcN.
89
90 You may want to set up a symbolic link so one of these
91 can be accessed as /dev/rtc, which is a name
92 expected by "hwclock" and some other programs. Recent
93 versions of "udev" are known to set up the symlink for you
.
94
95 If unsure, say Y.


i did the commands in ur earlier post, both of them, they both give me nothing

however, this i could find...

grep CONFIG_RTC /usr/src/linux/.config
CONFIG_RTC is not set
CONFIG_RTC_CLASS is not set
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Sep 21, 2012 2:21 am    Post subject: Reply with quote

rabcor,

There has to be a /dev/rtc in order for hwclock to work. This is a grep of my RTC settings set to y.
Code:
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_DRV_CMOS=y

I'm perplexed that the clock doesn't work out-of-the-box :? What kernel did you emerge :?:

grep your .config with
Code:
grep CONFIG_RTC /usr/src/linux/.config |grep y
to check your settings.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Fri Sep 21, 2012 2:59 am    Post subject: Reply with quote

Well i really just followed the handbook pretty much to the letter, and went with genkernel rather than manual configuration, then i used --menuconfig to edit some stuff, but as default i just remember RTC was off, it was an option that caught my eye, like i said before.

i kindof already figured this rtc file needs to be there for the clock to work, i mean that IS the problem after all.

so do you have any idea how to fix it?

i can do that
Code:
grep CONFIG_RTC /usr/src/linux/.config |grep y
after a few minutes after installing these windows updates, if you really think i have to (Isn't it pretty much the same as what i did earlier? apart from the |grep y)

i also kindof don't know how these things work, if i edit /usr/src/linux/.config would i need to generate the kernel again for the settings to kick in? or would it just do so automatically?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Sep 21, 2012 3:24 am    Post subject: Reply with quote

rabcor wrote:
i also kindof don't know how these things work, if i edit /usr/src/linux/.config would i need to generate the kernel again for the settings to kick in? or would it just do so automatically?

Don't directly edit /usr/src/linux/.config - use menuconfig to make the changes. And, yes, the kernel has to be compiled after any changes.
rabcor wrote:
Well i really just followed the handbook pretty much to the letter, and went with genkernel rather than manual configuration, then i used --menuconfig to edit some stuff, but as default i just remember RTC was off, it was an option that caught my eye, like i said before.

The way you did it is fine. I don't use genkernel so I'm at a loss on how it works. I use make && make modules_install to compile the kernel.

What I want with grep CONFIG_RTC /usr/src/linux/.config |grep y is for you to match my settings - my config works for the clock :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Fri Sep 21, 2012 5:07 am    Post subject: Reply with quote

i did that command, doesn't seem to have done anything

Maybe i should just run genkernel again with menuconfig and no-clean, activate RTC in te menu, and recompile it, then replace the kernel i'm using now... couldn't hurt to try right?

that wont cause any issues will it? can it? can i, at any time i want, without any problems generate a new kernel? as in, say i've had gentoo set up for a few months, got a bunch of programs, etc, etc, etc, i feel like making a new kernel, update or whatever my reasons might be, it shouldn't cause any problems with anything right? i should just be able to boot that instead of my old kernel and then everything would be the same, except new kernel right? or is it not that simple?

I edited the settings and recompiled the kernel

My settings are now the same as urs.

however... /dev/rtc has not been made..

Nevermind, i made a small mistake, it has been made.

So now i'm just seriously surprised that the default /usr/src/.config didn't have that option on... seems pretty essential to me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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