mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-02 04:14:16 +00:00
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>
This commit is contained in:
parent
20caa68fec
commit
1d412235a5
target/linux/mediatek
@ -129,7 +129,7 @@ define Device/mediatek_mt7622-rfb1-ubi
|
|||||||
IMAGES += factory.bin
|
IMAGES += factory.bin
|
||||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
||||||
check-size $$$$(IMAGE_SIZE)
|
check-size $$$$(IMAGE_SIZE)
|
||||||
IMAGE/sysupgrade.bin := sysupgrade-tar
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||||
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += mediatek_mt7622-rfb1-ubi
|
TARGET_DEVICES += mediatek_mt7622-rfb1-ubi
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
REQUIRE_IMAGE_METADATA=1
|
||||||
RAMFS_COPY_BIN='fw_printenv fw_setenv blockdev'
|
RAMFS_COPY_BIN='fw_printenv fw_setenv blockdev'
|
||||||
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user