[OpenWrt-Devel] Sysupgrade possibly broken in recent development snapshots: "message": "Firmware image couldn't be validated"

Petr Štetiar ynezz at true.cz
Mon Dec 30 17:56:31 EST 2019


Petr Novák <petrn at me.com> [2019-12-30 20:43:36]:

Hi,

> I will do my best to reproduce the issue giving more details, I will post
> any more details here tomorrow.

if I may, can you do following for the start:

1. add following change (changing it directly on device right before step 2.
   should be enough):

 diff --git a/package/base-files/files/usr/libexec/validate_firmware_image
 b/package/base-files/files/usr/libexec/validate_firmware_image
 index f85fb9e4b435..aed9cdfd64b5 100755
 --- a/package/base-files/files/usr/libexec/validate_firmware_image
 +++ b/package/base-files/files/usr/libexec/validate_firmware_image
 @@ -62,5 +62,6 @@ json_init
         json_add_boolean valid "$VALID"
         json_add_boolean forceable "$FORCEABLE"
         json_add_boolean allow_backup "$ALLOW_BACKUP"
 +json_dump -i >&2
  json_dump -i
  json_set_namespace $old_ns

2. run:

 $ ubus monitor &
 $ sysupgrade -v openwrt-brcm2708-bcm2711-rpi-4-squashfs-sysupgrade.img.gz

and send the output, thanks!

-- ynezz

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list