Correction, it's -> $ rdate pool.ntp.org On Mon, Aug 24, 2020 at 1:04 AM Archimedes Gaviola < archimedes.gavi...@gmail.com> wrote:
> > > On Sun, Aug 23, 2020 at 10:50 PM Mark Kettenis <mark.kette...@xs4all.nl> > wrote: > >> > From: Archimedes Gaviola <archimedes.gavi...@gmail.com> >> > Date: Sun, 23 Aug 2020 22:36:49 +0800 >> > >> > Hi, >> > >> > Good day! >> > >> > How to enable DS3231 real-time clock in Raspberry Pi 4B? In Raspberry >> Pi 3B >> > these 2 lines below in the config.txt works. >> > >> > dtparam=i2c_arm=on >> > dtoverlay=i2c-rtc,ds3231 >> > >> > and resolve the dmesg messages below. >> > >> > WARNING: clock lost 8 days >> > WARNING: CHECK AND RESET THE DATE! >> > >> > This system is not always connected to the Internet. >> >> I think only the dtoverlay line is needed. But yes, this works as >> long as the i2c-rtc overlay file is present in the overlays >> subdirectory of the firmware partition of your boot medium. >> >> Many of the other chip types supported by the i2c-rtc overlay are >> supported by OpenBSD as well. Feel free to send me any modules with >> unsupported chips, and I'll make them work. >> >> Cheers, >> >> Mark >> > > Hi Mark, > > Thanks for your prompt response! I tried it now by pulling-out dtbo file > here > > > https://github.com/raspberrypi/firmware/blob/master/boot/overlays/i2c-rtc.dtbo > > and put it in the overlays directory and then update the system time and > date to current using NTP via $ rdate ntp.pool.org and then reboot. The > system will still show up > > WARNING: clock lost 8 days > WARNING: CHECK AND RESET THE DATE! > > In Raspberry Pi 3B, it showed-up something "i2c at dsxrtc" in the dmesg. > This time with Raspberry Pi 4B I had not seen any indicator. > > By the way, this is my RTC module > https://shopee.ph/DS3231-Mini-RTC-Module-i.18252381.315148783. > > Thanks and best regards, > Archimedes > >