aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/mt7622
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-03-04 02:49:38 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-03-04 02:57:19 +0000
commit1d412235a57f3359d1c7bb63bfebce50c56caee6 (patch)
tree2f62856c5dda498879734ff1671c0d7e8b57a3c3 /target/linux/mediatek/mt7622
parent20caa68fec4fe033f72c9d488639f8dd2bcfa02c (diff)
downloadupstream-1d412235a57f3359d1c7bb63bfebce50c56caee6.tar.gz
upstream-1d412235a57f3359d1c7bb63bfebce50c56caee6.tar.bz2
upstream-1d412235a57f3359d1c7bb63bfebce50c56caee6.zip
mediatek: mt7622: check firmware metadata
All mt7622 devices except for the UBI-variant of the mt7622-rfb1 carry metadata appended to the sysupgrade image. Add it for the mt7622-rfb1-ubi as well and check it on sysupgrade to avoid accidentally flashing firmware for the wrong device (or variant or future DEVICE_COMPAT_VERSION). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/mt7622')
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
index 4e45c026ab..87852881bf 100755
--- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@ -1,3 +1,4 @@
+REQUIRE_IMAGE_METADATA=1
RAMFS_COPY_BIN='fw_printenv fw_setenv blockdev'
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'