Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179780 - sys-apps/util-linux-2.12r-r7 - hwclock doesn't work rtc framework (/dev/rtc#)
Summary: sys-apps/util-linux-2.12r-r7 - hwclock doesn't work rtc framework (/dev/rtc#)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 18:52 UTC by Renato Caldas
Modified: 2007-12-14 03:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Caldas 2007-05-25 18:52:05 UTC
From what I've read RTC_CLASS is the new rtc framework for the kernel, and will eventually supersede the other rtc driver framework. So now /dev/rtc is replaced by /dev/rtc<n> where <n> is the rtc index. In my system I have a /dev/rtc0.

Unfortunately hwclock from sys-apps/util-linux-2.12r-r7 is unable to work under this new environment:

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

So the "/etc/init.d/clock" baselayout script doesn't work and reports this error every time it is ran (that is, at every boot). Strangely (or not) the system clock is correctly updated. So I'm not sure if this is a core-system or baselayout bug.

PS: I'm currently trying out baselayout-2.0.0_alpha3, so I'm trying to solve the boot errors one by one..
Comment 1 Renato Caldas 2007-05-25 21:38:54 UTC
As a side note, the system works perfectly with /etc/init.d/clock removed from the runlevels. So maybe it is not needed under new kernels (?) or maybe the docs should be updated (?)

Should I submit a new bug report and/or patches to the docs? Or is this plain stupid?
Comment 2 SpanKY gentoo-dev 2007-05-26 02:21:50 UTC
this has been fixed upstream in util-linux already ... not sure it's worth backporting the changes though
Comment 3 SpanKY gentoo-dev 2007-09-03 15:20:35 UTC
2.13 is in portage now and it should work fine
Comment 4 Chris Mayo 2007-11-05 20:16:25 UTC
Not fixed in 2.13 for me or others. Even specifying the device:

hwclock --systohc --rtc=/dev/rtc0
hwclock: open() of /dev/rtc failed, errno=2: No such file or directory.

Needed to apply the patch from:
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff_plain;h=5d1f6bae3b298809ecd63b3e55f6ab30caaa4dbf
Comment 5 Renato Caldas 2007-11-06 20:33:15 UTC
I'm reopening this then(In reply to comment #4)
> Not fixed in 2.13 for me or others. (...)

I'm reopening it then.