From 5b50895a631018e7b0688b9634a486d45338465e Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sun, 14 Jun 2020 13:09:14 +0200 Subject: [PATCH] ipq40xx: add image size checks for several devices This adds image size checks for various devies using an automatic mtdsplit. Signed-off-by: David Bauer --- target/linux/ipq40xx/image/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile index 7ca26ba5171..51849e06f67 100644 --- a/target/linux/ipq40xx/image/Makefile +++ b/target/linux/ipq40xx/image/Makefile @@ -48,7 +48,8 @@ define Device/DniImage NETGEAR_HW_ID := IMAGES := factory.img sysupgrade.bin IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni - IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | append-metadata + IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | \ + append-rootfs | pad-rootfs | append-metadata | check-size endef define Build/append-rootfshdr @@ -215,7 +216,7 @@ define Device/avm_fritzbox-4040 UBOOT_PARTITION_SIZE := 524288 IMAGES = eva.bin sysupgrade.bin IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs - IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata + IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size DEVICE_PACKAGES := fritz-tffs fritz-caldata endef TARGET_DEVICES += avm_fritzbox-4040 @@ -527,6 +528,7 @@ define Device/netgear_ex61x0v2 DEVICE_DTS_CONFIG := config@4 NETGEAR_BOARD_ID := EX6150v2series NETGEAR_HW_ID := 29765285+16+0+128+2x2 + IMAGE_SIZE := 14400k SOC := qcom-ipq4018 endef @@ -681,8 +683,9 @@ define Device/zyxel_wre6606 DEVICE_MODEL := WRE6606 DEVICE_DTS_CONFIG := config@4 SOC := qcom-ipq4018 + IMAGE_SIZE := 13184k IMAGES := sysupgrade.bin - IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata + IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers endef TARGET_DEVICES += zyxel_wre6606 -- 2.30.2