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 upgradefollows the:unstabletag. - Rollbacks. Run
bootc rollback, then wait forrpi-bootc-bootloader-sync.serviceto 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.
| Component | Source | Where it’s used |
|---|---|---|
| Base OS, systemd, bootc, ostree, NetworkManager, chrony, cloud-init | Hummingbird os-minimal base image (pinned) | Containerfile FROM |
| Linux kernel and modules | Fedora 44 kernel in the Hummingbird base | Kept as-is, not replaced |
VideoCore firmware (start*.elf, fixup*.dat, etc.) | AlmaLinux raspberrypi2-firmware | Containerfile line 90 |
vcgencmd, vcmailbox | AlmaLinux raspberrypi-userland | Containerfile line 91 |
Pi WiFi/BT firmware, wireless-regdb, wpa_supplicant, NetworkManager-wifi | Fedora 44 and AlmaLinux repos | Containerfile lines 91-92 |
bluez, cloud-init, xfsprogs, jq | Hummingbird/Fedora repos | Containerfile lines 92-93 |
rpi-bootc-bootloader v0.0.8 | Upstream script (AlmaLinux/archlinux-rpi lineage), LICENSE included | bootloader/, Containerfile line 136 |
Bluetooth UART driver 8250_bcm7271.c | Unmodified upstream kernel source, copied at the kernel’s version | kmod/bcm7271-uart/ |
| Upstream Pi 5 DTBs | Base image Fedora kernel | /usr/lib/modules/$KVER/dtb/ |
Base kernel build tools (kernel-devel) | Fedora Koji, by exact NVR | Containerfile line 28 |
dtc | Fedora repo | Containerfile line 57 |
Hummingbird chrony.conf, cc_resizefs.py | Base image, then patched by sed | Containerfile lines 152-169 |
Written or patched
| Component | What I did | Where |
|---|---|---|
vcio.c (/dev/vcio driver) | Adapted from the Raspberry Pi downstream driver so it works with upstream DTBs | kmod/vcio/ |
vcio.ko build | New builder stage that compiles against the base kernel | Containerfile lines 18-45 |
Kernel vmlinuz to raw Image | Extract zstd payload from EFI zboot wrapper at build time | Containerfile lines 38-45 |
| Pi 5 fan overlay | My own dtso for pwm-fan on upstream DTBs | dts/rpi5-fan.dtso |
| Fan DTB patching | Script that applies the overlay and checks the result | scripts/fan-dtb.sh |
rpi-bootc-bootloader patches | Marked hb1: rollback handling, locking, entry folder rebuild | bootloader/rpi-bootc-bootloader |
rpi-clock service | Saves and restores time, since the Pi has no RTC battery | files/usr/libexec/rpi-clock, files/usr/lib/systemd/system/rpi-clock* |
| SD card assembly | Partitions, copies firmware, first bootloader sync | scripts/build-sd-image.sh |
| Boot partition config | config-bootc-common.txt, user-data, meta-data | boot-partition/ |
| Kernel args | Pi 5 debug UART is ttyAMA10 | files/usr/lib/bootc/kargs.d/00-base.toml |
| Initramfs | dracut config for SD and filesystem modules, with build checks | files/usr/lib/dracut/dracut.conf.d/30-rpi.conf |
| Device and boot services | udev rules (vcio, fan), tmpfiles, systemd units and presets, NM power save off | files/usr/lib/... |
| Firmware file placement | Copies DTBs to the path rpi-bootc-bootloader expects, renames D0 DTB | Containerfile lines 124-126 |
| Chrony and cloud-init changes | Fedora NTP pool, growpart on /var | Containerfile lines 152-169 |
| Repo files | Whitelist repos for AlmaLinux and Fedora | files/etc/yum.repos.d/ |
| Bluetooth tooling | Build checks for the module alias and vermagic | Containerfile lines 31-37 |
| Docs and rollback notes | README, docs, known issues, upstream bug draft | docs/, notes/ |
| Tests | Fan, clock, and bootloader test scripts | tests/ |
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-fsyncbranch 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.koand8250_bcm7271.ko, taint the kernel.