rpi3 clock drift
Ian Lepore
ian at freebsd.org
Tue Nov 26 22:41:14 UTC 2019
On Wed, 2019-11-27 at 00:18 +0200, Stefan Parvu wrote:
> > I was thinking of ordering an I2C RTC but I'm unsure how to make
> > FreeBSD aware of the clock.
>
> We are currently using and heavily testing this RTC:
> https://afterthoughtsoftware.com/products/rasclock
>
> based on NXP PCF2129. See here complete description of a product
> based on FreeBSD 12 and RPI3+
> https://kronometrix.com/wp-content/uploads/2019/11/Kronometrix-K1.pdf
>
>
> Follow this thread for more instructions and hints how to get this
> RTC working with FreeBSD 12.
>
http://freebsd.1045724.x6.nabble.com/Rasclock-PCF2127-Hardware-Clock-FreeBSD-12-0-td6339218.html
>
>
I don't see that I ever followed up in that thread about the rasclock,
but I eventually updated the driver to init the chip into a lower power
mode and basically doubled the running-on-battery lifetime (cut the
power draw in half). I also added a sysctl that lets you set the
chip's oscillator drift tuning, and I found that by doing so you could
reduce the drift to about 1ppm (which is damn good for a cheap crystal
rtc).
You can just grab the code from the driver on head and recompile it on
whichever branch you're using to get those features.
-- Ian
More information about the freebsd-arm
mailing list