Re: aranym /dev/rtc
On Fri, May 15, 2009 at 18:35, Lance Tagliapietra <email@example.com> wrote:
> On Tue, Apr 28, 2009 at 09:58:31AM -0500, Stephen R Marenka wrote:
>> On Mon, Apr 27, 2009 at 10:33:14PM +0200, Geert Uytterhoeven wrote:
>> > On Mon, Apr 27, 2009 at 20:56, Stephen R Marenka <firstname.lastname@example.org> wrote:
>> > > It was recently pointed out to me that under aranym there is no
>> > > /dev/rtc and none of the rtc-*.ko modules helps.
>> > >
>> > > Of course openntpd does.
>> > >
>> > > Should rtc work? Did I miss something in the kernel config?
>> > Works here!
>> > $ hwclock -ur
>> > Tue Apr 28 00:25:59 2009 -1.010041 seconds
>> > $
>> > There are actually 4 options, some will not work yet, though:
>> > 1. CONFIG_RTC_CLASS=n, CONFIG_GEN_RTC=[my], /dev/rtc = 10,135
>> > This is what I was using, using the deprecated generic RTC interface.
>> > 2. CONFIG_RTC_CLASS=n, CONFIG_RTC=[my], /dev/rtc = 10,135
>> > Old style CMOS RTC driver, used to work on PC and Atari.
>> > 3. CONFIG_RTC_CLASS=y, CONFIG_RTC_DRV_GENERIC=[my], /dev/rtc is dynamic
>> > Should work, as of 2.6.30-rc1, using RTC class on top of the
>> > generic RTC interface.
>> > 4. CONFIG_RTC_CLASS=y, CONFIG_RTC_DRV_CMOS=[my], /dev/rtc is dynamic
>> > While rtc-cmos can be enabled on Atari (it was derived from
>> > rtc.c), it won't work yet,
>> > as the necessary rtc_cmos platform device is not yet created on Atari.
>> Config fixed for debian 2.6.29-4.
> But I don't think the CONFIG_RTC_CLASS=y is correct for the Amiga kernel builds
> but it is selected in the .config for the -amiga kernels available from
> (the 2.6.26 and 2.6.28 that I have looked at, anyway).
> I believe that CONFIG_GEN_RTC=y and CONFIG_GEN_RTC_X=y should be the proper
> selections and CONFIG_RTC_CLASS should not be set. These are the defaults for the m68k arch.
> I am currently building a kernel with these selection changes to verify (18.104.22.168).
Indeed, CONFIG_RTC_CLASS=y is only useful for m68k in 2.6.30-rc*.
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- email@example.com
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds