From 1c611f161714ca0bb8d7e56fadc7dd51c8493a83 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Mon, 15 Jul 2019 14:55:31 +0200 Subject: [PATCH] ramips/rt288x,rt3883: fix IMAGE_SIZE for all devices This fixes IMAGE_SIZE for all devices based on the partition size given in DTS: DEVICE *.MK *.DTS VERDICT airlink101_ar670w (4M) 0x3c0000 wrong airlink101_ar725w - 0x3B0000 wrong asus_rt-n15 (4M) 0x3b0000 belkin_f5d8235-v1 7744k 0x7b0000 wrong buffalo_wli-tx4-ag300n (4M) 0x3b0000 buffalo_wzr-agl300nh (4M) 0x3b0000 dlink_dap-1522-a1 3801088 0x3a0000 ralink_v11st-fe (4M) 0x003b0000 asus_rt-n56u - 0x007b0000 default belkin_f9k1109v1 7224k 0x7a0000 wrong dlink_dir-645 - 0x7b0000 default edimax_br-6475nd 7744k 0x00790000 loewe_wmdr-143n - 0x7b0000 default omnima_hpm 16064k 0x00fb0000 samsung_cy-swr1100 - 0x7b0000 default sitecom_wlr-6000 7244k 0x713000 trendnet_tew-691gr - 0x007b0000 default trendnet_tew-692gr - 0x007b0000 default No verdict means that the device is correctly set. Legend: ( ): Value is set via ralink_default_fw_size_xxM [ ]: Value is derived from parent definition - : Value is not set and derived from default definition Signed-off-by: Adrian Schmutzler --- target/linux/ramips/image/rt288x.mk | 5 +++-- target/linux/ramips/image/rt3883.mk | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/target/linux/ramips/image/rt288x.mk b/target/linux/ramips/image/rt288x.mk index 8d7e926286..c1dd4a2db4 100644 --- a/target/linux/ramips/image/rt288x.mk +++ b/target/linux/ramips/image/rt288x.mk @@ -14,7 +14,7 @@ define Device/airlink101_ar670w BLOCKSIZE := 64k DEVICE_VENDOR := Airlink DEVICE_MODEL := AR670W - IMAGE_SIZE := $(ralink_default_fw_size_4M) + IMAGE_SIZE := 3840k KERNEL := $(KERNEL_DTB) | pad-to $$(BLOCKSIZE) IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -25,6 +25,7 @@ TARGET_DEVICES += airlink101_ar670w define Device/airlink101_ar725w MTK_SOC := rt2880 + IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Airlink DEVICE_MODEL := AR725W IMAGES += factory.bin @@ -47,7 +48,7 @@ TARGET_DEVICES += asus_rt-n15 define Device/belkin_f5d8235-v1 MTK_SOC := rt2880 - IMAGE_SIZE := 7744k + IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := Belkin DEVICE_MODEL := F5D8235 DEVICE_VARIANT := V1 diff --git a/target/linux/ramips/image/rt3883.mk b/target/linux/ramips/image/rt3883.mk index d96224e425..b04cb8f071 100644 --- a/target/linux/ramips/image/rt3883.mk +++ b/target/linux/ramips/image/rt3883.mk @@ -23,7 +23,7 @@ define Device/belkin_f9k1109v1 DEVICE_MODEL := F9K1109 DEVICE_VARIANT := Version 1.0 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig - IMAGE_SIZE := 7224k + IMAGE_SIZE := 7808k KERNEL := kernel-bin | append-dtb | lzma -d16 | uImage lzma # Stock firmware checks for this uImage image name during upload. UIMAGE_NAME := N750F9K1103VB -- 2.25.1