From: Florian Philipp <lists@binarywings.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Two RTCs - how to choose in dependence of existence to eth0
Date: Thu, 22 Aug 2013 20:13:31 +0200 [thread overview]
Message-ID: <521654CB.9070707@binarywings.net> (raw)
In-Reply-To: <20130822172443.GB3339@solfire>
[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]
Am 22.08.2013 19:24, schrieb meino.cramer@gmx.de:
> Hi,
>
> there are two RTC in my system. One is powered by the
> power of the system itsself and will forget space and
> time if the system is powered off. This is RTC0.
> The second one is powered by a little CR3216. This one
> will not forget the time. This is RTC1
> The system itsself is portable and will be used with and
> without access to the internet (no ethernet, no eth0).
>
> Surely it is possible to hack together a script which will
> run at boot time to figure out the source of the valid time.
> But this is somehow less elegant and gentoo-ish as it should be.
>
> I didnt found an application (via eix) which address this "problem".
>
> What is the recommended way to accomplish this task?
>
> Thank you very much in advance for any help!
> Best regards,
> mcc
>
I'm slightly confused. Do you need to use rtc0 at all? You can simply
configure your kernel to use rtc1 with CONFIG_RTC_HCTOSYS_DEVICE.
And for the hwclock init script you could add "-f /dev/rtc1" to the options.
What else is there to do?
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
prev parent reply other threads:[~2013-08-22 18:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 17:24 [gentoo-user] Two RTCs - how to choose in dependence of existence to eth0 meino.cramer
2013-08-22 18:13 ` Florian Philipp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=521654CB.9070707@binarywings.net \
--to=lists@binarywings.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox