Long Story Short

I built hummingbird-rpi5, a project that turns the Hummingbird image-based OS into an SD card image for the Raspberry Pi 5. It’s an unstable test project. It boots with the Pi’s own firmware, and the kernel is Fedora 44’s. The base comes from Hummingbird, and I leaned on AlmaLinux and oci-native for a lot of the Pi-specific parts.

What This Is

Hummingbird is a image-based OS. The whole system is one container image, so you update by switching to a newer image instead of installing packages one by one. bootc handles the switching and the rolling back on disk.

Before this, I did get the Pi to a running state, but I used the AlmaLinux Raspberry Pi kernel to do it. That kernel was outdated. I only used the Hummingbird userspace, so the kernel still came from AlmaLinux. This time the kernel is Fedora 44’s, shipped with the Hummingbird base image. Getting a Fedora kernel running on a Pi was the whole reason I started this after my earlier posts.

It’s unstable. Don’t run it on a card you can’t reflash.

How It Works

  • One image. The whole system lives in one container image.
  • Pi firmware boot. The Pi boots straight from its own firmware. There’s no UEFI, U-Boot, or GRUB. It’s the same design I wrote about in my earlier posts.
  • Parts from others. Userspace comes from Hummingbird. The VideoCore and Pi WiFi/Bluetooth firmware come from AlmaLinux’s Raspberry Pi packages. I used some parts from AlmaLinux/bootc-images-rpi and oci-native/archlinux-rpi to patch the areas where the Fedora kernel doesn’t have support out of the box.
  • Updates. Automatic updates are off. bootc upgrade follows the :unstable tag.
  • Rollbacks. Run bootc rollback, then wait for rpi-bootc-bootloader-sync.service to finish before you reboot. A normal bootc rollback assumes a bootloader that reads boot entries itself, like GRUB or UEFI. The Pi has neither, so the boot files on the FAT partition have to be rewritten by that sync service. Rebooting before it finishes can leave the Pi unable to boot.

Status

Don’t cut the power during an update or rollback. If the Pi loses power while it copies the new kernel to the boot partition, it may not boot again, and you’ll have to reflash the card.

Verified working on a Pi 5 (8 GB), tested on 2026-11-24:

  • Boot, SSH, Ethernet, WiFi, HDMI
  • Bluetooth (pairing tested)
  • cloud-init, tryboot, watchdog
  • vcgencmd: reads GPU and firmware values, such as the CPU temperature.
  • vcmailbox: sends raw requests to the VideoCore firmware over the mailbox interface.
  • bootc upgrade, bootc switch, bootc rollback (rollback uses a different flow, see below)

A normal bootc rollback expects a bootloader that reads boot entries itself, like GRUB or UEFI. The Pi has neither, so after a rollback the boot files on the FAT partition have to be rewritten. The rpi-bootc-bootloader script does that, based on the kfox1111/rpi-bootc-bootloader project. A sync service runs it automatically after the rollback. Wait for that sync to finish before you reboot, or the Pi may not boot.

Broken: a power cut during an update or rollback can leave the Pi unable to boot.

Project Components

Everything lives in https://github.com/iamyaash/hummingbird-rpi5.

The information in this section was drafted using an LLM, based on the data I provided. It might not be fully accurate, so please refer to the repository for detailed information.

Taken from existing sources

Used as-is or nearly as-is.

ComponentSourceWhere it’s used
Base OS, systemd, bootc, ostree, NetworkManager, chrony, cloud-initHummingbird os-minimal base image (pinned)Containerfile FROM
Linux kernel and modulesFedora 44 kernel in the Hummingbird baseKept as-is, not replaced
VideoCore firmware (start*.elf, fixup*.dat, etc.)AlmaLinux raspberrypi2-firmwareContainerfile line 90
vcgencmd, vcmailboxAlmaLinux raspberrypi-userlandContainerfile line 91
Pi WiFi/BT firmware, wireless-regdb, wpa_supplicant, NetworkManager-wifiFedora 44 and AlmaLinux reposContainerfile lines 91-92
bluez, cloud-init, xfsprogs, jqHummingbird/Fedora reposContainerfile lines 92-93
rpi-bootc-bootloader v0.0.8Upstream script (AlmaLinux/archlinux-rpi lineage), LICENSE includedbootloader/, Containerfile line 136
Bluetooth UART driver 8250_bcm7271.cUnmodified upstream kernel source, copied at the kernel’s versionkmod/bcm7271-uart/
Upstream Pi 5 DTBsBase image Fedora kernel/usr/lib/modules/$KVER/dtb/
Base kernel build tools (kernel-devel)Fedora Koji, by exact NVRContainerfile line 28
dtcFedora repoContainerfile line 57
Hummingbird chrony.conf, cc_resizefs.pyBase image, then patched by sedContainerfile lines 152-169

Written or patched

ComponentWhat I didWhere
vcio.c (/dev/vcio driver)Adapted from the Raspberry Pi downstream driver so it works with upstream DTBskmod/vcio/
vcio.ko buildNew builder stage that compiles against the base kernelContainerfile lines 18-45
Kernel vmlinuz to raw ImageExtract zstd payload from EFI zboot wrapper at build timeContainerfile lines 38-45
Pi 5 fan overlayMy own dtso for pwm-fan on upstream DTBsdts/rpi5-fan.dtso
Fan DTB patchingScript that applies the overlay and checks the resultscripts/fan-dtb.sh
rpi-bootc-bootloader patchesMarked hb1: rollback handling, locking, entry folder rebuildbootloader/rpi-bootc-bootloader
rpi-clock serviceSaves and restores time, since the Pi has no RTC batteryfiles/usr/libexec/rpi-clock, files/usr/lib/systemd/system/rpi-clock*
SD card assemblyPartitions, copies firmware, first bootloader syncscripts/build-sd-image.sh
Boot partition configconfig-bootc-common.txt, user-data, meta-databoot-partition/
Kernel argsPi 5 debug UART is ttyAMA10files/usr/lib/bootc/kargs.d/00-base.toml
Initramfsdracut config for SD and filesystem modules, with build checksfiles/usr/lib/dracut/dracut.conf.d/30-rpi.conf
Device and boot servicesudev rules (vcio, fan), tmpfiles, systemd units and presets, NM power save offfiles/usr/lib/...
Firmware file placementCopies DTBs to the path rpi-bootc-bootloader expects, renames D0 DTBContainerfile lines 124-126
Chrony and cloud-init changesFedora NTP pool, growpart on /varContainerfile lines 152-169
Repo filesWhitelist repos for AlmaLinux and Fedorafiles/etc/yum.repos.d/
Bluetooth toolingBuild checks for the module alias and vermagicContainerfile lines 31-37
Docs and rollback notesREADME, docs, known issues, upstream bug draftdocs/, notes/
TestsFan, clock, and bootloader test scriptstests/

This project isn’t written from scratch. Most of the work was research: finding components in existing sources, copying them, and tweaking them until they worked. Where something was missing, I patched it, so some parts are a mix of reused code, my own changes, and code I wrote from a reference. A few components had no usable source, so I wrote them with AI assistance. Each component in the tables above shows where it came from.

What’s Next

This is still unstable and in testing. I couldn’t find a way to boot a bootc image natively on the Raspberry Pi 5 without workarounds like the UEFI translation layer from worproject/rpi5-uefi. This project is my attempt at that. It boots straight from the Pi’s own firmware now, but there are rough edges left.

I’m working on these next:

  • Power-loss problem. A fix on the fix/bootloader-fsync branch was written with LLM help. It isn’t reliable yet, so it isn’t merged. I’m searching the web for a better solution. There is one open pull request. The roadmap is not documented yet.
  • Fan control. The fan spins up for a few seconds with no clear reason, then stops. Sometimes it makes loud noises. The fan isn’t tuned, so the Pi doesn’t know when to start the fan, how fast to run it, or when to stop. The device tree patches add a fan node and trip points, but they don’t give a smooth or predictable result yet.
  • Bluetooth. The Bluetooth functionality is not consistent and needs to be fixed. I patched it just enough to make it show up. It connected with some devices but not all.
  • Old DTBs and overlays stay. After a kernel change, the old files remain on the FAT partition.
  • Tainted kernel. Two unsigned modules, vcio.ko and 8250_bcm7271.ko, taint the kernel.