Date: Mon, 21 Feb 2022 23:03:42 +1100 From: Brian Scott <bscott@bunyatech.com.au> To: freebsd-arm@freebsd.org Subject: Re: DS3231 RTC module not detected Message-ID: <3c167b34-9f12-edd8-0d28-251c5529e6b0@bunyatech.com.au> In-Reply-To: <CAJFbk7FVOjg0zP-WKhKP3ANeGrOiUsEt_9YqGQX2V2inQ16tdg@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> <6C023EE9-E5E9-4C2B-B715-97317B6370A7@dons.net.au> <CAJFbk7FVOjg0zP-WKhKP3ANeGrOiUsEt_9YqGQX2V2inQ16tdg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------3qvlW3xoMYqViptcaTO00p0w Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 21/2/22 10:46 pm, Archimedes Gaviola wrote: > > > On Mon, Feb 21, 2022 at 7:29 PM Daniel O'Connor <darius@dons.net.au> > wrote: > > > > > 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 > > No I didn't realise it was necessary :) > > > Yes it is :-) > > > > > 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), > > > > include GENERIC > > ident GENERIC-PI > > nooptions SOC_NVIDIA_TEGRA210 > > > > 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="YES" if necessary. Lastly, kindly backup your data > before recompiling for safety. > > > > This is the way I do it with my ds3231 driver, hope you will get > the same result. > > Thanks. > > > > You're welcome. > > > 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=1bd3e8ba696633ccd7525030d951b58ade167814 > https://cgit.freebsd.org/src/commit/?id=a534b50e245d801af887d91b5d48ebcf120aa039 > > > Wow, this is good news... > > Although I have not been brave enough to update to HEAD and try it > yet :) > > > Yeah, better to wait than meet a lot of surprises with HEAD :-) Thanks for the fix. I hope to try it soon. Brian --------------3qvlW3xoMYqViptcaTO00p0w Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">On 21/2/22 10:46 pm, Archimedes Gaviola wrote:<br> </div> <blockquote type="cite" cite="mid:CAJFbk7FVOjg0zP-WKhKP3ANeGrOiUsEt_9YqGQX2V2inQ16tdg@mail.gmail.com"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr"> <div dir="ltr"><br> </div> <br> <div class="gmail_quote"> <div dir="ltr" class="gmail_attr">On Mon, Feb 21, 2022 at 7:29 PM Daniel O'Connor <<a href="mailto:darius@dons.net.au" moz-do-not-send="true" class="moz-txt-link-freetext">darius@dons.net.au</a>> wrote:<br> </div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> <br> > On 21 Feb 2022, at 21:50, Archimedes Gaviola <<a href="mailto:archimedes.gaviola@gmail.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">archimedes.gaviola@gmail.com</a>> wrote:<br> > Did you re-compile your kernel? Brian has shared his resolution on customizing the GENERIC kernel here <br> <br> No I didn't realise it was necessary :)<br> </blockquote> <div><br> </div> <div>Yes it is :-)</div> <div> <br> </div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br> > <a href="https://lists.freebsd.org/archives/freebsd-arm/2022-February/001024.html" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.freebsd.org/archives/freebsd-arm/2022-February/001024.html</a> 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),<br> > <br> > include GENERIC<br> > ident GENERIC-PI<br> > nooptions SOC_NVIDIA_TEGRA210<br> > <br> > 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="YES" if necessary. Lastly, kindly backup your data before recompiling for safety.<br> > <br> > This is the way I do it with my ds3231 driver, hope you will get the same result.<br> <br> Thanks.<br> </blockquote> <div><br> </div> <div><br> </div> <div>You're welcome.<br> </div> <div> </div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br> I chatted to some people on IRC and I think it's fixed in a later version anyway with these commits:<br> <a href="https://cgit.freebsd.org/src/commit/?id=1bd3e8ba696633ccd7525030d951b58ade167814" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://cgit.freebsd.org/src/commit/?id=1bd3e8ba696633ccd7525030d951b58ade167814</a><br> <a href="https://cgit.freebsd.org/src/commit/?id=a534b50e245d801af887d91b5d48ebcf120aa039" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://cgit.freebsd.org/src/commit/?id=a534b50e245d801af887d91b5d48ebcf120aa039</a><br> <br> </blockquote> <div><br> </div> <div>Wow, this is good news...<br> </div> <div> <br> </div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> Although I have not been brave enough to update to HEAD and try it yet :)<br> </blockquote> </div> <div class="gmail_quote"><br> </div> <div class="gmail_quote">Yeah, better to wait than meet a lot of surprises with HEAD :-)<br> </div> </div> </blockquote> <p>Thanks for the fix. I hope to try it soon.</p> <p>Brian<br> </p> </body> </html> --------------3qvlW3xoMYqViptcaTO00p0w--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3c167b34-9f12-edd8-0d28-251c5529e6b0>