From nobody Mon Oct 31 15:36:01 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 4N1HLH290yz4gVmH for ; Mon, 31 Oct 2022 15:36:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-19.consmr.mail.gq1.yahoo.com (sonic314-19.consmr.mail.gq1.yahoo.com [98.137.69.82]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4N1HLG2Dklz3Vf8 for ; Mon, 31 Oct 2022 15:36:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667230564; bh=72vBgYv8dQskazLlb1gk0b3KR4o4skaS60QEHtIldTE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=p76J64YvyqdAm21N4XzrvD5nKfYnGqqXvnZWg30+sjL7+kgqNwP/CgLfUrpT4Ne2wBwTvGoIAcdpvvmnQWaRzWzn5Q4xT1gicBR8k3vVpTRigPAqBadpythR5xSbyIA3wo/kKHc/FRTZ9SrKOOgWVj4ngp9U3wE9i933xaCNkflg62iCVlag1HI2mRCQtvg0azQfeCIx9r7jwVfG31WdJnh0mbLG12ioEZnJa/o6B6cIKKLCJNxy7Uw2OH+uSwoOlozkFzp7+9ep3VBlhd3U73HQ3xuoD/uiOflKVKvS0jPI2OV/1hxfgtXvd9bEc0YfCoSov0uhMdAyTVCKSfprCQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667230564; bh=X+RauGE3+lfb/XPXHTCwuNodnIXW7PLZ7q01S8BCBI2=; h=X-Son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itxe0iLp0l9.tHIJL8H0FemyMuEF.JW_3gnNd6xl3QI0 OOJ2owXl03FHei.7jEJqnuOVH9_eY0C5SHH8s6YcUlMMBZZE7rH.LLgU5QJ_8r8OnKBQoGFSfclq rB7.JSVEQVwQ1QcyBbiFlJq6u3tttd_js9l.eSmckQRb7bqjo3nMbmZt_1w1xJ8rVcUO4.6TvGeo FMlUsZIhVUK3rfiBnZ2kKKRIzM4hQvAXt_.l3EegO46pt9xIeSBIzXjWLjd.3o9n43VCFpsCjWd6 XoBgjLTn0CIw2929eQuZ85mFyk.mokHNXXTOlMpXnk2mQ22am0ZSGLas473WvluHyvAeGBY55HBB 9cpH8cLvljnNZrXnboQPSWTv1G0mALilBjv9IVGXQIofQUeP.s529Uj_Ss_VONV0xojYRVe1cy1h fv0K.R06RfNK6RRh.aMeZUvWXXA_ac0DntaEJaxjinpDBRhACGmZw4wvUAdkQIC7oPGdDHLOLShy 0Y.HC7z_o5P45_xmCboQIRxRQq9d3bzcP_xiA13ZC3PEMUhCIX7Ydyg8rbea.d3emFWjgnDfgliR tNA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Mon, 31 Oct 2022 15:36:04 +0000 Received: by hermes--production-ne1-c47ffd5f5-4cgrq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9fa824ca3499a3f9f6f46c8308ca8190; Mon, 31 Oct 2022 15:36:03 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 16.0 \(3696.120.41.1.1\)) Subject: Re: sysutils/rpi-firmware update From: Mark Millard In-Reply-To: <4A881278-6206-482D-97E4-BE15D7DCB298@FreeBSD.org> Date: Mon, 31 Oct 2022 08:36:01 -0700 Cc: "uboot@freebsd.org" , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <4693B4BF-4E8A-41BD-B5E1-6398A6BA3E43@yahoo.com> References: <82FEA78C-96BC-4B6B-AB90-2CF521250FA8@FreeBSD.org> <4A881278-6206-482D-97E4-BE15D7DCB298@FreeBSD.org> To: Juraj Lutter X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4N1HLG2Dklz3Vf8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=p76J64Yv; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.82 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.48 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_LONG(-0.99)[-0.987]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.82:from]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-31, at 06:15, Juraj Lutter wrote: >=20 > On 31 Oct 2022, at 12:20, Mark Millard wrote: >>=20 >> On 2022-Oct-31, at 01:17, Juraj Lutter wrote: >>=20 >>> what should be done to update sysutils/rpi-firmware to the recent = version? >>> I=E2=80=99ve tried to naively update the PORTVERSION but I=E2=80=99ve = not been able to boot (I only tried one time) the RPI-4-B. >>=20 >> To my knowledge, no one is actively working on support of the >> RPi* related code base in FreeBSD. >>=20 >=20 > Good to know. Can I help somehow? Not a question I can answer. >> It is not clear what you are looking to make work observably >> differently by updating just the RPi* firmware to more recent >> than FreeBSD officially supports. >>=20 >=20 > The problem I=E2=80=99m observing is: = https://files.wilbury.net/s/A7jWesNiHQ7GM9e FYI: from earlier of my 2022-APr messages about the .dtb handling: https://lists.freebsd.org/archives/freebsd-arm/2022-April/001279.html The tracebacks look similar to yours. Look like I misremembered the panic text though. An example was: panic: vm_fault failed: ffff000000862134 (not near the null pointer). A failure was handling: QUOTE > mmc@7e300000 { > compatible =3D "brcm,bcm2835-mmc", = "brcm,bcm2835-sdhci"; > . . . > dma@7e007000 { > compatible =3D "brcm,bcm2835-dma"; > . . . > mmcnr@7e300000 { > compatible =3D "brcm,bcm2835-mmc", = "brcm,bcm2835-sdhci"; > . . . > dma@7e007b00 { > compatible =3D "brcm,bcm2711-dma"; END QUOTE by doing bcm_dma_allocate before the bcm_dma_probe/bcm_dma_attach. Earlier .dtb's had: QUOTE > dma@7e007000 { > compatible =3D "brcm,bcm2835-dma"; > . . . > mmc@7e300000 { > compatible =3D "brcm,bcm2835-mmc", = "brcm,bcm2835-sdhci"; > . . . > mmcnr@7e300000 { > compatible =3D "brcm,bcm2835-mmc", = "brcm,bcm2835-sdhci"; > . . . > dma@7e007b00 { > compatible =3D "brcm,bcm2711-dma"; END QUOTE which happens to have define-before-use order for what the kernel does. As far as I could tell, .dtb's are not required to have define-before-use order for such. So, if I got that right, the kernel was supposed to handle the ordering. You might have an option of making your own .dtb variant that avoids the FreeBSD kernel mishandling: You might be able to set up an always defined-before-use .dtb variant. > My initial approach was to make use of DHT20 sensor that I=E2=80=99ve = got. > It is an i2c-connected (compared to GPIO-connected DHT11/DHT22) = sensor. Your activity here is well outside my knowledge base. But others on the arm list likely have the background knowledge. > So one of the first things I did was to take i2c-sensor.dtbo from the > recent rpi-firmware ( There is no i2c-sensor in 20210805 version of = firmware, > that=E2=80=99s why I took the recent version), decompiled dtbo to dts, = added AHT10/AHT20 > lines (similar to = https://github.com/raspberrypi/linux/commit/c20376da5e61323410d1ffb076db1a= e818ccbf59), > compiled back to dtbo, only to find out that the device is not = recognized at all. >=20 > It did not appear even in devinfo. >=20 > So i=E2=80=99ve also added fragments for DHT10 and DHT20, then the = devices at least appeared in > devinfo output (the device is seemingly marketed as AHT20 but present = itself as DHT20 on the bus). >=20 > Then I=E2=80=99ve written a =E2=80=9Cstub=E2=80=9D driver, just to = test whether it will at least probe and attach (and it did!) :-) =3D=3D=3D Mark Millard marklmi at yahoo.com