Chirpstack OS v4 swupdate does not work

Hi Community,

  1. I installed the “chirpstack-gateway-os-full-raspberrypi4-20220811112109.rootfs.wic.gz” with success.

2.Trying to “software-update” using the
“chirpstack-gateway-os-full-update-raspberrypi4-20220811112109.swu”

and I am getting the follow:

[INFO ] : SWUPDATE started : Software Update started !
[ERROR] : SWUPDATE failed [0] ERROR : Configuration file /etc/fw_env.config wrong or corrupted
[ERROR] : SWUPDATE failed [0] ERROR : Configuration file /etc/fw_env.config wrong or corrupted
[INFO ] : SWUPDATE running : Installation in progress
[ERROR] : SWUPDATE failed [0] ERROR : Configuration file /etc/fw_env.config wrong or corrupted
[ERROR] : SWUPDATE failed [0] ERROR : Bootloader-specific error -22 updating its environment
[ERROR] : SWUPDATE failed [0] ERROR : Configuration file /etc/fw_env.config wrong or corrupted
[ERROR] : SWUPDATE failed [0] ERROR : Configuration file /etc/fw_env.config wrong or corrupted
[ERROR] : SWUPDATE failed [1] Installation failed !
[INFO ] : No SWUPDATE running : Waiting for requests…

Any ideas ?

Could you please open a GitHub issue here: Issues · chirpstack/chirpstack-gateway-os · GitHub ? Thanks!

I have found the issue. These is a config file missing. As a workaround, you could execute the following:

sudo echo "/boot/uboot.env         0x0000          0x4000" > /etc/fw_env.config

The next version will contain this configuration file :slight_smile: (Add missing fw_env.config file. · chirpstack/chirpstack-gateway-os@c58638a · GitHub)

Thanks Brocaar, you are doing excellent job.