From nobody Tue Feb 04 06:06:53 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 4YnCZ673l4z5m2DJ for ; Tue, 04 Feb 2025 06:07:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-8.consmr.mail.gq1.yahoo.com (sonic316-8.consmr.mail.gq1.yahoo.com [98.137.69.32]) (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 4YnCZ608Gkz3Vj4 for ; Tue, 04 Feb 2025 06:07:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=iZancE3B; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.32 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=1738649227; bh=jcQLjG66lfm8kjGN2pbeWcdRha5q65QYVJsXaaNkQXs=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=iZancE3BBZcTmWRe4Xqi2iLolyiraZP4tgZthasZTZVMUYt7kq6S0G4oWHU5MxQbdVpvk5gCC3CGFNoXTnBwrGZhOWBDLL9RaqpNMEKaiLPCpgVuxtvRlQiD3gcU7U9TQbPsLh+qPDAJHJbItcQevtb/P1Md6lSjt30C/P/1aXXUWWYWMv17eyfK56EsAaTh2EgvScM1dO31T8O8gjOQTdTDW5lPldRlYxADjAgAL6npdtr1af/zCMXEo8586qI+8/uZXSulgZ1ew9URG1j0GbOsQD+Q/CQ1Y+36e5pvfaAHyGGsYyufOB2/VtFruo4GEoa+27tO20lkYy63rT6vjg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1738649227; bh=nJsnbnathhevHQZsaSlqE9A9ahdA7Eydirm78l/2aJr=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=Or8YtFt3mCwuwmgN6qT3OAfHDlHvCBzIp50Xu1KsHVm4/veyAdAVpz3UdqaleRfnujyx16Mp8Wj4hzlL/OCVyMBOVKMGIs/FlIWrsvq/zTCdZilGlF9llqOXGmMNbHxIVf6QejATVPh+Ng9i98sz9SnVKbTFv83XRwF3Eos+KnEAC1Z3C0UFXxpirRdSPCkU3zMN2dnzoUVKfRNFkJt1afmK16z03we2K3YdbYS5eJX4dq9RvE8a+DK+AOBE+OutBGso93FDW91js/l8ZFr8lvsiwd5k/8Q0LqPV9wS09J1ursD8+AToQHu7qPi2MCPRUHLVVQyyRP5RWPjOWFNh+w== X-YMail-OSG: HEjsHTAVM1kpzs_GyQuoXTz0rPObb3k05da2SQyJmqOxxlLjecChyqGvITItqCf z20Z_I.HNk0J15Uc_TTdZBmlA6OW5PpYavEHTLEKkFTs.Vm7tsUpsdYCQJrmRHLo8kqxYXGygT.A cit5asI4tS0MreOTZ9OfdiXeLz2FoJJpJQV_lvR.LSWmKofOH7yHhLnbvg0kuhcNrqlpey6rrzwe .sykWDykt.xunQR3TAQP5SS7ieGlL5qmEIaCHCRgeV0zO1ZfdEPBntZhOtryJDb8_CvzeU4rOzrG 2IhvrTS4SD84C2JZh4STuPyVL3Az7admiodOQmX_Uf.5E_PmMG4CZTYaWTZzvuLe8fVqmshA1EuN QV9hmVUI_tYEA83iToGYDZGpuF8P6tEOUaeE4Qwkc66C9D23fMobOFwCo6cK3OcIA_nfC3jDO7lS 2n7_kbt74IdAJ3DLElWXC9iFXzcqbEw4LzeLeTrcgqB_c_tmccbKsm7Lq5Rti9iUWy6iohuchKT1 hmyMCUjao1aKbcRTw0BzQ67nw_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knfmyweGipdFu1CvMA93afxEyEg49yecYVYMk_0. rCWufkbkmjFYNRSO1cOsAatU3jWH9mOBHx55uXBzB47sPHIoOKgaoQsuPIwB_kCpqyMLdV8_SgKy C81WCo2_11sOi.iR7kRh03K9VUjap866pLa8OiT3kC18Kwo1Z_1eI4kLLQMPZz6SxlKrWyrNBzBO nAA_EvGC_qe0SPhjDcDz27Cgule60zk_rG1SF_3DJMxF84XsDKQtqLuaLyapJwxA3cwvPRGKOxj3 pJf7PlNUrJL.WE6GIc1DNe_THUom0KAVX3CYAt.1Hivw44PTbykL7uwT9pNg8XBa_aQtgMQiJhts iG52S.8AexMUc9yu_45Br02.4QzJCIUl5ekpl4QAZlJ2oecnRI1mJrpaKt0HakPEq2dR9dnSB3iP XAecLOpflmGpDcfzHy1.HMfPoKzxFY16c5p_Xun1oZ6HDRdKFKxkaPByuzlIMGpHiHcD4xvkWrTE rpGMt4Bl5xJr3Cf5c5aiQeFXDPNiHyHEpL1mGMiOtEM1Rd0ZI_zctHTlRpSER7U_OX1c2ErNA5yl 8.mB_s1DcU5VrQJ3_wkoGLHLZDqNY2efwxqItaFOJDAid6jV.fEDcnctDUfbgIF2jeOrBXWSbvt9 l7EziotoLwSGAp2ehaGlBgG08TIZ9EXsjF5QiPAHQJJ_cYYFpwP1y9k7856U58tEO8zSYAUUN_r2 ae2KAZw-- X-Sonic-MF: X-Sonic-ID: f6dd2947-d2c6-4b24-bb1d-181df36ad3f4 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Tue, 4 Feb 2025 06:07:07 +0000 Received: by hermes--production-gq1-5dd4b47f46-n48bg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8fe1c9fe09331d73f7751d6de2842013; Tue, 04 Feb 2025 06:07:04 +0000 (UTC) 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 16.0 \(3826.300.87.4.3\)) Subject: Re: RPI5 16GB panic on boot [.dtb files] From: Mark Millard X-Priority: 3 (Normal) In-Reply-To: <15C7AE9B-B74C-4594-9E2E-03610F10D7B5@yahoo.com> Date: Mon, 3 Feb 2025 22:06:53 -0800 Cc: freebsd-arm@freebsd.org, Klaus Cucinauomo Content-Transfer-Encoding: quoted-printable Message-Id: <2E9BB146-D566-4E71-93C5-C03A11DB4C26@yahoo.com> References: <1209610970.15723.1738490182716@localhost> <19B2FAF2-4656-4D0D-B8D4-713BFCC75372@yahoo.com> <27AEB4C0-175C-405F-A6A1-A40AB9283848@yahoo.com> <15C7AE9B-B74C-4594-9E2E-03610F10D7B5@yahoo.com> To: Ronald Klop X-Mailer: Apple Mail (2.3826.300.87.4.3) X-Spamd-Result: default: False [-4.48 / 15.00]; RBL_SENDERSCORE_REPUT_9(-1.00)[98.137.69.32:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.980]; 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]; RCVD_TLS_LAST(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_CC(0.00)[freebsd.org,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]; RCPT_COUNT_THREE(0.00)[3]; 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.69.32:from]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.32:from] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4YnCZ608Gkz3Vj4 On Feb 3, 2025, at 21:48, Mark Millard wrote: > On Feb 3, 2025, at 12:23, Mark Millard wrote: >=20 >> This note just reports on the list of bcm2712*.dtb files >> on a normal/modern RaspiOS64 boot media (my abbreviation). >>=20 >> # ls -lodT /mnt/bcm2712*.dtb >> -rwxr-xr-x 1 root wheel uarch 81163 Jan 27 17:19:54 2025 = /mnt/bcm2712-rpi-5-b.dtb >> -rwxr-xr-x 1 root wheel uarch 81119 Jan 27 17:19:54 2025 = /mnt/bcm2712-rpi-500.dtb >> -rwxr-xr-x 1 root wheel uarch 81620 Jan 27 17:19:54 2025 = /mnt/bcm2712-rpi-cm5-cm4io.dtb >> -rwxr-xr-x 1 root wheel uarch 81682 Jan 27 17:19:54 2025 = /mnt/bcm2712-rpi-cm5-cm5io.dtb >> -rwxr-xr-x 1 root wheel uarch 81661 Jan 27 17:19:54 2025 = /mnt/bcm2712-rpi-cm5l-cm4io.dtb >> -rwxr-xr-x 1 root wheel uarch 81723 Jan 27 17:19:54 2025 = /mnt/bcm2712-rpi-cm5l-cm5io.dtb >> -rwxr-xr-x 1 root wheel uarch 81167 Jan 27 17:19:54 2025 = /mnt/bcm2712d0-rpi-5-b.dtb >>=20 >> The EDK2 implementation is set up based on just one of those, = actually >> likely and older vintage by content instead: bcm2712-rpi-5-b.dtb >>=20 >> My guess is that your new 16 GiByte RPi5B is intended to be >> used with the modern content of: bcm2712d0-rpi-5-b.dtb >>=20 >> Booting with the RPi* config.txt also indicating: >>=20 >> enable_uart=3D1 >> uart_2ndstage=3D1 >> dtdebug=3D1 >> disable_commandline_tags=3D1 >>=20 >> likely would answer that: it would likely report on what .dtb >> file the firmware tries to find first, for example. >>=20 >> I also expect that the EDK2 would need to be updated to also >> handle some of the various differences, whatever they are. >>=20 >> I'll remind that the live .dtb can have adjustments made by >> the RPi* firmware after the .dtb is loaded by the firmware. >>=20 >> My classic techinque of discovering what is in the live Device >> Tree provided to the FreeBSD loader is via having U-Boot list >> the content of the Device Tree it is set up to hand over. (I >> do this rarely and so have to re-figure-out the details each >> time.) >=20 > I did an experiment with a FreeBSD U-Boot context after > having copied over the bcm2712-*.dtb files to the > 2025-Jan-30's stable/14 snapshot's msdosfs . I forgot to specify some likely-important context for the above: I set up an microsd-card-only boot media context. No presumption of USB access or the like. So the 2025-Jan-30 stable/14 snapshot had been dd'd to the microsd card before I added the bcm2712-*.dtb files to the msdosfs on the microsd card. This was inspired by what I read about 2024.07 of U-Boot being able to handle such a limited context. The 2025-Jan-30 stable/14 snapshot is 2024.07 of U-Boot based and uses a def_config that uses the RPi firmware supplied *.dtb file instead of one of the U-Boot embedded ones. >=20 > The boot looks to have been stopped by lack of a > "armstub8-2712.bin" so not having the right implmentation > in place for later stages, like u-boot.bin : >=20 > . . . > 6.64 BMD "armstub8-2712.bin" not found > 6.65 fs_open: 'armstub8-2712.bin'=20 > 6.68 Loading 'u-boot.bin' to 0x00000000 offset 0x200000 > 6.04 Read u-boot.bin bytes 630976 hnd 0x30e > . . . >=20 > The existing armstub8-gic.bin may well be insufficient > or inappropriate for an RPi5. Note that the config.txt : >=20 > # more /mnt/config.txt=20 > [all] > arm_64bit=3D1 > dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don > dtoverlay=3Dmmc > dtoverlay=3Ddisable-bt > device_tree_address=3D0x4000 > kernel=3Du-boot.bin >=20 > [pi4] > hdmi_safe=3D1 > armstub=3Darmstub8-gic.bin >=20 >=20 > leaves the armstub name at the default for an rpi5. > Now we know the naming convention for the RPi5 (and > related): armstub8-2712.bin >=20 This problem prevented U-Boot from getting to a stage were I could have it stop at U-Boot's prompt. (Such might not be the only thing at issue but just the first problem hit.) =3D=3D=3D Mark Millard marklmi at yahoo.com