On BCM2712, the depth reported by firmware does not match the allocated framebuffer. Skip the legacy framebuffer driver and retain the EFI console to avoid using this inconsistent information and prevent a VT rendering panic.
Details
Built arm64 GENERIC on d9daf5ae7965 with D61378, using an RPI image with D61535. Tested on one Raspberry Pi 5 Model B 8GB (BCM2712 D0, revision code 0xd04171).
Confirmed boot to the UART login prompt, normal reboot, and 1920x1080 HDMI console output. Red, green and blue text displayed correctly. VT(efifb) remained active and the legacy framebuffer driver did not attach.
Hardware validation was limited to this board.
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
That's likely not the root of the problem, firmware likely created space for a 16bpp framebuffer but the driver is changing it to 24bpp (See https://cgit.freebsd.org/src/tree/sys/arm/broadcom/bcm2835/bcm2835_fbd.c#n88), that's why it crashes.
Thanks. The failing log kept 32bpp. A follow-up check showed both GET_DEPTH and SET_DEPTH reporting 32 for a 16bpp buffer. This matches the depth-reporting problem described in https://github.com/raspberrypi/firmware/issues/1904.
The updated diff skips the legacy driver on BCM2712 and keeps the EFI framebuffer console active. Boot, reboot, HDMI text and RGB colors were verified on the D0 board.
Setting framebuffer_depth=32 in config.txt fixes this on the D0 board without changing bcm2835_fbd. It now attaches at 1920x1080, 32bpp with stride 7680 and size 8294400. UART login and HDMI text/colors work.
I'll drop this src change. The firmware configuration change is in https://reviews.freebsd.org/D61863 .
Thanks.