public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Two RTCs - how to choose in dependence of existence to eth0
@ 2013-08-22 17:24 meino.cramer
  2013-08-22 18:13 ` Florian Philipp
  0 siblings, 1 reply; 2+ messages in thread
From: meino.cramer @ 2013-08-22 17:24 UTC (permalink / raw
  To: Gentoo

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Two RTCs - how to choose in dependence of existence to eth0
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Philipp @ 2013-08-22 18:13 UTC (permalink / raw
  To: gentoo-user

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-22 18:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox