From ddaed00c4db6bae76cd0e784c4a5554a52fa4dcf Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Tue, 24 Nov 2026 14:17:04 -0800 Subject: [PATCH] docs(heimdall): its bootloader update is staged on the card, not written by flashrom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docs/changelog.md | 20 ++++++++++++++++++++ docs/runbooks/build-heimdall.md | 21 ++++++++++++--------- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 91a11db4..443f69a7 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,26 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-24 +- **`heimdall` runs the new §2 steps, and its bootloader is staged on the + card, not written by `flashrom`.** This corrects the entry "A re-check of + `heimdall` found its bootloader never updates, and nothing watching it", + whose §2 said each boot writes the chip while the Pi runs. Applied at + 14:12 with the operator's password: + - **Updates:** `52heimdall-unattended-upgrades` now also sets + `Remove-Unused-Dependencies "true"`. + - **Bootloader:** with the drop-in, `rpi-eeprom-update -a` found no + `/dev/spidev10.0`, so it could not use `flashrom`. It copied + `pieeprom.upd`, its signature and `recovery.bin` to `/boot/firmware` + and logged "EEPROM updates pending". The next boot's `recovery.bin` + writes the chip, so October 2026's bootloader runs from the next boot. + A later release is staged at the first 04:30 boot after the package + brings it, and written at the second. §2 now says so. + - **Leftovers:** the first try at the purge hit `apt-daily`'s lock, taken + by its timer the same minute. Re-run with a lock timeout, it purged + `rpi-connect-lite` and autoremoved the five VNC libraries. Nothing is + left in dpkg's `rc` state and nothing is autoremovable. + - Afterwards only 22 and 9100 listened and no unit had failed. + - **A re-check of `heimdall` found its bootloader never updates, and nothing watching it.** It was read-only, from the Mac on Hicks, after the 2026-11-23 audit's fixes. All twelve findings held on the Pi: only 22 and diff --git a/docs/runbooks/build-heimdall.md b/docs/runbooks/build-heimdall.md index 536194a1..4a33dc6e 100644 --- a/docs/runbooks/build-heimdall.md +++ b/docs/runbooks/build-heimdall.md @@ -176,26 +176,29 @@ bootloader only when the one on the chip is older than a floor Raspberry Pi sets for critical fixes. Anything newer than that floor stays as it is. On 2026-11-24 the chip held June 2025's bootloader, the package carried October 2026's, and the first boot after the upgrade logged "Skipping automatic -bootloader upgrade". Drop the `-s`, so each boot writes the newest default release when -it is newer than the chip's: +bootloader upgrade". Drop the `-s`, so each boot stages the newest default +release when it is newer than the chip's: ```bash sudo mkdir -p /etc/systemd/system/rpi-eeprom-update.service.d printf '[Service]\nExecStart=\nExecStart=/usr/bin/rpi-eeprom-update -a\n' \ | sudo tee /etc/systemd/system/rpi-eeprom-update.service.d/50-always.conf sudo systemctl daemon-reload -sudo systemctl restart rpi-eeprom-update.service # writes it now +sudo systemctl restart rpi-eeprom-update.service # "EEPROM updates pending" +ls /boot/firmware/pieeprom.upd /boot/firmware/recovery.bin sudo reboot # after the reboot: rpi-eeprom-update | grep -E '^BOOTLOADER|CURRENT' # up to date ``` -On a Pi 5 the service writes the chip with `flashrom` while the Pi runs, and -the new bootloader runs from the next boot. The script verifies what it -wrote. If the write fails, it leaves the update and `recovery.bin` on the -boot partition, and the next boot writes the chip from the card instead. -With the nightly reboot, a release that the package brings in at 06:00 is -written at the next 04:30 boot and runs from the one after. +On `heimdall` the update is staged on the card, not written to the chip +while the Pi runs. The script would use `flashrom`, but Raspberry Pi OS +exposes no `/dev/spidev*` here, so on 2026-11-24 it logged "SPI device +/dev/spidev10.0 not found" and copied `pieeprom.upd`, its signature and +`recovery.bin` to `/boot/firmware`. At the next boot the firmware runs +`recovery.bin`, which writes the chip from those files and boots on. With the +nightly reboot, a release the package brings in at 06:00 is staged at the +next 04:30 boot and written at the one after. ### A journal that survives a reboot