# Talos CM5 Builder Custom Talos Linux images for Raspberry Pi 5 / CM5 on Compute Blade hardware. Docker Hub Docker Pulls Docker Image Size The official Talos Image Factory does not support CM5 — the mainline kernel lacks CM5 device trees and RP1 driver support. This builder uses the RPi downstream kernel (via [talos-rpi5/talos-builder](https://github.com/talos-rpi5/talos-builder) patches) to produce working CM5 images with our extensions and overclock config. ## Current versions | Component | Version | |-----------|---------| | Talos Linux | Talos version | | RPi Kernel | Kernel version | | iscsi-tools | iscsi-tools version | | util-linux-tools | util-linux-tools version | ## Image tags Release images are published to docker.io/svrnty/talos-rpi5 with the format: ``` v-k- ``` For example: `v1.12.4-k6.12.47-3` | Segment | Meaning | |---------|---------| | `v1.12.4` | Upstream Talos Linux version | | `k6.12.47` | RPi downstream kernel version | | `3` | Build revision (bumped for config/patch changes on the same upstream versions) | ## Usage ### Install from raw disk image Download `metal-arm64.raw.zst` from the [latest release](../../releases/latest) and flash to eMMC: ```bash zstd -d metal-arm64.raw.zst -o metal-arm64.raw # Flash to eMMC/SD via your preferred tool (dd, balenaEtcher, etc.) ``` ### Upgrade an existing node ```bash talosctl upgrade --image docker.io/svrnty/talos-rpi5:v1.12.4-k6.12.47-3 --nodes ``` In-place upgrades are fully supported. The image includes patches to force GRUB with `--no-nvram` on arm64 (working around the RPi5/CM5 `SetVariableRT` firmware limitation) and to handle the SBC EFI-only disk layout (no separate BOOT partition). ### What's included - RPi downstream kernel with CM5/RP1 support (4K page size, aligned with upstream Talos) - GRUB bootloader with `--no-nvram` for reliable `talosctl upgrade` on RPi5/CM5 - SBC EFI-only boot layout support (probe, install, revert all fall back to EFI partition when BOOT partition is absent) - Fallback to classic bind mounts on kernels without `open_tree` support (Linux <6.15) - Overclock: 2.6GHz (`arm_freq=2600`, `over_voltage_delta=50000`, `arm_boost=1`) - Extensions: `iscsi-tools`, `util-linux-tools` ## Known issues ### ~~No serial console output after boot~~ (Fixed) The overlay was using `console=ttyAMA0` (GPIO 14/15 UART) but the RPi5/CM5 debug UART is `ttyAMA10`. Fixed by switching to `console=ttyAMA10,115200` and adding `earlycon=pl011,0x107d001000,115200n8` for early boot output. Also added `[pi5] enable_uart=0` to `config.txt` to match upstream and avoid U-Boot compatibility issues. *Upstream: talos-builder#4* ### Install disk config ignored on SBCs Talos ignores the `machine.install.disk` config field on SBC platforms. You **must flash the disk image directly** to your target disk (eMMC, SD, NVMe). For NVMe boot, `dd` the metal image to the NVMe drive and configure the EEPROM boot order (`BOOT_ORDER=0xf416`, `PCIE_PROBE=1`). *Upstream: talos-builder#22* ## Patches | Patch | Target | Description | |-------|--------|-------------| | `0001` (pkgs) | Kernel | RPi downstream kernel 6.12.x with CM5/RP1 device tree and driver support | | `0001` (talos) | Modules | arm64 kernel module list for RPi downstream kernel | | `0002` (talos) | GRUB | `--no-nvram` for `grub-install` on arm64 (U-Boot lacks EFI `SetVariable`) | | `0003` (talos) | Bootloader | Force GRUB over sd-boot on arm64 (sd-boot crashes without EFI runtime) | | `0004` (talos) | Runtime | Fallback to classic bind mounts on kernels without `open_tree` (Linux <6.15) | | `0005` (talos) | GRUB | Handle missing BOOT partition for SBC EFI-only disk layouts | | `0001` (overlay) | Toolchain | Bump Go to 1.24.13 (CVE fix) | | `0002` (overlay) | Console | Fix serial console for RPi5/CM5 debug UART (`ttyAMA10`) | ## Roadmap This project targets production-ready Talos clusters on RPi5/CM5 hardware. | Status | Milestone | Description | |--------|-----------|-------------| | Tested | **4K page size** | Aligned with upstream Talos kernel config. Reduces memory overhead and improves workload compatibility (Longhorn, jemalloc, F2FS, etc.). | | Tested | **Reliable in-place upgrades** | Force GRUB bootloader with `--no-nvram` on arm64, handle SBC EFI-only disk layout. Verified end-to-end with `talosctl upgrade`. | | Tested | **Kernel <6.15 compatibility** | Unconditional `open_tree` capability check — falls back to classic bind mounts on RPi downstream kernel 6.12.x. | | Untested | **Serial console fix** | Use correct debug UART (`ttyAMA10`) with `earlycon` for early boot output. | | Untested | **NVMe boot support** | `dd` image to NVMe + set EEPROM `BOOT_ORDER=0xf416` and `PCIE_PROBE=1`. Kernel has `CONFIG_BLK_DEV_NVME=y` built-in. | ## NVMe boot (untested) The kernel has NVMe built-in (`CONFIG_BLK_DEV_NVME=y`), so booting from NVMe should work by flashing the disk image directly and configuring the RPi5/CM5 EEPROM. ### 1. Flash the image to NVMe Connect the NVMe drive via a USB adapter and flash: ```bash zstd -d metal-arm64.raw.zst | sudo dd of=/dev/ bs=4M status=progress sync ``` ### 2. Configure EEPROM boot order Use `rpiboot` to update the CM5 EEPROM. Clone the usbboot repo and edit the boot config: ```bash git clone --depth=1 https://github.com/raspberrypi/usbboot cd usbboot && make # Edit the EEPROM config for CM5 cp recovery/boot.conf recovery/boot.conf.bak ``` Add or update these values in `recovery/boot.conf`: ```ini BOOT_ORDER=0xf416 PCIE_PROBE=1 ``` Then flash via USB with the CM5 in USB boot mode (hold nRPIBOOT or disable eMMC boot on your carrier board): ```bash sudo ./rpiboot -d recovery ``` `BOOT_ORDER` is read right-to-left: try NVMe (`6`) first, then SD (`1`), then USB (`4`), then restart (`f`). `PCIE_PROBE=1` is required for non-HAT+ NVMe adapters (Compute Blade, most M.2 carrier boards). ### 3. Boot from NVMe Power on. The RPi firmware should find the boot partition on NVMe, load U-Boot, and boot Talos. ### Optional: enable PCIe Gen 3 Add to your `configTxtAppend` overlay option or directly to `config.txt` on the boot partition: ```ini dtparam=pciex1_gen=3 ``` This doubles throughput (~400 MB/s Gen 2 to ~800 MB/s Gen 3). Not officially certified by Raspberry Pi but works on most NVMe drives. ## Building For local builds, CI/CD setup, runner configuration, and project structure, see [TECHNICAL.md](TECHNICAL.md). ## License This project is licensed under the [Mozilla Public License 2.0](LICENSE). It builds upon the following MPL 2.0 licensed upstream projects: - [siderolabs/talos](https://github.com/siderolabs/talos) — Talos Linux OS - [siderolabs/pkgs](https://github.com/siderolabs/pkgs) — Talos package definitions - [talos-rpi5/sbc-raspberrypi5](https://github.com/talos-rpi5/sbc-raspberrypi5) — Raspberry Pi 5 SBC overlay Our patches to these projects are in the `patches/` directory and are distributed under the same MPL 2.0 terms.