Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2025 21:48:02 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-arm@freebsd.org, Klaus Cucinauomo <maciphone2@googlemail.com>
Subject:   Re: RPI5 16GB panic on boot [.dtb files]
Message-ID:  <15C7AE9B-B74C-4594-9E2E-03610F10D7B5@yahoo.com>
In-Reply-To: <27AEB4C0-175C-405F-A6A1-A40AB9283848@yahoo.com>
References:  <1209610970.15723.1738490182716@localhost> <DE0DDB59-B413-4B7A-BF15-0B94C9D5F13D@yahoo.com> <19B2FAF2-4656-4D0D-B8D4-713BFCC75372@yahoo.com> <27AEB4C0-175C-405F-A6A1-A40AB9283848@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 3, 2025, at 12:23, Mark Millard <marklmi@yahoo.com> wrote:

> 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.)

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 .

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 :

. . .
  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
. . .

The existing armstub8-gic.bin may well be insufficient
or inappropriate for an RPi5. Note that the config.txt :

# 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

[pi4]
hdmi_safe=3D1
armstub=3Darmstub8-gic.bin


leaves the armstub name at the default for an rpi5.
Now we know the naming convention for the RPi5 (and
related): armstub8-2712.bin


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15C7AE9B-B74C-4594-9E2E-03610F10D7B5>