Port-sparc64 archive

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

Re: Sun Fire V240 RTC



On 16.11.2026 at 16:07 Julian Coleman wrote:
WARNING: CHECK AND RESET THE DATE!
[...]

From Martin's experience a while back, the DS1307 is used at reset time
to set the M5819p.  So, you would need to correct the time via the ALOM
for it to stay correct.  It would be interesting to use `date` to set
the M5819p and double check that the date/time is wrong on the next
boot.

Yes. Confirmed. Setting the M5819p with date(1) doesn't help. So we can assume it is reset by ALOM using the DS1307.

Another test might be to disable the M5819p in my kernel and use the DS1307 as the one and only.


Right.  We currently only support a single TOD.  All others are ignored.
For sparc64, this means a number of machines with ALOM or multiple boards
won't synchronise all the hardware TOD's.  For the V240, you could try
this patch:

   http://ftp.netbsd.org/pub/NetBSD/misc/jdc/todr.diff

This patch is for current source. Unfortunately the first two members of todr_chip_handle_t changed between 11 and current.

I guess todr_dev is cookie and todr_devaux is bus_cookie in 11? Perhaps I can rewrite that code and try later...


which will allow multiple system TOD's.  It still might need some updates
to handle preferred clocks or some way to configure which is the main
TOD, as outside of a few heuristics the first TOD in probe order is used
as the main TOD.

Yes, that would be nice. Although most users probably won't care which is the primary TOD, as long as the time is correct. ;)

--
Frank Wille



Home | Main Index | Thread Index | Old Index