diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2026-11-20 07:14:47 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2026-11-20 08:09:09 +0000 |
| commit | 33c8200526752de8e59d03b2f40d16fecbe76170 (patch) (diff) | |
| tree | 918d2437d48b01a0e3260576a20c67d11f5bb496 | |
| download | ports-33c8200526752de8e59d03b2f40d16fecbe76170.tar.gz | |
| previous commit | 59c67976af50222440876365d30e57be6bd311dc (sysutils/rpi-firmware: Use firmware DTB placement on Raspberry Pi 5) | |
sysutils/rpi-firmware: Set framebuffer_swap=0, no mmc overlay on RPi 4
With framebuffer_swap enabled, which is the default, the recent
firmware puts the red component of a 32 bpp pixel in the low byte when
U-Boot requests RGB. U-Boot always requests RGB and announces red in
bits 16-23 in the EFI GOP, so everything that draws with that layout
has red and blue swapped. Set framebuffer_swap=0 in the config files
of the single models that boot U-Boot. The EDK2 one and the generic
config_arm64.txt are left alone.
On the Raspberry Pi 4 the SD card slot is on the emmc2 controller, so
dtoverlay=mmc only repurposes the controller of the on-board WiFi chip.
It was copied from the Raspberry Pi 3 file, where it moved the SD card
to the controller supported at the time. Remove it from
config_rpi4.txt. The other files are unchanged, there is no way to
test them here.
Bump PORTREVISION as the installed files change.
PR: 300542
Tested on: Raspberry Pi 4 Model B Rev 1.4 (U-Boot 2026.10, firmware
1.20260521): the vt(4) console and raw pixels written in
the GOP layout have the right colors with
framebuffer_swap=0, and the SD card and boot work without
the overlay. The settings were applied by hand to
config.txt, no package was built from this change.
(cherry picked from commit 821cc4b7470f1e834f117e401d720d513c3e1636)
| -rw-r--r-- | sysutils/rpi-firmware/Makefile | [diff] [file] | 2 | ||||
| -rw-r--r-- | sysutils/rpi-firmware/files/config.txt | [diff] [file] | 1 | ||||
| -rw-r--r-- | sysutils/rpi-firmware/files/config_rpi3.txt | [diff] [file] | 1 | ||||
| -rw-r--r-- | sysutils/rpi-firmware/files/config_rpi4.txt | [diff] [file] | 2 | ||||
| -rw-r--r-- | sysutils/rpi-firmware/files/config_rpi_0_w.txt | [diff] [file] | 1 |
5 files changed, 5 insertions, 2 deletions
diff --git a/sysutils/rpi-firmware/Makefile b/sysutils/rpi-firmware/Makefile index 6acb43094302..1bd5bed076a3 100644 --- a/sysutils/rpi-firmware/Makefile +++ b/sysutils/rpi-firmware/Makefile @@ -1,6 +1,6 @@ PORTNAME= rpi-firmware PORTVERSION= 1.20260521.g20260521 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= uboot@FreeBSD.org diff --git a/sysutils/rpi-firmware/files/config.txt b/sysutils/rpi-firmware/files/config.txt index 3d41741047e8..d060c752b0dd 100644 --- a/sysutils/rpi-firmware/files/config.txt +++ b/sysutils/rpi-firmware/files/config.txt @@ -3,3 +3,4 @@ enable_uart=1 kernel=u-boot.bin kernel7=u-boot.bin dtoverlay=mmc +framebuffer_swap=0 diff --git a/sysutils/rpi-firmware/files/config_rpi3.txt b/sysutils/rpi-firmware/files/config_rpi3.txt index c2cb9ce4cd62..e3219601928a 100644 --- a/sysutils/rpi-firmware/files/config_rpi3.txt +++ b/sysutils/rpi-firmware/files/config_rpi3.txt @@ -5,3 +5,4 @@ dtoverlay=pwm dtoverlay=disable-bt device_tree_address=0x4000 kernel=u-boot.bin +framebuffer_swap=0 diff --git a/sysutils/rpi-firmware/files/config_rpi4.txt b/sysutils/rpi-firmware/files/config_rpi4.txt index d97c5d124fae..98ad28f95e6b 100644 --- a/sysutils/rpi-firmware/files/config_rpi4.txt +++ b/sysutils/rpi-firmware/files/config_rpi4.txt @@ -1,7 +1,7 @@ arm_64bit=1 dtoverlay=disable-bt -dtoverlay=mmc device_tree_address=0x4000 kernel=u-boot.bin armstub=armstub8-gic.bin hdmi_safe=1 +framebuffer_swap=0 diff --git a/sysutils/rpi-firmware/files/config_rpi_0_w.txt b/sysutils/rpi-firmware/files/config_rpi_0_w.txt index aa41d29835c8..0af9d685096f 100644 --- a/sysutils/rpi-firmware/files/config_rpi_0_w.txt +++ b/sysutils/rpi-firmware/files/config_rpi_0_w.txt @@ -4,3 +4,4 @@ kernel=u-boot.bin kernel7=u-boot.bin dtoverlay=mmc dtoverlay=disable-bt +framebuffer_swap=0 |
