Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Sun Fire V240 RTC



Julian Coleman wrote:

It is very strange though.  I assumed from earlier that the M5819p was
being set by the firmware, because on Martin's machine, we saw the wrong
time being restored on each restart and I assumed that the wrong time was
coming from the DS1307.

Indeed. Booting with only DS1307 configured did prove now that it is not happening.

But something (most likely ALOM) must change the M5819p on reboot, if we assume its NetBSD driver is running correctly and should also reset invalid values after a battery change.


Or, does it only get changed through the ALOM's date command,
which sets both?

Unfortunately I cannot test that, because I never got the ALOM password with this used hardware. Not sure if I want to install Solaris now, to reset it... ;)

BTW, was an scadm-like tool ever considered for NetBSD?


[...] For sparc64, we have rtc at ebus in the kernel
config because there are desktop machines (SB2000, SB2500, etc.) which
use it as their only RTC.

Ok. Makes sense.

The multi-RTC approach is certainly better, but otherwise we could also check the machine name for V240/245 on boot and remove the ebus-RTC entry from the OFW-tree or similar?


I guess that with the kernel patch to handle multiple RTC's, then running
the date command will solve the problem.

But I already tested that with limited success.


[...] I have been talking to Dave Tyson, who sent in some patches for
PCF8583 clock modes (PR 60700) and he is looking at using sysctl to read
the date from multiple RTC's.  It should be easy to add write support to
sysctl, which would be useful for testing.

Ok. If we can define by sysctl which RTC to use, and simply ignore the other one completely, then at least the warning is gone. :)


--
Frank Wille



Home | Main Index | Thread Index | Old Index