From nobody Sat Aug 19 09:14:33 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 4RSY3Y5gK1z4qSSP for ; Sat, 19 Aug 2023 09:14:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-23.consmr.mail.gq1.yahoo.com (sonic303-23.consmr.mail.gq1.yahoo.com [98.137.64.204]) (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 4RSY3Y1JHhz3CwF for ; Sat, 19 Aug 2023 09:14:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692436487; bh=j69i30awE80mQNepa0jC4k9DZ+1aakPnXRI3dbnRhHo=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=XV/5kKrgmenAPnoEqp+BOzDYkPDU0lTxk/U34ywEYf7RKpKPU6d7+rUs7QcZj2IFW9zHB1hazj47F3uO9QELVlyKG2FOdAvf5gEvyhOcYryjPlmUnlo5WVBDLREj0Y6mRZF4ykvfVKv9XbXfNsaC6ywH3kOtcv+o9nxq32MZXzm7nwPU9oOrVZzLRODzDTzbk9KXUBSNEM2T0UXSl0H9YVyJJaiXKKSHagFnVnFExhjKkCinvEUWItwuigPIy2dAYmo7wR/qo7ovS7vZ+D8bqCNTK2lTYV3ghBcma0PKP0TpDdLg5ZyJY+ZTyzWJaGSTc+KguJpDJ3fvDWBZCrajXQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692436487; bh=cTcTa7ut6n9jaUemRuE0+Kj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tS3dimtgfgpYsXX06EA6YBcQ.z6Rkp0RAE8W5TB_9dh24mXd4g1JDF3Jenc7eQK4 mRKdN6rf2mVj57M3iUhE5eVZPb2uy4WZheX6ujdvz3dMZCkHrKtpzdsczPF_rx88mFxIIqq2dZsu YKllbFsSPdsdKJRxD44I1_2qCvkwBtJiuowrqIcGLVarSwlX_mvREjtBrYSoAAO9hVvMU5NmcsVM a2kacfLhiWO.7za70fewSCnO3kWg3rjYlbxIevszQ5hYcok6Fzvlzk5jU30Jl3fm3fI5tQEI1PFg Z2RgQt9VaFHPzC.P5PYBCAL5qILZumontj16zT2NCDdDYgNmfug.VsqAGCyPZ4tuQ39TfOMs9Se4 X3Yht3OokQgZx3cGQOFEVJSj1opZgpVm63.PjqQdfop2xbEfjg_LmoOuQuQRLPsQ99LXQG1Bcp8F L_906QUobwWYzKfFpIKJ2AYrsxoWZDD.l8c04.ItYdqahMd55TlUmYR5KYuW6PzI.rqGdRbSPyPK tlBUAahEf3WsJ746UcgBjzEmuPBlQh7WbKKZOG.w7T.ENpV5xWSutucs4KV19ANd41ecl99ZqjZh NOg-- X-Sonic-MF: X-Sonic-ID: e7becc6b-963d-412b-978b-be1f30184778 Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sat, 19 Aug 2023 09:14:47 +0000 Received: by hermes--production-ne1-7b767b77cc-6mpms (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 94d8c5ec1f3c1dcb27628e52690ab246; Sat, 19 Aug 2023 09:14:44 +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+ From: Mark Millard In-Reply-To: <0ef0907d-17a7-45cd-ab5a-c2cbd482aed8@box559.com> Date: Sat, 19 Aug 2023 02:14:33 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Peter G X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RSY3Y1JHhz3CwF X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Aug 19, 2023, at 01:16, Peter G wrote: > Mark Millard wrote on 2023-08-18 10:12: >> On Aug 18, 2023, at 09:41, Peter G = wrote: >>> . . . >>>=20 >>> Okay, finally working! >> Cool. >>> I replaced start.elf and fixup.dat, and only those two files, in = 13.2-RELEASE with the ones from 14.0-ALPHA1, and that boots (usually). >> So the old *.dtb is still in use vs. the newer one >> for using the pure 14.0-ALPHA* RPi* firmware. For >> what you report, both with the releng/13.2 kernel. >> At some point I'll generate the 2 *.dts's from >> the *.dtb's in the sorted order and diff the >> outputs. (This does not deal with live adjustments >> that are also involved.) >> Does 14.0-ALPHA* have a panic when not changed? In >> essence the comparison/contrast checks the older >> kernel ( releng/13.2 ) vs. the newer kernel for the >> modern *.dtb case. >> (Unfortunatey, you have the only known test context. >> So I ask. But you may not want to be the tester for >> such questions.) >>> I say usually because sometimes the boot hangs indefinitely between = loading the keyboard USB device and bringing up the network stuff (lo0, = mue0, and ue0), but usually it just pauses there and then continues. = When it does hang, ctrl-alt-del works to try again. >> Interesting. >>> As expected, once it's up there are no apparent problems. The wired = ethernet works fine for ssh and freebsd-update. I haven't stressed the = system much so far, but still looks good after half a day of uptime. >> As you have the only known panic context, could you >> gather the serial console output for a context that >> leads to a panic(/reboot loop) when using just the >> 14.0-ALPHA* firmware (modern *.dtb) and then report >> it someplace folks can have access to? Absent such >> evidence, the FreeBSD kernel will stay broken for >> your type of context using modern RPi* firmware and >> FreeBSD's kernel. (Presuming the evidence points to >> the kernel mishandling something badly to cause a >> reboot loop.) >=20 > Okay, duty calls ... I dragged out some dusty boxes and scrounged = around for old adapters and cables and hooked up the serial console. I = booted the modified 13.2-RELEASE, 14.0-ALPHA1 and 14.2-ALPHA2 images. = The logs are here: > https://box559.com/pi3Bconsole.tgz Of the 3 log files, only console-14.0-ALPHA2.txt indicates a first-time boot: . . . Growing root partition to fill device Adding swap partition GEOM_PART: mmcsd0s2 was automatically resized. Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` = to revert them. mmcsd0s2 resized mmcsd0s2b added mmcsd0s2a resized super-block backups (for fsck_ffs -b #) at: 11524224, 12804672, 14085120, 15365568, 16646016, 17926464, 19206912, 20487360, 21767808, 23048256, 24328704, 25609152, 26889600, 28170048, 29450496, 30730944, 32011392, 33291840, 34572288, 35852736, 37133184, 38413632, 39694080, 40974528, 42254976, 43535424, 44815872, 46096320, 47376768, 48657216, 49937664, 51218112, 52498560, 53779008, 55059456, 56339904, 57620352 Metadata value stored on mmcsd0s2b. . . . (These steps take some extra time.) Such had already occured during prior boot activity for the other 2 log files. > But, now all three boot! I'm beginning to fear for my sanity after = this whole thing. I know I didn't dream it, but the crash is not = happening now. To check, I reverted to the HDMI console with 14.0-ALPHA1 = where I had the looping crash before, and it booted fine (albeit with = the zillion error messages you mentioned). >=20 > So, hmm... I'm puzzled by what happened, but I'm glad it works now. >=20 > Happy to send any other info that might be useful, but a working = system probably isn't all that interesting. Mark, thank you for your = kind assistance. 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