ipq807x: set compat version flag for Xiaomi AX3600 and Redmi AX6

Set compat flag for Xiaomi AX3600 and Redmi AX6 to prevent
user from bricking the router with sysupgrade.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi 2022-05-21 21:54:07 +02:00
parent 978b7a166b
commit c92a0fd7da
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -1,3 +1,10 @@
define Device/partition-layout-migration
DEVICE_COMPAT_VERSION := 2.0
DEVICE_COMPAT_MESSAGE := *** Partition layout has changed from earlier \
versions. You need to reinstall the firmware from UART. Settings \
will be lost. ***
endef
define Device/FitImage
KERNEL_SUFFIX := -fit-uImage.itb
KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
@ -103,6 +110,7 @@ TARGET_DEVICES += redmi_ax6
define Device/xiaomi_ax3600
$(call Device/FitImageUbinize)
$(call Device/UbiFitSplit)
$(call Device/partition-layout-migration)
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := AX3600
KERNEL_SIZE := 34816k