failing to add sysupgrade

Pasted by karlp on Mon Feb 6 14:34:57 2023 UTC as Text only
/home/karlp/src/smartgate_firmware/owrt-master/staging_dir/host/bin/padjffs2 /home/karlp/src/smartgate_firmware/owrt-master/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-snapshot-r21989+13-5155200f97-sunxi-cortexa7-etactica-egm400-squashfs-sysupgrade.bin  4 8 16 64 128 256
padding image to 02141000
padding image to 02142000
padding image to 02144000
padding image to 02150000
padding image to 02160000
padding image to 02180000
bash: line 1: 8: Bad file descriptor
echo '{  "metadata_version": "1.1", "compat_version": "1.0",   "supported_devices":["etactica-egm400"], "version": { "dist": "OpenWrt", "version": "SNAPSHOT", "revision": "r21989+13-5155200f97", "target": "sunxi/cortexa7", "board": "etactica-egm400" } }' | fwtool -I - /home/karlp/src/smartgate_firmware/owrt-master/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-snapshot-r21989+13-5155200f97-sunxi-cortexa7-etactica-egm400-squashfs-sysupgrade.bin
Failed to open firmware file