From nobody Tue Feb 04 03:39:13 2025 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 4Yn8Hj2Rqfz5nB0J for ; Tue, 04 Feb 2025 03:39:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (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 4Yn8Hh3Xh8z3xZF for ; Tue, 04 Feb 2025 03:39:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Za0krulA; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1738640366; bh=8t335h7VqhiN+gyRl7XMabMzJtheuwLBip7V+QNn8T8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Za0krulAFGfTlO7W1zG7SM9VE9q5ySCr4awzD/YQEAcMPQPJQhRi6IyQ4ZAgMrg3GPPhSbE42LHGJdsAy/PttX/AEzQtwQm9Qo9/kEADMBGOS1AjcLDmLbwdUelt2WYpVumTGT9IlpCCm1LzuYn5JQzEiRgIlJiZ+TJmGjSkUEz4bvsUVbtl6vpgUBkHhqqM1+JjSNzf3+G11aBiQzJ9Bp9YeZYhwd6nW9Xc21mg2F9S4gscX/525CUj9JA+ErQwJDu8JZ1kucRYoKIUDzZzDIE2oXUTnrX78pGJMjUb4B67gPqusrClYgWKHXBovu2e17lx+mu+FkL8zX2+1429bQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1738640366; bh=LivzUT57PL1gq38PgGeXW4J3n386QbjFC9M82U5Ct8y=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=RJpmOEtVeDvZex9VhzauW+5F9KtKOvT6bxdgMH6aonoSTBNYncipMJvy048bvgoEM/G+bQwhW7fFVAmmbidvOsIojmyTqZNa51OdpOC1aC+SPy6Kj9/IOvrRkB3Bvai8D/VcStX9+aXbIBhBqRPEgkb3hkzBEXoEvgBGs3hSRNCZsipIX9uHtGqkUDyqGOsiryq7V7qL0e0bp8q1/gn7b2TERIzh0n1xgCzfogc5U2vZyBojOs9BhxGZFwDyBEvs/9ZtoJhxf0m+tOcnbhAO19mC/RY+Q/VENmIvwqMFVk9mbOPuVbviFU41hdC/9ca1S07DgM1hJh3iBVkibQMJnA== X-YMail-OSG: fRQA9e0VM1ko5EaOdn.S_Y24DgfzFHwvS.q.gmmnZwGmjG2OOd5vkZ3KY57_QJ2 kS0_nfDm6BKkMWZRXO3ycqKJwZBpVgPjNQte6svoDZgbPc59XEYJ2of98Bq0qNa1bJzsEaTZqvzb p6U6GMte_T0ZAIaGGDZUFUwKqLebOZh8hMU1ou0xpaPvhw8yT8aQIBgAMVmy1K9tspJy9Byc7oGA OxTM56m9uAkLRCyzSxOKkb45v8lBpPm0uIphgZZZnWVVhwWdL9qP9A9FdqNnpk0.eAwQWVh.oz7p Q6l.AIVc9OMHqvngudvxWFTRhr5d4n4gCLD1_v1mgL7XGDjGNTiqt_estQmUfqYl8GMiAAwguaQ1 LXtbza3RooV.1LkcZIEfMWWZcxAn6P7st2Uk55T0hWUs4UJIu3g7IOx2MkHxyRQf96l_ezASWLed KI81kVXYFiTqu9AytnNyd9wYtYGUolEOr_5W0BdTwlKmR5RLREJcgLiVIhqHAIv1Jir1BKVwiaN2 Lsc6q_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pW0V49Iq8fBQDRsO6Y5stW106OxA5s_ylIer09pENRMiI.GjSTIQ6tZjCo lgzwlHDcCH1vT3iSpsKBl2Qbvg7OBUZNhpBiUK_101ozTQzNb0kHolieqPS8AiyoQUOw5JCJu3uY HhR6nWajOtXw3PLANajU9UEh5mTgz5N0N8CMmtw8kz87BariHuXbl.wRgNhrE.Lb5oqeHYNz67KQ KdHDno4QhaVh2OuIKYeVC20UMQ4xnfeDeomjCJZhlwPg9yEmyOKJ4PvG6rSGwVR17x0jJXSdXlGG y5rSgfS8ZmyxFVSzFT.5w9DEy_tm1nevJd.dR7XWybLrvmHlJpfdfdFQNlgOibCTOxO2MwcrebRr eaPkvZDViqb57GON_V7_yKtPQxoj.E5S8LQNvB90qoo.ZGZwDedhXa07znH6mak9z.H6VHgYWkk8 NXd8VUD_r2rClJ8HMK.r4a.fGJqKVV_YZvwEczA3zptdUdaxiDLLgkQ.LCSJl0JeynHj751cqiNm .PwzPQ1Wrs_iAk8r7FmxlQnRQExsYIjCGFIWIV.8igyaAPcVbg.uHwaW98ZgqH6BspXlyAZw_MDg K1.UjgLiRGXH8As6DwuHzO2DhJcSroUlRRnpPQHMAHgDH.wPRrZXsK70FlLbIFWs16XNNI8hQQAV _pEgkmGAIB.LgSPpM6fH1cftdwWobjJTA0HANvNKnM0hPBgzdhn31UMmdbwDjiXRjBg8lq7w68yy Kg1.Sql8- X-Sonic-MF: X-Sonic-ID: fea59a1d-1270-4052-b685-02440a6e2397 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Tue, 4 Feb 2025 03:39:26 +0000 Received: by hermes--production-gq1-5dd4b47f46-dvwsq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 033fb77b13cc348c93b66d0729a69c09; Tue, 04 Feb 2025 03:39:24 +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 \(3826.300.87.4.3\)) Subject: Re: RPI5 16GB panic on boot [.dtb files] From: Mark Millard In-Reply-To: <953D2D6D-1402-4074-81FC-65FAC87E3091@yahoo.com> Date: Mon, 3 Feb 2025 19:39:13 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <6689572C-8E75-4A4B-877B-6A8502C1D462@yahoo.com> References: <10E6E2C2-5A1B-417E-96A7-FA7CCB4FF50D@yahoo.com> <4CD66BF7-05C1-47E3-BD74-DD06066D6FF0@yahoo.com> <953D2D6D-1402-4074-81FC-65FAC87E3091@yahoo.com> To: Klaus Cucinauomo X-Mailer: Apple Mail (2.3826.300.87.4.3) X-Spamd-Result: default: False [-3.21 / 15.00]; RBL_SENDERSCORE_REPUT_9(-1.00)[98.137.65.206:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.81)[-0.814]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_SPAM_SHORT(0.10)[0.105]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_TO(0.00)[googlemail.com]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.206:from]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.206:from] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4Yn8Hh3Xh8z3xZF On Feb 3, 2025, at 18:43, Mark Millard wrote: > On Feb 3, 2025, at 17:03, Mark Millard wrote: >=20 >> On Feb 3, 2025, at 13:11, Klaus Cucinauomo = wrote: >>>=20 >>>>=20 >>>> ) Historically FreeBSD makes no use of the linux-mainline *.dts* = sources >>>> for RPi* systems. >>>>=20 >>>> ) I'm not sure of the RPi folks even publish the *.dts* sources = required >>>> to reproduce the binary files that they distribute. >>>>=20 >>>=20 >>> Mark, >>>=20 >>> I'm sure you'll be a very important troubleshooter/bughunter again = for RPI support, no one does it as well as you :-) >>> ... but let us clarify one important thing: >>> Every FreeBSD DeviceTreeSource(or compiled dtb) is a Linux(or = RPILinux)-mainline-only source >>=20 >> Wrong for where/how FreeBSD gets the dtb files for the RPi*'s. >> See https://cgit.freebsd.org/ports/tree/sysutils/rpi-firmware and its >> Makefile as a start for seeing how /usr/src/release/arm64/RPI.conf >> gets the dtb's that are used: release/arm64/RPI.conf uses the >> installed materials from sysutils/rpi-firmware . >>=20 >> The installation of sysutils/rpi-firmware put in place: >>=20 >> # ls -C1 /usr/local/share/rpi-firmware/*.dtb >> /usr/local/share/rpi-firmware/bcm2708-rpi-b-plus.dtb >> /usr/local/share/rpi-firmware/bcm2708-rpi-b-rev1.dtb >> /usr/local/share/rpi-firmware/bcm2708-rpi-b.dtb >> /usr/local/share/rpi-firmware/bcm2708-rpi-cm.dtb >> /usr/local/share/rpi-firmware/bcm2708-rpi-zero-w.dtb >> /usr/local/share/rpi-firmware/bcm2708-rpi-zero.dtb >> /usr/local/share/rpi-firmware/bcm2709-rpi-2-b.dtb >> /usr/local/share/rpi-firmware/bcm2709-rpi-cm2.dtb >> /usr/local/share/rpi-firmware/bcm2710-rpi-2-b.dtb >> /usr/local/share/rpi-firmware/bcm2710-rpi-3-b-plus.dtb >> /usr/local/share/rpi-firmware/bcm2710-rpi-3-b.dtb >> /usr/local/share/rpi-firmware/bcm2710-rpi-cm3.dtb >> /usr/local/share/rpi-firmware/bcm2710-rpi-zero-2-w.dtb >> /usr/local/share/rpi-firmware/bcm2710-rpi-zero-2.dtb >> /usr/local/share/rpi-firmware/bcm2711-rpi-4-b.dtb >> /usr/local/share/rpi-firmware/bcm2711-rpi-400.dtb >> /usr/local/share/rpi-firmware/bcm2711-rpi-cm4-io.dtb >> /usr/local/share/rpi-firmware/bcm2711-rpi-cm4.dtb >>=20 >> without compiling any *.dts* files, instead getting >> binaries from a RPi specific place (which is not just >> mainline linux for RPi* 's): see sysutils/rpi-firmware >> for details. >>=20 >> /usr/src/release/arm64/RPI.conf in turn uses that >> port/package and an internal definition: >>=20 >> DTB_DIR=3D"/usr/local/share/rpi-firmware" >>=20 >> for forming paths as were to copy the files from for making the >> official distribution materials: >>=20 >> for _DF in ${DTB_FILES}; do >> chroot ${CHROOTDIR} cp -p ${DTB_DIR}/${_DF} \ >> ${FATMOUNT}/${_DF} >> done >>=20 >>> , and every dts(i) is OpenSourced in RPI-linux and all upcoming = patches are OpenSourced in mailing lists of e.g. the bootloader. >>=20 >> There may be sources present from the RPi folks but FreeBSD >> does not compile them and does not have those sources in >> its https://git.FreeBSD.org/src.git . >>=20 >> The RPi folks instead have things in: >>=20 >> = https://github.com/raspberrypi/linux/commits/rpi-6.6.y/arch/arm/boot/dts/ >>=20 >> Note that this area is not a just a copy of the linux mainline. >> Nor is it a copy from files from a U-Boot distribution. >>=20 >>=20 >>> Or so: they(torvalds&RPI&u-boot) upstream/downstream whatever they = think is useful, >>> there are a lot of experst doing that daily and we should not stay = so far behind them forever. >>=20 >=20 > This is just an extra note about looking up the RPi > folks linux source by their own tags, such as the > recent stable_20250127 tag: >=20 > https://github.com/raspberrypi/linux/tags >=20 > shows the tags and can get to to .zip or .tar.gz files > for the sources. Using that tag as an example one can > use the likes of: >=20 > https://github.com/raspberrypi/linux/tree/stable_20250127 >=20 > to get you to a browser and you can browse into the > likes of: >=20 > = https://github.com/raspberrypi/linux/tree/stable_20250127/arch/arm/boot/dt= s >=20 > Again: FreeBSD and sysutils/rpi-firmware do not access > or compile such sources. >=20 > The *.dtb files can be browsed to via the likes of: >=20 > https://github.com/raspberrypi/firmware/ or one of its branches > or tags via looking in the cintained boot folder. The README > reports, in part: >=20 > QUOTE > =E2=80=A2 boot: > =E2=80=A2 start*.elf, fixup*.dat and bootcode.bin are the GPU = firmwares and bootloader. Their licence is described in = boot/LICENCE.broadcom. > =E2=80=A2 The kernel.img files are builds of the Linux kernel, = released under the GPL (see boot/COPYING.linux) > =E2=80=A2 The dtbs, overlays and associated README are built = from Linux kernel sources, released under the GPL (see = boot/COPYING.linux) > END QUOTE >=20 > There is also https://github.com/raspberrypi/rpi-firmware/ > that also has such (without the tags) but is in a smaller > repository for cloning (subset): "These are mirrored in a > separate repo from the official one, because for updating > the firmware, we're only interested in the files in the boot > folder of the official repo. Git doesn't provide a way to > clone only a single subfolder of a repo, and downloading > the entire repo including the sample code and VC libs would > take too long." As for what *.dtb files U-Boot can use for RPi* 's . . . FYI: https://docs.u-boot.org/en/latest/board/broadcom/raspberrypi.html reports that the "rpi_arm64_defconfig" uses the .dtb file provided by the RPi folks instead of U-Boot's embedded one: QUOTE rpi_arm64_defconfig uses the device-tree provided by the firmware = instead of the embedded one. It allows to use the same U-Boot binary to = boot different boards. END QUOTE It is listed as supporting: QUOTE =E2=80=A2 rpi_arm64_defconfig - Raspberry Pi 3b - Raspberry Pi 3b+ - = Raspberry Pi 4b - Raspberry Pi 400 - Raspberry Pi CM 3 - Raspberry Pi CM = 3+ - Raspberry Pi CM 4 - Raspberry Pi zero 2 w END QUOTE =3D=3D=3D Mark Millard marklmi at yahoo.com