From nobody Fri Aug 18 01:17:35 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 4RRkWR33rRz4qQx8 for ; Fri, 18 Aug 2023 01:17:39 +0000 (UTC) (envelope-from list-freebsd-arm@box559.com) Received: from mx3.mx00.net (mx3.mx00.net [IPv6:2600:3c01:e000:872::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mx3.mx00.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RRkWR0bYGz3PGl for ; Fri, 18 Aug 2023 01:17:39 +0000 (UTC) (envelope-from list-freebsd-arm@box559.com) Authentication-Results: mx1.freebsd.org; none Received: from razz.mx00.net [2600:3c01::f03c:91ff:fed5:a231] by mx3.mx00.net with ESMTP id 20230519-1qWo7M-0008Gc-1T; Fri, 18 Aug 2023 01:17:36 +0000 Message-ID: <32684f44-cb45-438b-a48b-a09b8a02454a@box559.com> Date: Thu, 17 Aug 2023 18:17:35 -0700 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 Subject: Re: Unable to boot Pi 3b+ UPDATED Content-Language: en-US To: freebsd-arm@freebsd.org Cc: Mark Millard References: <6baa4f78-6648-45a2-a4c6-96bfcaeecdea@box559.com> <1DF8A97C-2CA3-4223-9194-F16C5AEB49D8@yahoo.com> <8C766959-8B62-4823-A183-69CC9BA91DF5@yahoo.com> From: Peter G In-Reply-To: <8C766959-8B62-4823-A183-69CC9BA91DF5@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4RRkWR0bYGz3PGl 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:63949, ipnet:2600:3c01::/32, country:SG] Mark Millard wrote on 2023-08-17 12:22: > On Aug 17, 2023, at 11:08, Peter G wrote: > >> Apologies for top posting, but now that I understand the problem better, most of the stuff below is not relevant. Here's the whole issue: >> >> Late last year there was a new hardware release of the Raspberry Pi 3B+ board. The PMIC chip was changed; more information is here: >> https://pip.raspberrypi.com/categories/797-pcn/documents/RP-003337-PC/Pi3B-Revision-9-PCN.pdf >> The new board is Rev. 1.4, a.k.a. a020d4. >> >> The FreeBSD image at >> http://ftp3.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/13.2/FreeBSD-13.2-RELEASE-arm64-aarch64-RPI.img.xz >> boots fine on the old Rev. 1.3 version of the board but it fails to boot on the Rev 1.4 version. I have tried it on more than one example of each version of the board. 1.3 boards boot fine, 1.4 boards fail to boot and flash the green LED in 4 long - 7 short pattern. >> >> Not sure what to do about this. Is it a known problem? Should I file a bug report? > > From the *.pdf document that you referenced: > > QUOTE > Software/Firmware Changes Required > This new product revision is supported in firmware versions from September 2021 onwards. > The firmware version . . . It can also be found for an image by running > strings /boot/start.elf | grep VC_BUILD > END QUOTE > > (The /boot/ path is not from FreeBSD, so replace > with a FreeBSD path. Also, start4.elf is of more > direct interest here.) > > Until the recent change in systuil/rpi-firmware , > FreeBSD simply used too old of an RPI* firmware > version (over 2 years old) to work for the RPi3B+ > Rev 1.4 (or later) parts. > > I'm not aware of FreeBSD re-releasing the likes of > a releng/X.Y with just updated RPi* firmware (or an > updated U-Boot since such is also available now). > > Any solution must involve replacing the older > firmware with newer firmware. But the port to > package builder is not done yet --and once it > is there is also distribution time after that > before the update will be available. > > One way to do that replacement now is to get the > material from the msdosfs for one of the snapshot > builds that I referenced: > > http://ftp3.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/14.0/FreeBSD-14.0-ALPHA1-arm64-aarch64-RPI-20230811-136fc495615f-264678.img.xz As you suggest, I tried substituting the msdos files from this 14.0 image into the 13.2-RELEASE image. First, I replaced all the files in the first (msdos) partition. That booted, but crashed when the kernel started, which caused it to reboot, and so on in loop. Next, I tried replacing only the start4.elf file, leaving the others alone. That didn't boot at all, returning to the now familiar 4 slow - 7 fast pattern of green LED flashes. Any thoughts on which files should be substituted for a successful boot? [...]