Unable to upgrade RasberryPi 4 OS or debug rollback

Upgrading OS fails causing a rollback. Device is upgrade through Balena Dashboard. Current device OS version is 6.4.3 with supervisor 17.0.2. Upgrading to any later version fails causing a rollback.

Device is not running any meaningful application code; a single service runs sleep infinity.

Diagnostics reports failed check_os_rollback check.

How can rollbacks and OS upgrade failures be debugged?

Note that persistent logs are disabled and no logs are sent to Balena dashboard.

The device in question, 684af374cd3d5b1af8067f9834c218c7, now has support access enabled.

Please advice.

Hello, you can view the details about debugging the host OS update process here: Update process details | balena
Basically, you can inspect the update logs located here: /mnt/data/balenahup/
Let us know if you are able to find the issue or if you need further assistance.

Thanks, I’ll have a look and report back if I am unable to make progress.

I can’t find anything to guide me to a solution in those logs.

There seems to be some errors and warnings, but I’ve no idea what would be the next step to resolve this.

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
...
/usr/libexec/pieeprom-update.sh: line 34: echo: write error: Invalid argument
...
linux_spi_init: failed to open /dev/spidev0.0: No such file or directory
Error: Programmer initialization failed.

Would you be able to provide more assistance? The device still has support access enabled and it’s open for experimentation if needed - it’s not used in any production context.

