Date: Wed, 21 Nov 2018 13:51:44 -0700 From: Ian Lepore <ian@freebsd.org> To: Stefan Parvu <sparvu@kronometrix.org> Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD 12.0 RBPI3B+ and hardware clock support Message-ID: <1542833504.56571.87.camel@freebsd.org> In-Reply-To: <FF758714-F388-46FB-96C7-22FE58D1BE86@kronometrix.org> References: <70D1E906-D92A-4413-9327-DE1779E479E8@kronometrix.org> <1542825813.56571.77.camel@freebsd.org> <88AEE740-A64E-4F54-9A43-02DB605CFA2D@kronometrix.org> <1542832617.56571.81.camel@freebsd.org> <FF758714-F388-46FB-96C7-22FE58D1BE86@kronometrix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2018-11-21 at 22:42 +0200, Stefan Parvu wrote: > > > > Oddly enough, the ds1307 driver supports that chip. I think it's > > because the register set on the two chips is identical (or close > > enough > > to work right). > uauu. nice one. > > how on earth i can enable ds1307 - no need to rebuild anything > right ? Can I load the driver , if yes how ? > > > Stefan You can load it interactively with "kldload ds1307". Add ds1307_load=YES to /boot/loader.conf to load it every time you boot. But without modified FDT data, just loading the driver won't make it attach to the hardware. And this is where I can't help much more than that. In the old days the thing to do would be to hack the standard rpi .dts file to enable the i2c bus device and add the clock slave device, then rebuild that and replace the standard .dtb file with the new one. The new way to do all that is to code an overlay that enables the bus and adds the device, then set a loader.conf variable to make that overlay get loaded. But I don't know the details of how to do that, hopefully one of the folks who does know more about overlays can reply with that info. -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1542833504.56571.87.camel>