Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 12 additions & 9 deletions docs/runbooks/build-heimdall.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down