From nobody Tue Jul 05 06:41:37 2022 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 08DC21CFD579 for ; Tue, 5 Jul 2022 06:41:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.gq1.yahoo.com (sonic302-20.consmr.mail.gq1.yahoo.com [98.137.68.146]) (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 4LcY4G0SFSz3pXT for ; Tue, 5 Jul 2022 06:41:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657003302; bh=xIkQ/4sZ+EEoCeQgrsmwiCu56mDVoO0rFgf+B2UsCvo=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=sg5KTfPMmzWbAAHR+emwG4DzL2eJQCdhig1aULtnNeME5DFR5SDUTJL1ss9dWjfQ+on5KveM2gPpTkT4Yv+WNRayQ8xC+C16X7tpZsTIIrqsmRDqwiCWs95PLH4HcxNeJkamADBjwNTWo5OieRjk7jm992V/1fNQuqwBXHA5Ye+nRreFhfbqcW2+TZfBOkemn2yAaqnxgKay2KSsd9vAvaw6E6Nkwre/TxWXDAunPTkcJpkhEPte5Yq8dIL8plSb4aTEGQizV3UdOlQq+TSURsOH8z6zotCxdlMz5aJh5zu8fxWPSVZGYRopyHyutr545t0zSyrmv/p+aQXO8IUtTg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657003302; bh=GvIgwuwIbUSrNooYPyh2/aYpOJdrGDTbhB9KOb2dQfW=; h=X-Sonic-MF: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hdQMghtBKZRmwKcV1.bHSeBX_HoMFOE6cuHJvRQ9yybf85Eo3oi mINNJtbtrN0DnV3oxdy90Sq2Oy6z33_tZKtHQlCrOX_OaniHbnWwRfSeBlGnbvhRYAJo4vUjjmiS ZS8XftI1yAnTiUsZlODBaUOZi9Ue2O8e7LZCFM_i106BA68XBpTgnV8AeaE7C6832LJDNmTRbqOw DoZNrOdXRCG6bB8VZ_eGHGIK2iaNum9EExV4ndzg9mNGdbYwrbGB4sEUjzeLJxfsvW6WoX5_5DPD n5s_VSKOgd_YFbZiEOORwte6zW4IMtBqZLj00VdKcvt_vPV0m_c6HCIsINfTztAGNZbliJz2CGZH XQyUJhhpapCm70vMwZgwerdUFxZNd_shRPn.4IJa.VOT0sWM6g9Jx5NsP0dxSw6muM6DIZwpZFdN 3c8TML7lTiTEs2ctlvX37U4Aeqil7hUrCROSaU6hH_NNocR1kopgjwIAKjNEs2rMYJPKEPWefMq4 XKpIMgYGwRmvEYYqISlPVv.4WxlcdZxmQbby9fFk1birCMQ93pYmmJ2l0BEonsm7gwVs3b5Rel1P JQ1ji X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Tue, 5 Jul 2022 06:41:42 +0000 Received: by hermes--production-bf1-58957fb66f-bs7vm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 404c71b094db1ad9695b1d20170a0eba; Tue, 05 Jul 2022 06:41:39 +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 14.0 \(3654.120.0.1.13\)) Subject: Re: Failed to execute custom kernels which where build on a RPi 4 operated by 13.1-RELEASE From: Mark Millard In-Reply-To: Date: Mon, 4 Jul 2022 23:41:37 -0700 Cc: "Dr. Rolf Jansen" , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0A80CA1D-A3B7-4565-A059-B55FF05DE51B@yahoo.com> <531137B1-0501-47AE-BC2F-62F57067356B@yahoo.com> To: John Kennedy X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4LcY4G0SFSz3pXT X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=sg5KTfPM; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.146:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jul-4, at 20:14, John Kennedy wrote: > On Mon, Jul 04, 2022 at 06:39:39PM -0700, Mark Millard wrote: >> ... I have yet to have my hands on a 0xb03115 RPi4B variant (so: Rev = 1.5). >> It is my understanding that the RPi4B firmware vintage has to be >> recent enough to correctly handle the new PMIC used on the rev 1.5 >> variants: >>=20 >> QUOTE (of RPi engineers on its forums on 2022-Feb-08): >> The PMIC has been changed. Needs firmware from April 21 or later >=20 > Mark, do you know how to find that info just using FreeBSD? > Looks like there might be some uboot stuff, but I haven't managed to > catch it during a HDMI boot. >=20 Note: I do my own builds, installs, and configuration experiments. Do not expect my example outputs below to necessarily match those for official builds. For reference from my root-on-UFS aarch64 environment that boots via U-Boot (not via EDK2 UEFI/ACPI): # df -m Filesystem 1M-blocks Used Avail Capacity Mounted on /dev/gpt/CA72USBufs 1322130 224991 991368 18% / devfs 0 0 0 100% /dev /dev/gpt/CA72USBefi 259 29 230 11% /boot/efi Your builds or standard-build details may vary for what I have as /boot/efi/. # sysctl hw.fdt # Likely a RPi* specific sysctl name? hw.fdt.serial-number: REPLACED hw.fdt.compatible: raspberrypi,4-model-b brcm,bcm2711 hw.fdt.model: Raspberry Pi 4 Model B Rev 1.4 I'm not aware of being able to identify the RPi4B EEPROM content version from FreeBSD, nor the configuration defaults that are present. But it can be important. (More notes later.) Presuming that one has not mixed and matched RPi* firmware files from different RPi* firmware builds, the start*.elf files have version identification information (that predates the tagging date when it is declared as expected to be good): # strings -a /boot/efi/start4.elf | grep VC_BUILD_ID_ VC_BUILD_ID_USER: dom VC_BUILD_ID_TIME: 18:14:56 VC_BUILD_ID_VARIANT: start VC_BUILD_ID_TIME: Aug 3 2021 VC_BUILD_ID_BRANCH: bcm2711_2 VC_BUILD_ID_HOSTNAME: buildbot VC_BUILD_ID_PLATFORM: raspberrypi_linux VC_BUILD_ID_VERSION: 40787ee5905644f639a2a0f6e00ae12e517a2211 (clean) So it may take some comparisons to match up with officially tagged versions or other specific versions the FreeBSD ports may sometimes use. Similarly for which FreeBSD port version it matches up with (presuming it does). I'll note that the PMIC issue is not a U-Boot issue but just a RPi* EEPROM version and RPi* firmware issue, as far as I know anyway. I'm not aware of anything useful to find in /boot/efi/armstub8-gic.bin (or armstub8.bin) for version identification. # strings -a /boot/efi/u-boot.bin | grep 'U-Boot 20' U-Boot 2022.04 (Apr 23 2022 - 03:14:35 +0000) The date here is the build date, not the version date. So it can be useful in matching up with FreeBSD port builds if you have used an official FreeBSD port build's content. This does not indicate which of the several RPi* related u-boot ports is involved. For aarch64 RPi*'s the modern one used by official builds is: sysutils/u-boot-rpi-arm64 It supports the widest range of aarch64 RPi*'s. # strings -a /boot/efi/efi/boot/bootaa64.efi | grep 'EFI loader' DFreeBSD/arm64 EFI loader, Revision 1.1 But, so far as I know, that one is nearly useless. As for the RPi4B EEPROM mentioned before: I'm not aware of a FreeBSD equivalent of either of the below for identifying the CURRENT version: # rpi-eeprom-update *** UPDATE AVAILABLE *** BOOTLOADER: update available CURRENT: Tue Jan 25 14:30:41 UTC 2022 (1643121041) LATEST: Tue Apr 26 10:24:28 UTC 2022 (1650968668) RELEASE: default (/lib/firmware/raspberrypi/bootloader/default) Use raspi-config to change the release. VL805_FW: Using bootloader EEPROM VL805: up to date CURRENT: 000138a1 LATEST: 000138a1 # rpi-eeprom-config [all] BOOT_UART=3D1 WAKE_ON_GPIO=3D1 POWER_OFF_ON_HALT=3D0 DHCP_TIMEOUT=3D45000 DHCP_REQ_TIMEOUT=3D4000 TFTP_FILE_TIMEOUT=3D30000 ENABLE_SELF_UPDATE=3D1 DISABLE_HDMI=3D0 BOOT_ORDER=3D0xf41 I boot a RaspiOS64 microsd card for the related activity. For reference for the default (a.k.a. critical) ones: # cd /lib/firmware/raspberrypi/ # ls -ld bootloader/default/*.bin -rw-r--r-- 1 root root 524288 Apr 29 2020 = bootloader/default/pieeprom-2020-04-16.bin -rw-r--r-- 1 root root 524288 Sep 14 2020 = bootloader/default/pieeprom-2020-09-03.bin -rw-r--r-- 1 root root 524288 Apr 30 2021 = bootloader/default/pieeprom-2021-03-18.bin -rw-r--r-- 1 root root 524288 Apr 30 2021 = bootloader/default/pieeprom-2021-04-29.bin -rw-r--r-- 1 root root 524288 Feb 8 07:07 = bootloader/default/pieeprom-2022-01-25.bin -rw-r--r-- 1 root root 524288 May 3 05:21 = bootloader/default/pieeprom-2022-04-26.bin -rw-r--r-- 1 root root 87940 May 3 05:21 = bootloader/default/recovery.bin -rw-r--r-- 1 root root 98904 Jan 22 2020 = bootloader/default/vl805-000137ad.bin -rw-r--r-- 1 root root 99224 Sep 14 2020 = bootloader/default/vl805-000138a1.bin =3D=3D=3D Mark Millard marklmi at yahoo.com