<p>On Nov 22, 2011 5:58 PM, "Kay Sievers" <<a href="mailto:kay.sievers@vrfy.org">kay.sievers@vrfy.org</a>> wrote:<br>
><br>
> On Tue, Nov 22, 2011 at 23:42, Martin Langhoff<br>
> <<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>> wrote:<br>
> > On Tue, Nov 22, 2011 at 3:21 PM, Kay Sievers <<a href="mailto:kay.sievers@vrfy.org">kay.sievers@vrfy.org</a>> wrote:<br>
> >> Yeah, that's intentional. Udev on other platforms can't know which rtc<br>
> >> should be the preferred one.<br>
> ><br>
> > Well, now you can: if it says hctosys == 1, it means that the kernel<br>
> > config told it to pick that one, and that it's sync'd the system time<br>
> > to it.<br>
><br>
> You have rtc1 set in the kernel config for your box?</p>
<p>Correct. And rtc0 is only good for rtcwake -- won't hold "real" clock time, because it isn't battery-backed. </p>
<p>"My box" is the XO-1.75 platform, of which we expect a few million will be produced starting soon.</p>
<p>Future kernels may bring them up in different order, but that's a different pile of pain.</p>
<p>> >> This link is mainly for backwards compat, because in earlier days it<br>
> >> was a real kernel device.<br>
> ><br>
> > Well, the symlink has a very practical use! If you have several RTCs,<br>
> > you can use udev to symlink rtc to it, and it gets htclock to DTRT.<br>
> ><br>
> > On our XO-1.75, the "real" rtc is rtc1.<br>
> ><br>
> > Next, we got to get src/utils.c to prefer "rtc" if it finds it ;-)<br>
><br>
> I guess udev should claim /dev/rtc for the rtc device that has hctosys == 1 set?</p>
<p>Yep. It's a trivial udev rule, perhaps belongs to Fedora's initscripts?</p>
<p>cheers,<br><br><br><br></p>
<p>m<br>
{ Martin Langhoff - one laptop per child } <br>
</p>