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

Petr Štetiar ynezz at true.cz
Wed Jan 1 15:08:25 EST 2020


Petr Novák <petrn at me.com> [2020-01-01 18:13:06]:

> 5c6df2def2a1d26313b45cb40e2268a08c59f00 - FAILS
> 465676c8b12618ec99122d0cc1217994de884284 - WORKS
> 5bd12760e8fce026fd2a82d56f7b3c8dff27e096 - WORKS
> 8e195b325a86b4dc99ee5a9ee0b637cf266f9a0a - WORKS

Nice, thanks a lot for your help.

> The procd after forking the validate_firmware_image process does this in the
> parent (1) process (using strace):
> 
> clone(child_stack=NULL, flags=SIGCHLD)  = 1303
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> close(10)                               = 0
> read(9, 0x7fff5d1420, 64)               = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
> --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1372, si_uid=0, si_status=1, si_utime=1, si_stime=0} —
> write(6, "w", 1)                        = 1
> rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
> close(9)

Yep, but this EINTR leads to the "Failed to parse JSON: 4" which was missing
in your logs, so I was confused. Then I saw `Connection to 172.30.31.233
closed by remote host.` in one of your latest logs and I've realized, that
you're not able to see those messages actually as those are only visible on
the serial console...

-- 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