From nobody Sun Jul 03 18:22:29 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 C7F0E8AB950 for ; Sun, 3 Jul 2022 18:22:35 +0000 (UTC) (envelope-from freebsd-rj@cyclaero.com) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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.rzone.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lbcjl03p5z4tYb for ; Sun, 3 Jul 2022 18:22:34 +0000 (UTC) (envelope-from freebsd-rj@cyclaero.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1656872551; s=strato-dkim-0002; d=cyclaero.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=FvDrQ4Giq5t1XwRIJFEaV7AhRJ6V/BGu1z/Mq1WCmaY=; b=JxNvA/mQxUshK6BJTnCrQdlBtyXMpCaENwprD6SbYWrbhQpJgDrEeSGKZU1hDlkqIj Jfrt0TTJkSLKGWGJ+27i9KzxaBXNIqPFkczwUKmtm96Vib18Z0gTvwg5NCeotknZ+7jI GtIqKLlwzumE+Xp8Pmywjz1paa4R7n5nWWOVfFdU/jGQtmLCzRwsJE/SgvVEQ34Y/qhY aSNvKjKn/Ls35uCBejy2OVSSMxlDZ/cnSJikQKeBX8QHhg1tf8r5+Juc9SCQ7Jj2NR7u ZZBBGDdSV6/og6BAg5h4WYamKNziedWWIhl82Lkga8CyXxqQUVtarWMysI1Favx6HnbW kOdA== X-RZG-AUTH: ":O2kGeEG7b/pS1F2rRHW2isrKl4DV03XBEi+I6ZuztdvN9wS3wFGySS4Lw+ldTBio08NTPnK5bNCibgxfnBg=" X-RZG-CLASS-ID: mo00 Received: from mail.obsigna.com by smtp.strato.de (RZmta 47.46.1 AUTH) with ESMTPSA id kcd9d5y63IMVAzd (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 3 Jul 2022 20:22:31 +0200 (CEST) Received: from rolf-mini.obsigna.com (200-207-179-239.dial-up.telesp.net.br [200.207.179.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.obsigna.com (Postfix) with ESMTPSA id 713FC63847; Sun, 3 Jul 2022 20:22:30 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 12.4 \(3445.104.15\)) Subject: Re: RPI4 + ntpdate + unbound From: "Dr. Rolf Jansen" In-Reply-To: Date: Sun, 3 Jul 2022 15:22:29 -0300 Cc: David Cornejo , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: John Kennedy X-Mailer: Apple Mail (2.3445.104.15) X-Rspamd-Queue-Id: 4Lbcjl03p5z4tYb X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cyclaero.com header.s=strato-dkim-0002 header.b="JxNvA/mQ"; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-rj@cyclaero.com designates 85.215.255.21 as permitted sender) smtp.mailfrom=freebsd-rj@cyclaero.com X-Spamd-Result: default: False [-1.95 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[cyclaero.com:s=strato-dkim-0002]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:85.215.255.0/24:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cyclaero.com]; NEURAL_HAM_LONG(-0.95)[-0.954]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cyclaero.com:+]; NEURAL_HAM_SHORT(-1.00)[-0.997]; RCVD_IN_DNSWL_NONE(0.00)[85.215.255.21:from]; FROM_NAME_HAS_TITLE(1.00)[dr]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6724, ipnet:85.215.255.0/24, country:DE]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[200.207.179.239:received] X-ThisMailContainsUnwantedMimeParts: N > Am 03.07.2022 um 12:51 schrieb John Kennedy : >=20 > On Fri, Jul 01, 2022 at 10:49:33PM -1000, David Cornejo wrote: >> I always hated this about the RPIs - I put a DS3231 on mine and the >> problem disappears. ... >=20 > Yeah. Not sure where Eben would cram it (much less the battery), but > one of these days his form factor needs to expand a bit. But with = what > I do with the RPI4 it runs hot, so I've got a good passive case, but > this one hides the GPIO pins entirely and the active-cooling one I'm > looking at is a big chunk of aluminum + fans, which means some pretty > significant risers/headers to get it to clear the heatsink and some > contention with the PWR/GRD pins to power the fan. >=20 > Haven't dug into what RTC driver FreeBSD may support to see where I > can stick the RTC. I do want one, just not seeing options that jump = out > at me. Before this just ended weekend, I would have recommended the DS3231 as = well, because it is working very well on my BeagleBone's Black for years = now. It is very well documented and FreeBSD comes with a kernel module = for it. Beginning on last Friday I started with FreeBSD 13.1-RELEASE on = a brand new RPi 4 B 2 GB, and with that one, attaching the DS3231 became = a major hassle. Here is the whole story: = https://lists.freebsd.org/archives/freebsd-arm/2022-February/001024.html On 19.02.2022 6:01, Brian Scott wrote: > The MAX77620 driver introduced for an NVIDIA TEGRA210 system seems to=20= > unilaterally claim anything at address 68. It doesn't understand the=20= > DS3231 and fails to operate properly, but in claiming the device, the=20= > ds3231 driver doesn't get a chance. This is compounded by the MAX77620=20= > driver being compiled into the kernel by default so the loadable = module=20 > doesn't get to try until after the wrong driver has claimed it. As suggested by Brian Scott, I compiled a custom kernel without the = NVIDIA Tegra option. Only, with that custom kernel my RPi 4 (0xb03115) = stuck at boot right before mounting the system partition. Then I = switched to FreeBSD 14.0-CURRENT in which the problem has been resolved, = and with that my RPi and the DS3231 is properly working. I got this one: = https://produto.mercadolivre.com.br/MLB-971284468-ds3231-shield-relogio-te= mpo-real-arduino-rtc-eeprom-at24c32-_JM If you have a close look at the picture, you can see that I would have = been able to change its address, by soldering the address pads A0, A1 = and A2 respectively. Perhaps, I should have done this, since I would = have liked to stay with RELEASE instead of CURRENT. The DTS code for the DS3231 is given in said thread on the mailing list. = Using the dtc utility, I compiled a .dtbo and placed it into = /boot/msdos/overlays as ds3231-rpi4.dtbo. Then I added two lines to = /boot/msdos/config.txt: gpio=3D2,3=3Da0 dtoverlay=3Dds3231-rpi4 It is working now, but the operation felt like pulling teeth at the = dentists. I am still surprised why we get the NVIDIA Tegra compiled in = the kernel of a 13.1-RELEASE SD card image which according to its file = name is destined to the Raspberry Pi's.