From nobody Thu Feb 17 15:32:25 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 047C519C6EAA for ; Thu, 17 Feb 2022 15:32:38 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JzzNP25vFz3rc1 for ; Thu, 17 Feb 2022 15:32:37 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ed1-x52c.google.com with SMTP id h18so10320903edb.7 for ; Thu, 17 Feb 2022 07:32:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=jrDPC4mpSEGQzRLEpqY75hB1VXhxCoAEHi409Cbj04s=; b=Usumg3LKeHyQh7JCDo3j063mO2ayMRQLOFPJbVb6RinXDKsPliyMzRhqdXP+Mc9prN MyEq0bvrlbgSz99RBegj475gr8/80JPwODB+KNmRt9AeXLXlsFXdDJE/EmopsEBjAraO LvWoyAGywTqVlB3SH1QoyQ4DdpRkv6SJFV+Qs929QUrjH9mkV5YoascIBFyLRD6PvL+1 6HexW+D0CwrZH+Zk7wr6i2LbOEsHPaudM0yOVE1RGAaQj3dA4o+gfqa3+vi4HHCunYlN 2bfXCWrt5kCZhUkcegtRgKJ9RqChgGcZlCNDgadfxasH5Gv5Q2tJ8czGzUm910dV7mGi PDng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=jrDPC4mpSEGQzRLEpqY75hB1VXhxCoAEHi409Cbj04s=; b=o1coFx0d2wUgNr4Y3Tt82PT9SixV5I/0m60AN9M8GE5oT2ykVNBtFU3+u6vhQd7mB+ LeM/bE6QCo8Rv8mzSIPyzaiWDjb+1mQGfx3oLCKxDh2KN59j/zB7oHLgRIv2DjmOAQ0s azElueTN7z3xB1Z/88fk+Unv03hQsFBH/j8ha1vaU0PbPK67FoZ1simZMTyecPUHYQww YvcvrGF7rhhT4jaT1RBV6DoVBep1MaQvSX+L85Deo+Rt3ECZyShv6RIPBWTjjmdA6h59 Oy6GBr/wsWrSH/rkfxfawx1Bz4nzT7UVKIImhm4s+11ZbIsm2/qRfbTdb5QM7y9vkdD1 UlYw== X-Gm-Message-State: AOAM531WmQpOJPr9S8de2omEt1LF77gB4LGgJS98jJS7qp/FSqIfzJ/6 lIY4taEaDVFlw0hRi0jnmp+45SMWPpEq0zQAV3SvYVFF+JnfrQ== X-Google-Smtp-Source: ABdhPJxwFe8UlU82oDAZ+/Q+MClKviE/iRcRJbNJwz+ypHgG0SwfXBTlEty4+UWfc5b+h4ZYNr2o1uUNk/otzyJHqXE= X-Received: by 2002:a50:8e44:0:b0:40f:d71f:bdf5 with SMTP id 4-20020a508e44000000b0040fd71fbdf5mr3217230edx.166.1645111956029; Thu, 17 Feb 2022 07:32:36 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 From: Archimedes Gaviola Date: Thu, 17 Feb 2022 23:32:25 +0800 Message-ID: Subject: DS3231 RTC module not detected To: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c1465e05d8387997" X-Rspamd-Queue-Id: 4JzzNP25vFz3rc1 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Usumg3LK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --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
Hi,

I have a DS3231 real-tim= e clock module (http://wiki.sunfounder.cc/index= .php?title=3DDS3231_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=3Di2c_arm=3Don
dtoverlay=3Di2c-rtc,ds3231

and then I fetched a co= py of the i2c-rtc.dtbo file here https://github.com/raspber= rypi/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 =C2=A01 root =C2= =A0wheel =C2=A0 4.0K Feb 10 10:18 .
drwxr-xr-x =C2=A01 root =C2=A0wheel = =C2=A0 =C2=A016K Jan =C2=A01 =C2=A01980 ..
-rwxr-xr-x =C2=A01 root =C2= =A0wheel =C2=A0 1.0K Mar =C2=A03 =C2=A02021 disable-bt.dtbo
-rwxr-xr-x = =C2=A01 root =C2=A0wheel =C2=A0 172K Feb 11 06:09 i2c-rtc.dtbo
-rwxr-xr-= x =C2=A01 root =C2=A0wheel =C2=A0 1.2K Mar =C2=A03 =C2=A02021 mmc.dtbo
-= rwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 985B Mar =C2=A03 =C2=A02021 pwm.d= tbo

I rebooted my RPi 4B and then dmesg still prom= pts this message.

Warning: no time-of-day cloc= k registered, system time will not be set accurately

I have tried this configuration in OpenBSD 6.9 and it is work= ing. 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
=C2=A09 =C2=A0 =C2=A01 0xffff0000d1ab8000 =C2=A0 =C2=A023= 000 ds3231.ko

Thanks,
Archimedes

--000000000000c1465e05d8387997--