Skip to content

raspberry-pi: fix DTB name mapping for U-Boot#1840

Open
JamieMagee wants to merge 1 commit intoNixOS:masterfrom
JamieMagee:raspberry-pi/dtb-fixup
Open

raspberry-pi: fix DTB name mapping for U-Boot#1840
JamieMagee wants to merge 1 commit intoNixOS:masterfrom
JamieMagee:raspberry-pi/dtb-fixup

Conversation

@JamieMagee
Copy link
Copy Markdown
Member

@JamieMagee JamieMagee commented Apr 24, 2026

The postFixup copies vendor-named DTBs (bcm2708-*/bcm2709-*/bcm2710-*) to the upstream names (bcm2835-*/bcm2836-*/bcm2837-*) that U-Boot expects. See U-Boot rpi.c.

Three fixes:

  1. Gate on rpiVersion instead of host architecture. Pi 4+ names already match between vendor and upstream, so skip the workaround for rpiVersion >= 4.
  2. Fix bcm2835-rpi-zero.dtb -- was copied from bcm2708-rpi-b-plus.dtb (wrong board). Now uses bcm2708-rpi-zero.dtb.
  3. Drop the bcm2711-rpi-4-b.dtb to bcm2838-rpi-4-b.dtb copy. Nothing uses bcm2838-*.
Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

@JamieMagee JamieMagee changed the title raspberry-pi: fix DTB name mapping for U-Boot compatibility raspberry-pi: fix DTB name mapping for U-Boot Apr 24, 2026
- Gate on rpiVersion instead of architecture; skip for Pi 4+ where
  vendor and upstream DTB names already match
- Fix bcm2835-rpi-zero.dtb: was copied from bcm2708-rpi-b-plus (wrong
  board), now uses bcm2708-rpi-zero
- Drop bcm2711-rpi-4-b -> bcm2838-rpi-4-b copy; nothing uses bcm2838-*

Ref: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant