Port-sparc64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Sun Fire V240 RTC
On 2026-11-16, Julian Coleman <jdc%coris.org.uk@localhost> wrote:
> > Another test might be to disable the M5819p in my kernel and use the DS1307
> > as the one and only.
>
> Yes, that should work for 11. Changing the system time should change the
> ALOM time too.
I tried that after your new patch from below, and the result is that
using the DS1307 alone makes all warnings disappear. Then the time is
correctly saved to the chip and can be used after a reboot.
So for what did we exactly need the M5819p? :)
> There is an older version of the patch, with fewer changes:
>
> http://ftp.netbsd.org/pub/NetBSD/misc/jdc/todr-old.diff
>
> This would be easier to port, especially if you removed the references
> to todr_dev and t_dev. The output wouldn't have the device name, but
> that might be OK.
I changed todr_dev to cookie and todr_base_time to base_time, to make
it compile in the 11-branch.
The patched kernel definitely has an effect. The original warnings
are gone after a reboot, but now I have this warning instead:
WARNING: clock gained 946771200 seconds
I would guess that this warning is caused by the M5819p. It is still
the same after I set the time with a DS1307-only kernel and then
switched to the patched kernel again.
Is the mc146818.c driver known to be working in other hardware?
--
Frank Wille
Home |
Main Index |
Thread Index |
Old Index