From: Adrian Schmutzler Date: Mon, 15 Jul 2019 12:55:28 +0000 (+0200) Subject: ramips/mt76x8: fix IMAGE_SIZE for all devices X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=439435f59bb0f30ac90563ef357057abc8643c57;p=openwrt%2Fstaging%2Fblogic.git ramips/mt76x8: 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 alfa-network_awusfree1 (8M) 0x7b0000 buffalo_wcr-1166ds - 0x7c0000 wrong cudy_wr1000 (8M) 0x7b0000 d-team_pbr-d1 (16M) 0x0fb0000 duzun_dm06 - 0x7b0000 default glinet_gl-mt300n-v2 16064k 0xfb0000 glinet_vixmini 7872k 0x7b0000 hilink_hlk-7628n (32M) 0x1fb0000 hiwifi_hc5661a (16M) 0xf70000 wrong hiwifi_hc5861b 15808k 0xf70000 mediatek_linkit-smart-7688 (32M) 0x1fb0000 mediatek_mt7628an-eval-board (4M) 0x7b0000 wrong mercury_mac1200r-v2 - 0x7c0000 wrong netgear_r6120 15744k 0xf60000 onion_omega2 (16M) 0xfb0000 onion_omega2p (32M) 0x1fb0000 rakwireless_rak633 - 0x7b0000 default skylab_skw92a 16064k 0xfb0000 tama_w06 15040k 0xeb0000 totolink_lr1200 7872k 0x7b0000 tplink_archer-c20-v4 7808k 0x7a0000 tplink_archer-c50-v3 7808k 0x7a0000 tplink_archer-c50-v4 7616k 0x770000 tplink_tl-mr3020-v3 7808k 0x7a0000 tplink_tl-mr3420-v5 7808k 0x7a0000 tplink_tl-wa801nd-v5 7808k 0x7a0000 tplink_tl-wr802n-v4 7808k 0x7a0000 tplink_tl-wr840n-v4 7808k 0x7a0000 tplink_tl-wr840n-v5 3904k 0x3d0000 tplink_tl-wr841n-v13 7808k 0x7a0000 tplink_tl-wr841n-v14 3968k 0x3e0000 tplink_tl-wr842n-v5 7808k 0x7a0000 tplink_tl-wr902ac-v3 7808k 0x7a0000 unielec_u7628-01-128m-16m 16064k 0xfb0000 vocore_vocore2 (16M) 0xfb0000 vocore_vocore2-lite (16M) 0x7b0000 wrong wavlink_wl-wn570ha1 (8M) 0x7b0000 wavlink_wl-wn575a3 (8M) 0x7b0000 widora_neo-16m (16M) 0x0fb0000 widora_neo-32m (32M) 0x1fb0000 wiznet_wizfi630s (32M) 0x1fb0000 wrtnode_wrtnode2p (16M) 0x1fb0000 wrong wrtnode_wrtnode2r (16M) 0x1fb0000 wrong xiaomi_mir4a-100m 14976k 0xea0000 xiaomi_miwifi-nano (16M) 0xfb0000 zbtlink_zbt-we1226 (8M) 0x7b0000 zyxel_keenetic-extra-ii 14912k 0xe90000 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 --- diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index 4382bef7fc86..8bcd96cc71d8 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -13,6 +13,7 @@ TARGET_DEVICES += alfa-network_awusfree1 define Device/buffalo_wcr-1166ds MTK_SOC := mt7628an + IMAGE_SIZE := 7936k BUFFALO_TAG_PLATFORM := MTK BUFFALO_TAG_VERSION := 9.99 BUFFALO_TAG_MINOR := 9.99 @@ -93,7 +94,7 @@ TARGET_DEVICES += hilink_hlk-7628n define Device/hiwifi_hc5661a MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15808k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5661A SUPPORTED_DEVICES += hc5661a @@ -122,7 +123,7 @@ TARGET_DEVICES += mediatek_linkit-smart-7688 define Device/mediatek_mt7628an-eval-board MTK_SOC := mt7628an BLOCKSIZE := 64k - IMAGE_SIZE := $(ralink_default_fw_size_4M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := MediaTek DEVICE_MODEL := MT7628 EVB DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport @@ -132,6 +133,7 @@ TARGET_DEVICES += mediatek_mt7628an-eval-board define Device/mercury_mac1200r-v2 MTK_SOC := mt7628an + IMAGE_SIZE := 7936k DEVICE_VENDOR := Mercury DEVICE_MODEL := MAC1200R DEVICE_VARIANT := v2.0 @@ -444,7 +446,7 @@ TARGET_DEVICES += vocore_vocore2 define Device/vocore_vocore2-lite MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore2-Lite DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \ @@ -503,7 +505,7 @@ TARGET_DEVICES += wiznet_wizfi630s define Device/wrtnode_wrtnode2p MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2P DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport @@ -513,7 +515,7 @@ TARGET_DEVICES += wrtnode_wrtnode2p define Device/wrtnode_wrtnode2r MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2R DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci