From nobody Sat Aug 19 19:41:19 2023 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 4RSpyl2Lbmz4mN6S for ; Sat, 19 Aug 2023 19:41:35 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.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 4RSpyk1Rlhz3CWt for ; Sat, 19 Aug 2023 19:41:34 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=pplgJzED; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.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=1692474092; bh=ZqdlotfFiq655z1DeiDKhIEnjGxIZy8VV80UBmpv2uU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=pplgJzEDR7tacXUbB64xw/hOxDXqNGlypXI0EYk5n8vfDMQ2XuNFHYm17w7T5/KXenAHA25uiJPv1mZEsWwXpfgBi2aqcXzF1OI3I9Xx6T5PIvctHu5qRS8h/wYZq1Jg4JZnteWU5a6lcvZ4fW8RudN8/IwP3xV8Fdw1V6KEllvqrUtjn8sAIseS7Vjn27/K3jDVn/Mm2jDYzxSLHwlUz73aiW7D6NjY44nyQFlH/Be7Gjn3UTRaiWr3FpauSFuoccz7qRvJPf/oYAteZ2g/qFpWPjUAs6ALv+ZAbl750mZ1Be58+w3kSLxG6l60Gcs6VRe2fNN9A/HPJSrWDkUeZA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692474092; bh=UfpDAvfpAWR4bEzpfBbGZzU6/uBcqhHfN3xVLri5G0W=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=hD9q1nr0bf7UDK1deOfmNdlZ86GNWNaeXpDpl/KsHzdKMoCCORh5GPa85RbKmo8eh57VQhfRrL3mX5wuqcv5Wl4essAz6oyjANgCqK5JEBP9hXjsE4k4oOlTb7J0fonkF+YoOSXocBIG/f0Kal1/kMWkDrw02sCMRxdD/L5jPLujAG3I6UG2ZeOts6eYkni1OyK+JWpo5JgDDq1GeWgNWj18IcSlYYNcQnaEjjUDH2zKw0sEDpxTB569bi8kNXnM5s9AFsozVzSMxQlAdbXHsPu51jddkRcn+TaOprl1N83/7yFg1MfTbpeT2nh/EexxTkRw9xh2FRZzasMg2jB7ZQ== X-YMail-OSG: nqZYQVEVM1lZ_6grKfkzwLLumLuocmH29BFP_oFxLEU44mGkyOsigi1Sab4ff_E lW1bzn7BCHIR9OqIKPcP3vAgKLLbbjG5VWCKixv0E17vc0RYfHYnQI6.yJ62ow_BAzmf8G0vtXDb EHMWDw34sTgnNpLTdCMgaIMp5MqUJyuXXtGj.qh7ka8g.WJZOT5HXcru1M5lJScq03axwDiYTAm. AkDKu.VUISLHATemnZgt4j3HM4wxqfPaFi13eJM.VJ3GbXJXelkMql9rLHAzR4SvN_rIulBr16E9 nmilTnXCI1ig0LBnM9UVOaWtQaBpmnYHZrtILJ9XSr5byXrL3.nrO4qcVJagzeB97QEM1g8HpPsC 8Gbk.Tr7EpXrrZ4tvf5su6LKfs6.eJcRnd7oeaMs0CdMae8rmSVBjv.8Eq_hu.mzrOvY4GQE84QW pyYDzysS0zISqmzt1XUAp3VRPUEayRnr..gNg_sHglEz5IpBIr2rIWsA16Komhp3U2KmhAnNNWQa Ma88PnpvqMHUA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mTyjrK.THcScyI9aBFoBhcFYM4m14i3SVShRMGGmSiLUeyimCO3MpchXH g43tJt0XZI3uzqLHMF8wDlPgvmhq2BGSXByTtPSMc3kA21e27Fp9QZejW185dkKAVA.mn3vapWuX 9RGeT78gPj7B.SAq_CJ6fpp5DDV5SA6zUFKYEZjIXEEFsXY8yEYWpq2eRddEblfIW_QUGX_RXwNF S7aQXEjxR7Gh1Qtq1PreBtlqP2SyqvldLfGIQmI4waGRPY27H8etP0b42uKQqM6Bjo_VrfsevEEA Kp_ognhm6ZjH2beFlVG1D7ll51uWJHVyT7ONElO_Hkc4S0EYEwwMHeMp378L8m0kPdC0mBxryplQ 1HXkMwiuC3jnKmZFp2f7BjSRdAsYVhhx4z2KIG_WFhHA.9PW5KYGttrYQm0o1Tj4nfaI6iSFnXgb 9FzuuTDOaaiUSq1znCaT_kyXFGN3ilf3TzPn1KcU5l6nHrRD8JDD05oBGjgxPC_rtiBc9of.MMyQ 7GooAAr3bPzHd8DTf0..MQrLcSTTFERGTeAESDoalgKuVp7Lkp8dLsFhZLqGAWyHwOBoZMjaErn_ s1eqslOB1z.7_6NN.NWQREf3WOK5NYA8wt56d2meYsdnj4fiPehnNTU1dgjO9uh28kdh1Ezgj9ab JPAclhRJ7RouayX.CcLGDlRjWxEOH8u0Hz4jbxbQCJGXuAyIy3zVy4u1ughMLk8Vi.afl3yNkaHf 3z5k- X-Sonic-MF: X-Sonic-ID: d8936ca0-b0b8-40a3-a873-9168b28883eb Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sat, 19 Aug 2023 19:41:32 +0000 Received: by hermes--production-gq1-6b7c87dcf5-9dzwt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fa70195d587cde0898a8a268c74897e5; Sat, 19 Aug 2023 19:41:30 +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 \(3731.700.6\)) Subject: Re: Unable to boot Pi 3b+ [crashes during bcm_sdhci_attach for Broadcom 2708 SDHCI controller for modern RPi* firmware] From: Mark Millard In-Reply-To: Date: Sat, 19 Aug 2023 12:41:19 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <6122979A-51CD-41A0-85C6-2837614C3607@yahoo.com> References: <6baa4f78-6648-45a2-a4c6-96bfcaeecdea@box559.com> <1DF8A97C-2CA3-4223-9194-F16C5AEB49D8@yahoo.com> <8C766959-8B62-4823-A183-69CC9BA91DF5@yahoo.com> <32684f44-cb45-438b-a48b-a09b8a02454a@box559.com> <7D95EB12-B628-44D4-B01A-42EEF98C1E07@yahoo.com> <19C95492-994B-4137-AE78-EFFD4D016F87@yahoo.com> <0ef0907d-17a7-45cd-ab5a-c2cbd482aed8@box559.com> <7d49ebe8-89c7-4483-ae8c-7de27049a59c@box559.com> To: Peter G X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; 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]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; BLOCKLISTDE_FAIL(0.00)[98.137.68.206:server fail]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RSpyk1Rlhz3CWt On Aug 19, 2023, at 12:12, Mark Millard wrote: > On Aug 19, 2023, at 11:59, Peter G = wrote: >=20 >> Mark Millard wrote on 2023-08-19 02:14: >> [...] >>> The thing to log would probably be a boot attempt of a fresh >>> 13.2-RELEASE that has had the RPi* firmware ( including >>> bcm271*.dtb files and overlays/ ) from 14.0-ALPHA2 (or ALPHA1) >>> substituted, probably also having had u-boot.bin substituted. >>> In other words, avoiding having any old vintages of those >>> materials. I'd suggest leaving EFI/ and dtb/ alone. Those have >>> files built as part of FreeBSD. >>> If nothing else, this could help with identifying analogous >>> contexts in the future if others have problems. >>> =3D=3D=3D >>> Mark Millard >>> marklmi at yahoo.com >>=20 >> I copied these files >> start*.elf >> fixup*.dat >> bcm* >> overlays/* >> u-boot.bin >> from >> = FreeBSD-14.0-ALPHA2-arm64-aarch64-RPI-20230818-77013f29d048-264841.img >> to >> FreeBSD-13.2-RELEASE-arm64-aarch64-RPI.img >> and booted the modified image. >>=20 >> The crash is back. The console log is at: >> https://box559.com/console-13.2-RELEASE-mod4.txt >>=20 >=20 > Thanks. >=20 > To publicly/broadly publish the crash material part of that log file: >=20 > . . . > sdhci_bcm0: mem 0x7e300000-0x7e3000ff = irq 17 on simplebus0 > Fatal data abort: > x0: ffffffff > x1: 0 > x2: ffff0000008d6ebe > x3: 6e > x4: ffff000000f4060c > x5: 6e > x6: ffff0000001927a8 > x7: 6d63625f69636864 > x8: ffff000000e34700 > x9: 20 > x10: 0 > x11: 1 > x12: 300000000006e65 > x13: fefefefeff0100 > x14: 69b > x15: 1a > x16: 0 > x17: 0 > x18: ffff000000f407e0 > x19: ffffffff > x20: 0 > x21: ffff000000be6000 > x22: ffff000000be6000 > x23: ffffa00000ddec38 > x24: ffff000000938016 > x25: ffff000000961e00 > x26: ffff0000008f9bfb > x27: ffffa00000dced60 > x28: 31e00000 > x29: ffff000000f407e0 > sp: ffff000000f407e0 > lr: ffff000000880e04 > elr: ffff00000087aefc > spsr: a00000c5 > far: 20 > esr: 96000004 > panic: vm_fault failed: ffff00000087aefc > cpuid =3D 0 > time =3D 1 > KDB: stack backtrace: > #0 0xffff0000004fd02c at kdb_backtrace+0x60 > #1 0xffff0000004a8328 at vpanic+0x13c > #2 0xffff0000004a81e8 at panic+0x44 > #3 0xffff0000007f42e0 at data_abort+0x200 > #4 0xffff0000007d3010 at handle_el1h_sync+0x10 > #5 0xffff000000880e00 at bcm_sdhci_attach+0x318 > #6 0xffff000000880e00 at bcm_sdhci_attach+0x318 > #7 0xffff0000004e8f94 at device_attach+0x3fc > #8 0xffff0000004eb134 at bus_generic_new_pass+0x120 > #9 0xffff0000004eb0c4 at bus_generic_new_pass+0xb0 > #10 0xffff0000004eb0c4 at bus_generic_new_pass+0xb0 > #11 0xffff0000004eb0c4 at bus_generic_new_pass+0xb0 > #12 0xffff0000004ed200 at root_bus_configure+0x40 > #13 0xffff00000041e5e8 at mi_startup+0x11c > #14 0xffff0000000008b4 at virtdone+0x78 > Uptime: 1s Adding some obviously sdhci related *.dtb file differences (leading whitespace need not have been preserved here): # diff -u999999 ~/RPi3B+-dtb-file-olderFBSD.dts ~/RPi3B+-dtb-file.dts | = less . . . mmc@7e300000 { =20 brcm,overclock-50 =3D <0x0>; bus-width =3D <0x4>; - clocks =3D <0x7 0x1c>; + clocks =3D <0x8 0x1c>; compatible =3D "brcm,bcm2835-mmc", = "brcm,bcm2835-sdhci"; dma-names =3D "rx-tx"; - dmas =3D <0xb 0xb>; + dmas =3D <0xc 0xb>; interrupts =3D <0x2 0x1e>; phandle =3D <0x2f>; - pinctrl-0 =3D <0x1c>; + pinctrl-0 =3D <0x14>; pinctrl-names =3D "default"; reg =3D <0x7e300000 0x100>; status =3D "disabled"; }; mmcnr@7e300000 { =20 + #address-cells =3D <0x1>; + #size-cells =3D <0x0>; brcm,overclock-50 =3D <0x0>; bus-width =3D <0x4>; - clocks =3D <0x7 0x1c>; + clocks =3D <0x8 0x1c>; compatible =3D "brcm,bcm2835-mmc", = "brcm,bcm2835-sdhci"; dma-names =3D "rx-tx"; - dmas =3D <0xb 0xb>; + dmas =3D <0xc 0xb>; interrupts =3D <0x2 0x1e>; non-removable; phandle =3D <0x30>; - pinctrl-0 =3D <0x1d>; + pinctrl-0 =3D <0x1b>; pinctrl-names =3D "default"; reg =3D <0x7e300000 0x100>; status =3D "okay"; + wifi@1 { + + compatible =3D "brcm,bcm4329-fmac"; + phandle =3D <0x82>; + reg =3D <0x1>; + }; }; where, for reference: dma@7e007000 { =20 #dma-cells =3D <0x1>; brcm,dma-channel-mask =3D <0x7f35>; compatible =3D "brcm,bcm2835-dma"; interrupt-names =3D "dma0", "dma1", "dma2", = "dma3", "dma4", "dma5", "dma6", "dma7", "dma8", "dma9", "dma10", = "dma11", "dma12", "dma13", "dma14", "dma-shared-all"; interrupts =3D <0x1 0x10 0x1 0x11 0x1 0x12 0x1 = 0x13 0x1 0x14 0x1 0x15 0x1 0x16 0x1 0x17 0x1 0x18 0x1 0x19 0x1 0x1a 0x1 = 0x1b 0x1 0x1b 0x1 0x1b 0x1 0x1b 0x1 0x1c>; - phandle =3D <0xb>; + phandle =3D <0xc>; reg =3D <0x7e007000 0xf00>; }; The ordering in the .dts comparisons is sorted to allow the differences to be seen. I've not looked at the overall original-ordering differences related to sdhci (yet?). =3D=3D=3D Mark Millard marklmi at yahoo.com