[upgrade-2.x.sh][000000000][INFO]================upgrade-2.x.sh HEADER START====================
Thu Apr 17 17:11:24 UTC 2025
[upgrade-2.x.sh][000000000][INFO]Raw target version: 6.5.17+rev1
[upgrade-2.x.sh][000000000][INFO]Target version supports hostapps, no device type support check required.
[upgrade-2.x.sh][000000001][INFO]Target OS version "6.5.17+rev1" OK.
[upgrade-2.x.sh][000000001][INFO]Host OS version "6.4.3" OK.
[upgrade-2.x.sh][000000001][INFO]Attempting host OS update using deltas
[upgrade-2.x.sh][000000004][INFO]Found delta image: registry2.balena-cloud.com/v2/e254fd89f82d795d55c71dd084315678:delta-5cb16bc0752b19ff, size: 45 MB
[upgrade-2.x.sh][000000004][INFO]No resin-device-progress fix is required...
[upgrade-2.x.sh][000000004][INFO]No supervisor updater fix is required...
[upgrade-2.x.sh][000000004][INFO]hostapp-update command exists, use that for update
[upgrade-2.x.sh][000000006][INFO]Running pre-update fixes for raspberrypi4-64
[upgrade-2.x.sh][000000006][INFO]Removing start_db.elf from boot partition
[upgrade-2.x.sh][000000006][INFO]Removing fixup_db.dat from boot partition
[upgrade-2.x.sh][000000007][INFO]Calling hostapp-update for registry2.balena-cloud.com/v2/e254fd89f82d795d55c71dd084315678:delta-5cb16bc0752b19ff
[hostapp-update][INFO] Running hostapp update...
[hostapp-update][INFO] 42bf5af88657
[hostapp-update][INFO] Untagged: registry2.balena-cloud.com/v2/2c95421473115d778fb80f867bd3f8e0:delta-82e4194dc20e82bc
Untagged: registry2.balena-cloud.com/v2/2c95421473115d778fb80f867bd3f8e0@sha256:11a5c08765dd9a90f988418706d83df33c2de013a39cf3c176c12bbf4d54b4ee
Deleted: sha256:02aa2afb398208e67deb06568020340781658d7667747a57525fdfa92e8d0eae
Deleted: sha256:f89a0655dec048c2cc98418e83b51d3b25e4dd83555e1e6b0520e49830c65d1b
[hostapp-update][INFO] delta-5cb16bc0752b19ff: Pulling from v2/e254fd89f82d795d55c71dd084315678
9683a31db78a: Pulling fs layer
9683a31db78a: Ready to download
9683a31db78a: Pull complete
Digest: sha256:de4730c7ce81e4779eb1139ed958b6eee3d900e5167a08b326f515fe551a3cb3
Status: Downloaded newer image for registry2.balena-cloud.com/v2/e254fd89f82d795d55c71dd084315678:delta-5cb16bc0752b19ff
registry2.balena-cloud.com/v2/e254fd89f82d795d55c71dd084315678:delta-5cb16bc0752b19ff
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[hostapp-update][INFO] Before hooks (old os) ran successfully
[hostapp-update][INFO] WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[1-bootfiles][INFO] Boot partition can accomodate the new update.
[1-bootfiles][INFO] Updated timestamps for all files in /mnt/boot
[1-bootfiles][INFO] Deploying /mnt/boot/fixup4x.dat
[1-bootfiles][INFO] Deploying /mnt/boot/config.json
[1-bootfiles][INFO] /mnt/boot/config.json blacklisted. Ignoring.
[1-bootfiles][INFO] Deploying /mnt/boot/image-version-info
[1-bootfiles][INFO] Deploying /mnt/boot/start4cd.elf
[1-bootfiles][INFO] Deploying /mnt/boot/kernel8.img
[1-bootfiles][INFO] Deploying /mnt/boot/bcm2711-rpi-4-b.dtb
[1-bootfiles][INFO] Deploying /mnt/boot/start4.elf
[1-bootfiles][INFO] Deploying /mnt/boot/device-type.json
[1-bootfiles][INFO] Deploying /mnt/boot/extra_uEnv.txt
[1-bootfiles][INFO] /mnt/boot/extra_uEnv.txt blacklisted. Ignoring.
[1-bootfiles][INFO] Deploying /mnt/boot/bcm2711-rpi-400.dtb
[1-bootfiles][INFO] Deploying /mnt/boot/start4x.elf
[1-bootfiles][INFO] Deploying /mnt/boot/bcm2711-rpi-cm4.dtb
[1-bootfiles][INFO] Deploying /mnt/boot/boot.scr
[1-bootfiles][INFO] Deploying /mnt/boot/config.txt
[1-bootfiles][INFO] /mnt/boot/config.txt blacklisted. Ignoring.
[1-bootfiles][INFO] Deploying /mnt/boot/fixup4cd.dat
[1-bootfiles][INFO] Deploying /mnt/boot/fixup4.dat
[1-bootfiles][INFO] Deploying /mnt/boot/splash/balena-logo.png
[1-bootfiles][INFO] /mnt/boot/splash/balena-logo.png blacklisted. Ignoring.
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-kippah-7inch.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pineboards-hatdrive-poe-plus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2s-master-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c1.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audioinjector-isolated-soundcard.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi6-1cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/camera-mux-2port.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hyperpixel4-pi3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi0-1cs-inverted.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx500.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi5-2cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/enc28j60.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pitft28-capacitive.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dacplusdsp.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sc16is752-spi0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sc16is750-i2c.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ssd1331-spi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/max98357a.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi-gpio40-45.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/cma.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pibell.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx219.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-tv.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-adc8x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-fkms-v3d-pi4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ov5647.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ads1115.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pimidi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-digiampplus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp342x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/allo-piano-dac-pcm512x-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/udrc.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/disable-wifi-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx415.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pwm.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/waveshare-can-fd-hat-mode-a.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi5-1cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rotary-encoder.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/allo-katana-dac-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pisound-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart0-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hd44780-i2c-lcd.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vl805.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pifi-dac-hd.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audioinjector-addons.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/disable-emmc2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/w1-gpio-pullup.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ilitek251x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dpi18cpadhi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/media-center.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart1.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/maxtherm.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-vga666.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/tc358743-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/enc28j60-spi2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/w1-gpio-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-no-bank0-irq.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/allo-digione.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-codeczero.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ov7251.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi3-1cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp23s17.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dacplusadcpro.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dac8x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/fbtft.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pwm-ir-tx.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dwc2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/balena-fin.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sunfounder-pipower3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ssd1306.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart3-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/papirus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi3-2cs-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pineboards-hat-ai.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c2-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart0-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp2515.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-ili9881-5inch.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-led.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i-sabre-q2m.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi1-1cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/interludeaudio-digital.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ads7846.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hy28b-2017.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pifi-40.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sx150x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi4-2cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi2-3cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/crystalfontz-cfa050_pi_m.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dionaudio-loco-v2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c1-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ezsound-6x8iso.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-v3d.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/w1-gpio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sdhost.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/arducam-64mp.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2s-gpio28-31.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mbed-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi4-1cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ltc294x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi-gpio35-39.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/anyspi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi2-2cs-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/smi-nand.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-lt070me05000.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp3008.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx327.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dpi18.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ghost-amp.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-no-irq.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-mux.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx378.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ssd1306-spi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/qca7000-uart0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp2515-can0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dacplus-pro.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/wifimac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-sensor.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-rtc-gpio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sc16is750-spi0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/irs1125.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/disable-wifi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/superaudioboard.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart4-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dht11.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-backlight.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pitft35-resistive.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audioinjector-bare-i2s.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hyperpixel4-square-pi4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/act-led.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hy28a.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/upstream.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi-rtc.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dpi-generic.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pciex1-compat-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-waveshare-800x480.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi2-1cs-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-adc.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-v3d-pi4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dpi-hyperpixel2r.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sunfounder-pironman5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/allo-boss2-dac-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/cirrus-wm5102.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-sense-v2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vga666.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rra-digidac1-wm8741-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi1-3cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/upstream-pi4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/adau7002-simple.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c6.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-v3d-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/camera-mux-4port.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ugreen-dabboard.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/bcm2712d0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pwm-pio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/seeed-can-fd-hat-v2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-gpio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audiosense-pi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dwc-otg.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dionaudio-kiwi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/edt-ft5406.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/2xmcp2517fd.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sc16is752-i2c.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gc9a01.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-digi-pro.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mipi-dbi-spi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/justboom-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/qca7000.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audremap.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sainsmart18.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hdmi-backlight-hwhack-gpio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dpi-panel.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/adau1977-adc.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rootmaster.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp23017.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart1-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-fan.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pifi-dac-zero.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/iqaudio-dacplus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-amp3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-lt070me05000-v2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dacplus-std.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/piscreen.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/wm8960-soundcard.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart4-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/akkordion-iqdacplus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/watterott-display.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ws2812-pio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-ili9881-7inch.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/draws.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-digi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/chipcap2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/piscreen2r.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx500-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/cap1106.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pwm-gpio-fan.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/smi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/justboom-both.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx290.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi0-1cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ssd1351-spi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/cutiepi-panel.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-amp4pro.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/minipitft13.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp251xfd.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/arducam-pivariety.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pcf857x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hyperpixel4-pi4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi2-2cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/justboom-digi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pifi-mini-210.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-ir.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/allo-boss-dac-pcm512x-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/exc3000.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/wittypi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pitft28-resistive.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pisound.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ov9281.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi3-1cs-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dacplushd.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/googlevoicehat-soundcard.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/miniuart-bt.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/iqaudio-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/overlay_map.dtb
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart2-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-fan.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi5-1cs-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sh1106-spi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sdio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pitft22.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx296.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/reComputer-R100x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-amp100.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-sense.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pwm1.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pisound-micro.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/si446x-spi0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/highperi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/piglow.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/adafruit-st7735r.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c3-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/adv728x-m.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi6-2cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-fkms-v3d.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-7inch.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mlx90640.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audioinjector-ultra.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/smi-dev.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-shutdown.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/waveshare-can-fd-hat-mode-b.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-poe-plus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx519.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-ir-tx.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dacberry400.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/adafruit18.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi5-2cs-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart2.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart1-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/w1-gpio-pullup-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/npe-x500-m3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-dacplus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-poweroff.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp3202.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/tinylcd35.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/iqaudio-codec.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/iqs550.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ov2311.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-dacpro.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-amp.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-bcm2708.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/disable-bt.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/cm-swap-i2c0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/iqaudio-digi-wm8804-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mcp2515-can1.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dpi-hyperpixel4sq.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dionaudio-loco.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-generic.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx258.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c0-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/dpi24.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mz61581.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/disable-bt-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart3-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/fsm-demo.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dacplus.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-charger.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sc16is752-spi1-rpiplc-v4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/proto-codec.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ov64a40.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/mmc.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pcie-32bit-dma.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-fw-uart.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pca953x.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pcie-32bit-dma-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/jedec-spi-nor.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/tpm-slb9670.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/merus-amp.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/chipdip-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/adv7282m.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/tc358743.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pps-gpio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-ft5406.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hy28b.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart1.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/waveshare-sim7600.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/tpm-slb9673.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ssd1327-spi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-rtc.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pifacedigital.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi3-2cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sdio-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/uart2-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi0-2cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi2-1cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/at86rf233.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/interludeaudio-analog.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ramoops.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-hog.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dsi-waveshare-panel.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/apds9960.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/seeed-can-fd-hat-v1.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pwm-2chan.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ramoops-pi4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audremap-pi5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/fe-pi-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/sc16is752-spi1.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx462.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/goodix.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hifiberry-dacplusadc.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/rpi-poe.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/gpio-key.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/allo-piano-dac-plus-pcm512x-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx708.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/tpm-slb9670-tis-spi.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2s-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/imx477.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/ads1015.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/i2c-pwm-pca9685a.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hd44780-lcd.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/applepi-dac.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart5.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/pwm-gpio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi1-2cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/audioinjector-wm8731-audio.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/w5500.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/midi-uart0.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/vc4-kms-dpi-hyperpixel4.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/hyperpixel4-square-pi3.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/overlays/spi0-0cs.dtbo
[1-bootfiles][INFO] Deploying /mnt/boot/cmdline.txt
[1-bootfiles][INFO] Deploying /mnt/boot/system-connections/README.ignore
[1-bootfiles][INFO] Deploying /mnt/boot/system-connections/balena-sample.ignore
[1-bootfiles][INFO] Deploying /mnt/boot/system-proxy/README.ignore
[1-bootfiles][INFO] Deploying /mnt/boot/system-proxy/redsocks.conf.ignore
[1-bootfiles][INFO] Deploying /mnt/boot/rpi-bootfiles-20241126.stamp
[1-bootfiles][INFO] Deploying /mnt/boot/os-release
[1-bootfiles][INFO] Deploying /mnt/boot/pieeprom-latest-stable.bin
[1-bootfiles][INFO] Deploying /mnt/boot/balena-image
[1-bootfiles][INFO] Deploying /mnt/boot/vl805-latest-stable.bin
[1-bootfiles][INFO] Generating fingerprint file for /mnt/boot
[80-rollback][INFO] Running rollback hook
[98-pieeprom][INFO] Updating SPI EEPROM firmware
/usr/libexec/pieeprom-update.sh: line 34: echo: write error: Invalid argument
flashrom v1.2 on Linux 6.1.77-v8 (aarch64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
linux_spi_init: failed to open /dev/spidev0.0: No such file or directory
Error: Programmer initialization failed.
[98-pieeprom][ERROR] Failed to update SPI EEPROM firmware
[99-resin-uboot][INFO] Switching uboot root partition index to 2...
[99-resin-uboot][INFO] Done.
[hostapp-update][INFO] New/Forward hooks (new os container) ran successfully.
[hostapp-update][INFO] After hooks (old os) ran successfully
[hostapp-update][INFO] Finished running hostapp update
[upgrade-2.x.sh][000000095][INFO]No device-specific pre-update fix for raspberrypi4-64
[upgrade-2.x.sh][000000095][INFO]Supervisor update start...
[upgrade-2.x.sh][000000095][INFO]No explicit supervisor version was provided, update to default version in target balenaOS...
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[upgrade-2.x.sh][000000097][INFO]Extracted default version is v17.0.2...
[upgrade-2.x.sh][000000098][INFO]Supervisor state: Target 17.0.2, current 17.0.2, scheduled 17.0.2
[upgrade-2.x.sh][000000098][INFO]Supervisor update: no update needed.
[upgrade-2.x.sh][000000098][INFO]No update package cleanup done
[upgrade-2.x.sh][000000098][INFO]Rebooting into new OS in 5 seconds...
[upgrade-2.x.sh][000000099][INFO]Lock removed - end.
[safe_reboot][INFO] Safe reboot requested, checking for user service locks...
[safe_reboot][INFO] Checking all user services for present locks...
[safe_reboot][INFO] No user service lock exists.
[safe_reboot][INFO] Rebooting now...

Thanks for enabling support access. We’ll take a look and/or try to reproduce and follow up here.

I was able to successfully upgrade a Pi 4 from balenaOS 6.4.3 to 6.5.17+rev1, however that was with the Supervisor version that came with 6.4.3 which is Supervisor v.16.12.7.
If I upgraded the Supervisor to 17.0.2 and then tried to upgrade the OS, I had the same failed update as you experienced. Did you update the Supervisor separately before attempting the host update to 6.5.17+rev1? Either way, we’ll need to look into why that scenario does not seem to work as expected.