Date: Thu, 17 Feb 2022 23:32:25 +0800 From: Archimedes Gaviola <archimedes.gaviola@gmail.com> To: freebsd-arm@freebsd.org Subject: DS3231 RTC module not detected Message-ID: <CAJFbk7EtkjnFBJgr-L3faxaQ2saNgEQ%2BLRPWbRySpwY8wJRh=Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--000000000000c1465e05d8387997 Content-Type: text/plain; charset="UTF-8" Hi, I have a DS3231 real-time clock module ( http://wiki.sunfounder.cc/index.php?title=DS3231_Real_Time_Clock_Module_for_Raspberry_Pi) but cannot be detected with FreeBSD 13.0-RELEASE and 14.0-CURRENT. My config.txt have this following lines; dtparam=i2c_arm=on dtoverlay=i2c-rtc,ds3231 and then I fetched a copy of the i2c-rtc.dtbo file here https://github.com/raspberrypi/firmware/blob/master/boot/overlays/i2c-rtc.dtbo and put it in the /boot/msdos/overlays directory. root@generic:/boot/msdos/overlays # ls -lah total 208 drwxr-xr-x 1 root wheel 4.0K Feb 10 10:18 . drwxr-xr-x 1 root wheel 16K Jan 1 1980 .. -rwxr-xr-x 1 root wheel 1.0K Mar 3 2021 disable-bt.dtbo -rwxr-xr-x 1 root wheel 172K Feb 11 06:09 i2c-rtc.dtbo -rwxr-xr-x 1 root wheel 1.2K Mar 3 2021 mmc.dtbo -rwxr-xr-x 1 root wheel 985B Mar 3 2021 pwm.dtbo I rebooted my RPi 4B and then dmesg still prompts this message. Warning: no time-of-day clock registered, system time will not be set accurately I have tried this configuration in OpenBSD 6.9 and it is working. Is there any method with FreeBSD? I also tried loading the ds3231.ko and enabled in the loader.conf and then rebooted my system again but still not able to detect the module. root@generic:~ # kldload ds3231 root@generic:~ # kldstat | grep ds3231 9 1 0xffff0000d1ab8000 23000 ds3231.ko Thanks, Archimedes --000000000000c1465e05d8387997 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I have a DS3231 real-tim= e clock module (<a href=3D"http://wiki.sunfounder.cc/index.php?title=3DDS32= 31_Real_Time_Clock_Module_for_Raspberry_Pi">http://wiki.sunfounder.cc/index= .php?title=3DDS3231_Real_Time_Clock_Module_for_Raspberry_Pi</a>) but cannot= be detected with FreeBSD 13.0-RELEASE and 14.0-CURRENT. My config.txt have= this following lines;</div><div><br></div><div> dtparam=3Di2c_arm=3Don</div><div> dtoverlay=3Di2c-rtc,ds3231</div><div><br></div><div>and then I fetched a co= py of the i2c-rtc.dtbo file here <a href=3D"https://github.com/raspberrypi/= firmware/blob/master/boot/overlays/i2c-rtc.dtbo">https://github.com/raspber= rypi/firmware/blob/master/boot/overlays/i2c-rtc.dtbo</a> and put it in the = /boot/msdos/overlays directory. <br></div><div><br></div><div>root@generic:= /boot/msdos/overlays # ls -lah<br>total 208<br>drwxr-xr-x =C2=A01 root =C2= =A0wheel =C2=A0 4.0K Feb 10 10:18 .<br>drwxr-xr-x =C2=A01 root =C2=A0wheel = =C2=A0 =C2=A016K Jan =C2=A01 =C2=A01980 ..<br>-rwxr-xr-x =C2=A01 root =C2= =A0wheel =C2=A0 1.0K Mar =C2=A03 =C2=A02021 disable-bt.dtbo<br>-rwxr-xr-x = =C2=A01 root =C2=A0wheel =C2=A0 172K Feb 11 06:09 i2c-rtc.dtbo<br>-rwxr-xr-= x =C2=A01 root =C2=A0wheel =C2=A0 1.2K Mar =C2=A03 =C2=A02021 mmc.dtbo<br>-= rwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 985B Mar =C2=A03 =C2=A02021 pwm.d= tbo</div><div><br></div><div>I rebooted my RPi 4B and then dmesg still prom= pts this message.<br></div><div><br></div><div>Warning: no time-of-day cloc= k registered, system time will not be set accurately</div><div><br></div><d= iv></div><div>I have tried this configuration in OpenBSD 6.9 and it is work= ing. Is there any method with FreeBSD?<br></div><div><br></div><div> I also tried loading the ds3231.ko and enabled in the loader.conf and then = rebooted my system again but still not able to detect the module.</div><div= ><br></div><div>root@generic:~ # kldload ds3231<br>root@generic:~ # kldstat= | grep ds3231<br>=C2=A09 =C2=A0 =C2=A01 0xffff0000d1ab8000 =C2=A0 =C2=A023= 000 ds3231.ko<br></div><div> </div><div><br></div><div>Thanks,</div><div>Archimedes<br></div><br></div> --000000000000c1465e05d8387997--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7EtkjnFBJgr-L3faxaQ2saNgEQ%2BLRPWbRySpwY8wJRh=Q>