Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0

Ian Lepore ian at freebsd.org
Thu Jul 18 22:36:24 UTC 2019


On Fri, 2019-07-19 at 01:31 +0300, Stefan Parvu wrote:
> 2hrs test:
> 
>  * time was correct 
> 
>  * but system log showed:
> 
> nxprtc0: <NXP PCF2129 RTC> at addr 0xa2 on iicbus0
> nxprtc0: WARNING: RTC battery failed; time is invalid
> nxprtc0: registered as a time-of-day clock, resolution 0.015625s
> nxprtc0: RTC clock not running
> 
> 

The time couldn't have been correct from the RTC if it said the clock
was not running -- the driver says that instead of returning a time to
the kernel.  Ntpd must have already set the time before you checked it.

>  * after I did kldunload / load I got:
> 
> nxprtc0: detached
> iicbus0: <unknown card> at addr 0xa2
> nxprtc0: <NXP PCF2129 RTC> at addr 0xa2 on iicbus0
> nxprtc0: registered as a time-of-day clock, resolution 0.015625s
> 

It's odd that you're getting battery failures, but never a battery-low
warning when the driver attaches.

-- Ian

> I will run a longer test (6-8hrs) and as well test Raspbian on this
> hdw to really rule out
> hardware probalems
> 
> Stefan Parvu
> sparvu at kronometrix.org
> 
> 
> 
> > On 18 Jul 2019, at 23.49, Stefan Parvu <sparvu at kronometrix.org>
> > wrote:
> > 
> > > warning: KLD '/boot/kernel/nxprtc.ko' is newer than the
> > > linker.hints file
> > > nxprtc0: <NXP PCF2129 RTC> at addr 0xa2 on iicbus0
> > > nxprtc0: registered as a time-of-day clock, resolution 0.015625s
> > 
> > ok. that was just an warning. I re-created anyway the linker.hints
> > and
> > now that warning is gone.
> > 
> > anyway, here the main issue:
> > 
> > If I keep my RBPI 10 minutes down, no power, all good, time is
> > correctly kept
> > and displayed.
> > 
> > $ date
> > Thu Jul 18 20:46:21 UTC 2019
> > 
> > $ kldstat
> > Id Refs Address                Size Name
> > 1    9 0xffff000000000000  13d1480 kernel
> > 3    1 0xffff000001415000    40ea8 nxprtc.ko
> > 4    1 0xffff000053600000    41000 tmpfs.ko
> > 5    1 0xffff000053641000    31000 mac_ntpd.ko
> > 
> > $ dmesg | grep nxp
> > nxprtc0: <NXP PCF2129 RTC> at addr 0xa2 on iicbus0
> > nxprtc0: registered as a time-of-day clock, resolution 0.015625s
> > 
> > I will try to keep it off now for +1hr - and then I bet the
> > problems start to show.
> > 
> > Stefan 
> > 
> > 
> > _______________________________________________
> > freebsd-arm at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "
> > freebsd-arm-unsubscribe at freebsd.org"
> 
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org
> "



More information about the freebsd-arm mailing list