Skip to content

docs(heimdall): its bootloader update is staged on the card, not written by flashrom - #1730

Merged
Gerrrt merged 1 commit into
mainfrom
gerrrt/heimdall-bootloader-staged
Nov 24, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
gerrrt/heimdall-bootloader-staged

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 24, 2026

Copy link
Copy Markdown
Owner

What changed

build-heimdall.md's bootloader section now says what applying it actually did on heimdall:

  • The update is staged on the card: pieeprom.upd, its signature and recovery.bin go into /boot/firmware.
  • The firmware writes the chip from them at the next boot.
  • The check after the step looks for those files.

A changelog entry corrects the one from Gerrrt/HomeLab#1726 and records today's apply on the Pi. Nothing on the lab changes.

Why

#1726's §2 said that on a Pi 5, rpi-eeprom-update writes the chip with flashrom while the Pi runs. It merged before that claim could be corrected. On heimdall, at 14:12 today, it logged "SPI device /dev/spidev10.0 not found", staged the files and reported "EEPROM updates pending". The timing in the runbook changes with it. A new release is staged at the first 04:30 boot after the package brings it, and written at the second.

Blast radius

None. Docs only: one runbook section and one changelog entry.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • The apply on heimdall (the operator typed the sudo password in a terminal tab):

    • The drop-in's ExecStart reads /usr/bin/rpi-eeprom-update -a.
    • The service logged "WARNING: SPI device /dev/spidev10.0 not found", "Copying recovery.bin to /boot/firmware for EEPROM update" and "EEPROM updates pending".
    • /boot/firmware now holds pieeprom.upd, pieeprom.sig and recovery.bin, dated 14:12. ls /dev/spidev* finds nothing.
  • The leftovers:

    • The first purge failed on apt-daily's lock: its timer fired at 14:12:58.
    • Re-run with DPkg::Lock::Timeout, it purged rpi-connect-lite and removed libaml1 libfuse2t64 libneatvnc1 libqt5x11extras5 python3-prctl.
    • After that, autoremovable: 0.
  • Afterwards: only 22 and 9100 listen, and systemctl --failed is empty.

  • Checks:

    • python3 scripts/check_docs.py: docs OK.
    • ./scripts/lint.sh: everything that ran passed except ansible-lint, which fails the same way on main (a local uv problem).
    • The Docker-based linters, including markdownlint, were skipped because this Mac has no Docker daemon.
  • make validate passes

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

…ten by flashrom

Applying #1726's §2 on heimdall found no /dev/spidev*, so
rpi-eeprom-update staged pieeprom.upd and recovery.bin for the next boot
instead of writing the chip. The runbook says so now, and a changelog
entry corrects #1726's and records the apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 22:17
@Gerrrt
Gerrrt enabled auto-merge (squash) November 24, 2026 22:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the documentation-only corrections to heimdall’s bootloader update procedure.

No open issues 🎉

What changed in this PR

This documentation-only PR corrects #1726’s description of heimdall’s bootloader updates: updates are staged on the SD card and written to EEPROM at the next boot, rather than written live with flashrom.

Changes:

  • Updates the runbook’s commands, staged-file check, and nightly reboot timing.
  • Adds a changelog correction recording the applied configuration and cleanup results.
File Description
docs/​runbooks/​build-heimdall.md Corrects the bootloader update procedure and explains when staged updates are written.
docs/​changelog.md Records the correction to the earlier entry and the observed results on heimdall.

Review effort: Balanced

@Gerrrt
Gerrrt merged commit 81e6824 into main Nov 24, 2026
10 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/heimdall-bootloader-staged branch November 24, 2026 22:32
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.

2 participants