Date: Mon, 21 Feb 2022 21:58:45 +1030 From: "Daniel O'Connor" <darius@dons.net.au> To: Archimedes Gaviola <archimedes.gaviola@gmail.com> Cc: freebsd-arm@freebsd.org Subject: Re: DS3231 RTC module not detected Message-ID: <6C023EE9-E5E9-4C2B-B715-97317B6370A7@dons.net.au> In-Reply-To: <CAJFbk7HdJDSNU0R1nNNMJsOePLpRb2=q9%2BOJOBTB8Boe6Ba6Ow@mail.gmail.com> References: <CAJFbk7EtkjnFBJgr-L3faxaQ2saNgEQ%2BLRPWbRySpwY8wJRh=Q@mail.gmail.com> <F2EFEDCC-1E00-4221-8AF9-3744A7AC359C@dons.net.au> <CAJFbk7Ed2R8M2xAkJQAjiivZie=8Ca_Rt50YEG4P3yWzQLQhrg@mail.gmail.com> <2DF482A7-FEFC-4833-A16B-A7A01B8713DD@dons.net.au> <CAJFbk7GRjq-MheWRhVN1TkLOkAiYx5_NH6K%2B3umN0SMjExyB8Q@mail.gmail.com> <94C3A304-B821-4885-A50D-32BD1FBED43D@dons.net.au> <CAJFbk7F7HvJGrf2UJn6hQ-PqfWKmttWLzqmqKHLfHGkJKS=kgg@mail.gmail.com> <76D58677-D12C-4F0D-A0E0-F28E300FE39B@dons.net.au> <CAJFbk7HdJDSNU0R1nNNMJsOePLpRb2=q9%2BOJOBTB8Boe6Ba6Ow@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 21 Feb 2022, at 21:50, Archimedes Gaviola = <archimedes.gaviola@gmail.com> wrote: > Did you re-compile your kernel? Brian has shared his resolution on = customizing the GENERIC kernel here=20 No I didn't realise it was necessary :) > = https://lists.freebsd.org/archives/freebsd-arm/2022-February/001024.html = which allows to free-up the i2c address 0x68 which by default is being = used by the MAX77620 RTC driver from the SOC_NVIDIA_TEGRA210. So, you = need to add these lines in your kernel (I assume it's still the GENERIC = otherwise use your existing config), >=20 > include GENERIC > ident GENERIC-PI > nooptions SOC_NVIDIA_TEGRA210 >=20 > and then recompile. Keep your /boot/msdos/config.txt and = /boot/msdos/overlays/ds1307.dtbo files intact. After recompiling and = rebooting, you can check the dmesg if the ds1307 driver is loaded, = otherwise invoke "kldload ds1307" and see if it's detected. Add a line = into your /boot/loader.conf with ds1307_enable=3D"YES" if necessary. = Lastly, kindly backup your data before recompiling for safety. >=20 > This is the way I do it with my ds3231 driver, hope you will get the = same result. Thanks. I chatted to some people on IRC and I think it's fixed in a later = version anyway with these commits: = https://cgit.freebsd.org/src/commit/?id=3D1bd3e8ba696633ccd7525030d951b58a= de167814 = https://cgit.freebsd.org/src/commit/?id=3Da534b50e245d801af887d91b5d48ebcf= 120aa039 Although I have not been brave enough to update to HEAD and try it yet = :) -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6C023EE9-E5E9-4C2B-B715-97317B6370A7>