mirror of
https://github.com/Ansuel/openwrt.git
synced 2025-12-16 15:01:32 +00:00
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:
parent
978b7a166b
commit
c92a0fd7da
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user