Add support for Raspberry Pi 4 in device tree mode
Add support for Raspberry Pi 4 in device tree mode
Add support for running flatcar on Raspberry Pi 4 in device tree mode
Fixes 1750
How to use
- Follow instructions as per https://www.flatcar.org/docs/latest/installing/bare-metal/raspberry-pi/
- Enable device tree mode in UEFI
virt-fw-vars \
--input RPI_EFI.fd \
--output RPI_EFI.fd \
--set-json <(cat <<EOF
{
"version": 2,
"variables": [
{
"name": "RamLimitTo3GB",
"guid": "cd7cc258-31db-22e6-9f22-63b0b8eed6b5",
"data": "00000000"
},
{
"name": "SystemTableMode",
"guid": "cd7cc258-31db-22e6-9f22-63b0b8eed6b5",
"data": "01000000"
}
]
}
EOF
)
- Add
pcie-32bit-dmaoverlay
curl -L \
https://github.com/raspberrypi/firmware/raw/refs/heads/master/boot/overlays/pcie-32bit-dma.dtbo \
--output /tmp/efipartition/overlays/pcie-32bit-dma.dtbo
echo "dtoverlay=pcie-32bit-dma" >> config.txt
- Add
rpi-poeoverlay
curl -L \
https://github.com/raspberrypi/firmware/raw/refs/heads/master/boot/overlays/rpi-poe.dtbo \
--output /tmp/efipartition/overlays/rpi-poe.dtbo
echo "dtoverlay=rpi-poe >> config.txt
- Set
acpi=offkernel parameter in butane configuration
kernel_arguments:
should_exist:
<snip>
- acpi=off
Testing done
[Describe the testing you have done before submitting this PR. Please include both the commands you issued as well as the output you got.]
- [ ] Changelog entries added in the respective
changelog/directory (user-facing change, bug fix, security fix, update) - [ ] Inspected CI output for image differences:
/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.
Thank you for this. I'm not overly familiar with the Pi's DT overlays, but the changes look reasonable. I need to run this in CI to see what kind of impact this has on the kernel image size. We're extremely tight on space for the time being, but I'm working to resolve that. We've also had some issues with GHA, so I'm running this on our internal CI instead. I've rebased it so that we can see the change against 6.12.29.
Build action triggered: https://github.com/flatcar/scripts/actions/runs/15192745313