Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hwclock stopped working after update? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1392

PostPosted: Mon Oct 12, 2015 1:35 pm    Post subject: hwclock stopped working after update? [SOLVED] Reply with quote

After updating yesterday (no change or update to the kernel), hwclock stopped working. On bootup I'm getting this:

Code:
 * Setting hardware clock using the system clock [UTC] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.


If I try to run it manually I get this:

Code:
hwclock --utc
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.


I'm assuming this is because of the upgrade to sys-apps/util-linux-2.26.2 from 2.25.2-r2. Does that version require different kernel options? If it's related to RTC here's what I've always had:

Code:
grep RTC /usr/src/linux-4.0.5-gentoo/.config
CONFIG_RTC_LIB=y
# CONFIG_RTC_CLASS is not set
# CONFIG_INTEL_SMARTCONNECT is not set


Any ideas? Thanks.


Last edited by tld on Mon Oct 12, 2015 2:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1392

PostPosted: Mon Oct 12, 2015 1:40 pm    Post subject: Reply with quote

Another machine here still running the older linux utils (with the same kernel RTC settings) does this:

Code:
hwclock --debug
hwclock from util-linux 2.25.2
hwclock: cannot open /dev/rtc: No such file or directory
Using direct I/O instructions to ISA clock.
Last drift adjustment done at 1306064760 seconds after 1969
Last calibration done at 1304631937 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2015/10/12 13:36:35
Hw clock time : 2015/10/12 13:36:35 = 1444656995 seconds since 1969
Mon 12 Oct 2015 09:36:35 AM EDT  -0.781206 seconds


Whereas this machine (the upgraded one) gives me this:

Code:
hwclock --debug
hwclock from util-linux 2.26.2
hwclock: cannot open /dev/rtc: No such file or directory
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.


Apparently that "Using direct I/O instructions to ISA clock" is no longer happening(?).
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1392

PostPosted: Mon Oct 12, 2015 2:07 pm    Post subject: Reply with quote

Apparently hwclock no longer uses that direct ISA when RTC isn't expressly compiled into the kernel. This is from the man page:

Code:
As of v2.26 it will no longer automatically use directisa when the rtc driver is unavailable; this
 was causing an unsafe condition that could allow two processes to access the Hardware Clock at  the  same  time.


I made this change to my /etc/conf.d/hwclock:

Code:
clock_args="--directisa"


...which is apparently needed without RTC.

Tom
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Oct 12, 2015 2:09 pm    Post subject: Reply with quote

tld wrote:
Apparently that "Using direct I/O instructions to ISA clock" is no longer happening(?).

tld ... try adding '--directisa'

/etc/conf.d/hwclock
Code:
clock_args="--directisa"

HTH & best ... khay

edit ... I see you've since figured this
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1392

PostPosted: Mon Oct 12, 2015 3:36 pm    Post subject: Reply with quote

khayyam wrote:
edit ... I see you've since figured this
Thanks just the same!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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