cannot flash RAK7268v2

Viewed 4

When I try to flash the RAK 7268v2 with latest chripstack OS folling instructons here (https://www.chirpstack.io/docs/chirpstack-gateway-os/install/rak.html) I get:

root@RAK7268V2:/tmp# sysupgrade -n chirpstack-gateway-os-4.11.0-rak7268v2-ramips-mt76x8-rakwireless_rak636-squashfs-sysu
pgrade.bin
Cannot open file '/etc/opkg/keys/2db408a8657f3695' for reading
Image check 'platform_check_image' failed.

Has anyone a suggestion on how to solve this?

1 Answers

What's happening: platform_check_image tries to verify the new image's signature against the public keys stored in /etc/opkg/keys/. The ChirpStack image is signed with key fingerprint 2db408a8657f3695, but your current WisGateOS2 only has these four keys installed (53bad1233d4c98c5, 945f42aeef7125f7, cd6e5980a0d3f397, de98a2dd1d0f8a07). Since the matching public key isn't present, the check can't read it and aborts. This is normal when migrating between two different OpenWrt-based firmwares — they're signed by different parties.
The fix is to force the upgrade, which skips the metadata/signature check, while keeping -n to wipe config:

sysupgrade -F -n /tmp/chirpstack-gateway-os-4.11.0-rak7268v2-ramips-mt76x8-rakwireless_rak636-squashfs-sysupgrade.bin