From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2010F1381F3 for ; Thu, 22 Aug 2013 18:17:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56EDBE0D17; Thu, 22 Aug 2013 18:17:16 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5B160E0C95 for ; Thu, 22 Aug 2013 18:17:15 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 525B221D5B for ; Thu, 22 Aug 2013 14:17:10 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 22 Aug 2013 14:17:12 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=NKOc6vccFnbPnMzu30t4X+Px hPs=; b=BZtOa1Xw7gaIuBvDMBpVDD+0HBDqn/K6rRFHgCe8P/Du81iruMQ+j92r yy84iHdvyF6ldPUz/bHyTpl0IOUrFxRk44FfJNP9CGXD8mdNdhYNBefoRywRW0OV R7LTglLuKBSeU17M50tPpRxToJuP35z/93roKOlSZDwxlyq17QU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=NKOc 6vccFnbPnMzu30t4X+PxhPs=; b=hDSFmskurVMoN0ePaauM+Z5XI+FqNFn/19Ot SoBVDEXA7czA81+AjkCDqcwOVf02kvA0N0HAafRWa93fiI0wzxfns4Phxt/ep823 zioHPaY4yo/4nHBaUB3/6Mm2FHpVdewkWcX21V9+RP+IFslztuEk4Hop38dzF6US hPJZ9cs= X-Sasl-enc: vkUnSY8yTtFVvsXuEkRGDA4Chkk/CNSpTo6XtJ11Rxpo 1377195430 Received: from [10.234.40.197] (unknown [46.115.71.40]) by mail.messagingengine.com (Postfix) with ESMTPA id DBB466804F0 for ; Thu, 22 Aug 2013 14:17:09 -0400 (EDT) Message-ID: <521654CB.9070707@binarywings.net> Date: Thu, 22 Aug 2013 20:13:31 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130813 Thunderbird/17.0.8 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Two RTCs - how to choose in dependence of existence to eth0 References: <20130822172443.GB3339@solfire> In-Reply-To: <20130822172443.GB3339@solfire> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B5iCUCp9jfctGPPtCR8U8w61Qtsrudhcq" X-Archives-Salt: ad7dc18f-de99-455e-83b7-47e5522ac085 X-Archives-Hash: 1bef0cf88032c5c0a8a8ae691244dc0e This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --B5iCUCp9jfctGPPtCR8U8w61Qtsrudhcq Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 22.08.2013 19:24, schrieb meino.cramer@gmx.de: > Hi, >=20 > there are two RTC in my system. One is powered by the=20 > 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). >=20 > 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. >=20 > I didnt found an application (via eix) which address this "problem". >=20 > What is the recommended way to accomplish this task? >=20 > Thank you very much in advance for any help! > Best regards, > mcc >=20 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 optio= ns. What else is there to do? Regards, Florian Philipp --B5iCUCp9jfctGPPtCR8U8w61Qtsrudhcq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIWVM8ACgkQqs4uOUlOuU+lwQCePJjPBW2YgPEfal1WCXBW5T+m RaYAn1ZNHzZ4g+/BLsm3kyA3wKi8jkQp =mQ8J -----END PGP SIGNATURE----- --B5iCUCp9jfctGPPtCR8U8w61Qtsrudhcq--