Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232343 - openrc, hwclock service failed to load rtc module
Summary: openrc, hwclock service failed to load rtc module
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-19 15:16 UTC by Andrew Gaydenko
Modified: 2009-05-03 12:09 UTC (History)
3 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 Andrew Gaydenko 2008-07-19 15:16:54 UTC
hwclock service, being started at 'boot' time, failed to load rtc (or genrtc) modules - say, kernel 2.6.26 have not such modules at all. OTOH, I have not found an "official" way to load appropriate rtc module (at my case rtc_cmos seem to work) before the service starting.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-19 15:59:48 UTC
Set CONFIG_GEN_RTC=y in menuconfig for your kernel - that should provide a generic /dev/rtc. Reopen this bug if that doesn't fix the issue.
Comment 2 Andrew Gaydenko 2008-07-19 17:22:14 UTC
1. Ok, it is probable my .config is incorrect. But have not found this flag. Will anybody be so kind to attach (or send using direct emailing) ~amd/x86_64/gentoo-sources-2.6.26 .config file with the CONFIG_GEN_RTC set? Probably there are some dependencies I can not recognize.

2. At any case - is the situation (cann't manage init sequence) something we want?
Comment 3 Fabio Alessandrelli 2008-07-24 13:35:28 UTC
I have the same problem and my config don't have CONFIG_GEN_RTC.

It seems some change in the kernel since 2.6.26. If I understood well the rtc module was splitted in various rtc-[something] modules. The appropriate one for x86 arch and all ACPI-Based hardware seems to be rtc-cmos. If you load it as a module and start hwclock it should work.

I solved the booting sequence problem setting as "*" menuconfig --> Device Drivers -->  Real Time Clock and menuconfig --> Device Drivers -->  Real Time Clock --> PC-style 'CMOS'.

In config file it should be: 

CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_DRV_CMOS=y


(In reply to comment #2)
> 1. Ok, it is probable my .config is incorrect. But have not found this flag.
> Will anybody be so kind to attach (or send using direct emailing)
> ~amd/x86_64/gentoo-sources-2.6.26 .config file with the CONFIG_GEN_RTC set?
> Probably there are some dependencies I can not recognize.
> 
> 2. At any case - is the situation (cann't manage init sequence) something we
> want?
> 
Comment 4 NiTr0 2009-05-03 12:09:27 UTC
Module rtc_cmos isn't loaded during boot because in /etc/modprobe.d/pnp-aliases there is an error - it contains line:
alias pnp:dPNP0b00 rtc
but there is no module rtc, and loaded rtc_cmos module is assigned for PNP device PNP0b00. So I change this line to:
alias pnp:dPNP0b00 rtc_cmos
I tested it on x86 and x86_64 PCs (AthlonXP/NForce2 and Sempron/NForce3) - it works on both fine.
IMHO it'll be good to fix pnp-aliases in next releases...