[From nobody Thu Jun 25 05:55:36 2020
Received: from mr85p00im-ztdg06021701.me.com ([17.58.23.196])
 by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux))
 id 1imEN7-0003Ax-03
 for openwrt-devel@lists.openwrt.org; Tue, 31 Dec 2019 10:03:33 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai;
 t=1577786607; bh=MtltLYm1QzyirQ7qC4JPMS5obVLQwRvIB6+uyKvdeI0=;
 h=Content-Type:Subject:From:Date:Message-Id:To;
 b=KM8lN1kAU7oJj1f1c3UGT9k4NGeQqvYXlf15tAY068PspskWJmEAQ58IjYuZGy58u
 6Jvs4seXfx1TZ9K0PVNy4HRU+gqyQsUlHbg08L5hARntDPxWRrr+5M8HBdUXnx4skk
 HXx3SsLIkvjaz+qOOoCnd9/ERuv/e3tBfo97/CTW29eC2zPTDk3Q87zbwDFXfx3oC4
 aKukG01n9vhno8kHWMdRCMBWPbC2kTrTn9RigWwHKDsdSXgcn4Vrokf7bSXbqrhKx+
 xgdjYG7cA3UtUcs0cVBdIzezZWeZ+tNtSn6mNHqreMMTgxb9Tomiy30+PxTv0d+lIo
 lgwhjan/BRUEg==
Received: from mbp-2.lan (89-24-43-124.nat.epc.tmcz.cz [89.24.43.124])
 by mr85p00im-ztdg06021701.me.com (Postfix) with ESMTPSA id 36598A00C0F;
 Tue, 31 Dec 2019 10:03:25 +0000 (UTC)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\))
Subject: Re: [OpenWrt-Devel] Sysupgrade possibly broken in recent development
 snapshots: &quot;message&quot;: &quot;Firmware image couldn't be validated&quot;
From: =?utf-8?Q?Petr_Nov=C3=A1k?= &lt;petrn@me.com&gt;
In-Reply-To: &lt;20191231095801.GK70184@meh.true.cz&gt;
Date: Tue, 31 Dec 2019 11:03:23 +0100
Cc: Hannu Nyman &lt;hannu.nyman@welho.com&gt;,
 openwrt-devel@lists.openwrt.org
Content-Transfer-Encoding: quoted-printable
Message-Id: &lt;46C7C775-CDBB-4E84-8C7F-A0F949F1F981@me.com&gt;
References: &lt;mailman.21094.1577616584.2486.openwrt-devel@lists.openwrt.org&gt;
 &lt;20191229222123.GH70184@meh.true.cz&gt; &lt;20191230190746.GI70184@meh.true.cz&gt;
 &lt;357266D6-1E26-4066-AFE5-746C2407B0DF@me.com&gt;
 &lt;20191230225631.GJ70184@meh.true.cz&gt;
 &lt;D18390C9-BACD-441C-BC1F-41CD9B01634E@me.com&gt;
 &lt;20191231095801.GK70184@meh.true.cz&gt;
To: =?utf-8?Q?Petr_=C5=A0tetiar?= &lt;ynezz@true.cz&gt;
X-Mailer: Apple Mail (2.3608.40.2.2.4)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2019-12-31_02:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0
 malwarescore=0
 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0
 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1908290000 definitions=main-1912310086
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20191231_020331_843069_97D00001 
X-CRM114-Status: UNSURE (   7.41  )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -0.9 (/)
X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary:
 Content analysis details:   (-0.9 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [17.58.23.196 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (petrn[at]me.com)
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid

sorry, using a pre-loaded image this time:

root@OpenWrt:/tmp# sysupgrade -v =
openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz
Reading partition table from bootdisk...
Reading partition table from image...
{
	&quot;tests&quot;: {
		&quot;fwtool_signature&quot;: true,
		&quot;fwtool_device_match&quot;: true
	},
	&quot;valid&quot;: true,
	&quot;forceable&quot;: true,
	&quot;allow_backup&quot;: true
}
Saving config files...
boot/config.txt
etc/config/dhcp
etc/config/dropbear
etc/config/firewall
etc/config/network
etc/config/system
etc/config/wireless
etc/dropbear/dropbear_rsa_host_key
etc/group
etc/hosts
etc/inittab
etc/opkg/keys/0b26f36ae0f4106d
etc/opkg/keys/1035ac73cc4e59e3
etc/opkg/keys/5151f69420c3f508
etc/opkg/keys/72a57f2191b211e0
etc/opkg/keys/792d9d9b39f180dc
etc/opkg/keys/9ef4694208102c43
etc/opkg/keys/b2d571e0880ff617
etc/opkg/keys/b5043e70f9a75cde
etc/opkg/keys/c10b9afab19ee428
etc/opkg/keys/dace9d4df16896bf
etc/opkg/keys/dd6de0d06bbd3d85
etc/opkg/keys/f94b9dd6febac963
etc/passwd
etc/profile
etc/rc.local
etc/shadow
etc/shells
etc/sysctl.conf
Commencing upgrade. Closing all shell sessions.
-&gt; d4b74aaa #d4b74aaa          hello: {}
&lt;- d4b74aaa #00000000         lookup: {&quot;objpath&quot;:&quot;system&quot;}
-&gt; d4b74aaa #00000000           data: =
{&quot;objpath&quot;:&quot;system&quot;,&quot;objid&quot;:177377387,&quot;objtype&quot;:1024582224,&quot;signature&quot;:{&quot;b=
oard&quot;:{},&quot;info&quot;:{},&quot;reboot&quot;:{},&quot;watchdog&quot;:{&quot;frequency&quot;:5,&quot;timeout&quot;:5,&quot;magi=
cclose&quot;:7,&quot;stop&quot;:7},&quot;signal&quot;:{&quot;pid&quot;:5,&quot;signum&quot;:5},&quot;validate_firmware_image=
&quot;:{&quot;path&quot;:3},&quot;sysupgrade&quot;:{&quot;path&quot;:3,&quot;force&quot;:7,&quot;backup&quot;:3,&quot;prefix&quot;:3,&quot;comma=
nd&quot;:3,&quot;options&quot;:2}}}
-&gt; d4b74aaa #00000000         status: {&quot;status&quot;:0}
&lt;- d4b74aaa #0a92906b         invoke: =
{&quot;objid&quot;:177377387,&quot;method&quot;:&quot;sysupgrade&quot;,&quot;data&quot;:{&quot;prefix&quot;:&quot;/tmp/root&quot;,&quot;pat=
h&quot;:&quot;/tmp/openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz&quot;,&quot;backup&quot;:&quot;=
/tmp/sysupgrade.tgz&quot;,&quot;command&quot;:&quot;/lib/upgrade/do_stage2&quot;,&quot;options&quot;:{&quot;save_p=
artitions&quot;:1}}}
-&gt; 06657534 #d4b74aaa         invoke: =
{&quot;objid&quot;:177377387,&quot;method&quot;:&quot;sysupgrade&quot;,&quot;data&quot;:{&quot;prefix&quot;:&quot;/tmp/root&quot;,&quot;pat=
h&quot;:&quot;/tmp/openwrt-brcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz&quot;,&quot;backup&quot;:&quot;=
/tmp/sysupgrade.tgz&quot;,&quot;command&quot;:&quot;/lib/upgrade/do_stage2&quot;,&quot;options&quot;:{&quot;save_p=
artitions&quot;:1}},&quot;user&quot;:&quot;root&quot;,&quot;group&quot;:&quot;root&quot;}
&lt;- 06657534 #d4b74aaa           data: =
{&quot;objid&quot;:177377387,&quot;data&quot;:{&quot;error&quot;:{&quot;message&quot;:&quot;Firmware image couldn't =
be validated&quot;}}}
{
	&quot;error&quot;: {
		&quot;message&quot;: &quot;Firmware image couldn't be validated&quot;
	}
}
-&gt; d4b74aaa #0a92906b           data: =
{&quot;objid&quot;:177377387,&quot;data&quot;:{&quot;error&quot;:{&quot;message&quot;:&quot;Firmware image couldn't =
be validated&quot;}}}
Command failed: Unknown error
&lt;- 06657534 #d4b74aaa         status: {&quot;status&quot;:9,&quot;objid&quot;:177377387}
-&gt; d4b74aaa #0a92906b         status: {&quot;status&quot;:9,&quot;objid&quot;:177377387}

=E2=80=94 PN

&gt; On 31 Dec 2019, at 10:58, Petr =C5=A0tetiar &lt;ynezz@true.cz&gt; wrote:
&gt;=20
&gt; Petr Nov=C3=A1k &lt;petrn@me.com&gt; [2019-12-31 09:42:53]:
&gt;=20
&gt;&gt; root@OpenWrt:~# sysupgrade -v =
https://downloads.openwrt.org/snapshots/targets/brcm2708/bcm2711/openwrt-b=
rcm2708-bcm2711-rpi-4-ext4-sysupgrade.img.gz
&gt;&gt; wget: SSL support not available, please install one of the =
libustream-.*[ssl|tls] packages as well as the ca-bundle and =
ca-certificates packages.
&gt;=20
&gt; use http:// or install the recommended packages in order to be able to =
use
&gt; https://
&gt;=20
&gt;&gt; Image metadata not found
&gt;&gt; Use sysupgrade -F to override this check when downgrading or flashing =
to vendor firmware
&gt;&gt; Reading partition table from bootdisk...
&gt;&gt; Reading partition table from image...
&gt;&gt; Invalid partition table on /tmp/image.bs
&gt;&gt; Failed to parse message data
&gt;&gt; sh: out of range
&gt;=20
&gt; The download of firmware image has failed, but the sysupgrade process
&gt; continues, so this errors are &quot;expected&quot;, following patch[1] should =
fix some
&gt; of this.
&gt;=20
&gt; 1. https://git.openwrt.org/6dbaf71411e7f16cc1c920b6a63bbe33ef2b8921
&gt;=20
&gt; -- ynezz


]