Re: aranym /dev/rtc
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.
> Stephen R. Marenka If life's not fun, you're not doing it right!
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 (126.96.36.199).