From: Adrian Schmutzler Date: Mon, 15 Jul 2019 12:55:34 +0000 (+0200) Subject: ramips/rt305x: fix IMAGE_SIZE for all devices X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=24ded1810b071ec7e7c8d134e5491d9649c13dac;p=openwrt%2Fstaging%2Fblocktrron.git ramips/rt305x: 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 7links_px-4885-4m (4M) 0x3b0000 7links_px-4885-8m - 0x7b0000 default 8devices_carambola - 0x7b0000 default accton_wr6202 - 0x7b0000 default airlive_air3gii (4M) 0x3b0000 alfa-network_w502u - 0x7b0000 default allnet_all0256n-4m (4M) 0x3b0000 allnet_all0256n-8m - 0x7b0000 default allnet_all5002 32448k 0x1fb0000 allnet_all5003 32448k 0x1fb0000 alphanetworks_asl26555-16m 15872k 0xf80000 alphanetworks_asl26555-8m 7744k 0x790000 arcwireless_freestation5 - 0x7b0000 default argus_atp-52b 7808k 0x7a0000 asiarf_awapn2403 (4M) 0x3b0000 asiarf_awm002-evb-4m (4M) 0x3b0000 asiarf_awm002-evb-8m - 0x7b0000 default asus_rt-g32-b1 (4M) 0x3b0000 asus_rt-n10-plus (4M) 0x3b0000 asus_rt-n13u - 0x7b0000 default asus_wl-330n (4M) 0x3b0000 asus_wl-330n3g (4M) 0x3b0000 aximcom_mr-102n - 0x790000 wrong aztech_hw550-3g - 0x7b0000 default belkin_f5d8235-v2 7744k 0x790000 belkin_f7c027 7616k 0x770000 buffalo_whr-g300n 3801088 0x3a0000 dlink_dap-1350 7488k 0x750000 dlink_dcs-930 (4M) 0x3b0000 dlink_dcs-930l-b1 (4M) 0x3b0000 dlink_dir-300-b1 (4M) 0x3b0000 dlink_dir-300-b7 (4M) 0x7b0000 wrong dlink_dir-320-b1 - 0x7b0000 default dlink_dir-600-b1 (4M) 0x3b0000 dlink_dir-610-a1 (4M) 0x3b0000 dlink_dir-615-d (4M) 0x3b0000 dlink_dir-615-h1 (4M) 0x3b0000 dlink_dir-620-a1 - 0x7b0000 default dlink_dir-620-d1 - 0x7b0000 default dlink_dwr-512-b 7800k 0x7e0000 wrong easyacc_wizard-8800 - 0x7b0000 default edimax_3g-6200n 3648k 0x390000 edimax_3g-6200nl 3648k 0x390000 engenius_esr-9753 (4M) 0x3b0000 fon_fonera-20n - 0x7b0000 default hame_mpr-a1 (4M) 0x3b0000 hame_mpr-a2 - 0x7b0000 default hauppauge_broadway 7744k 0x790000 hilink_hlk-rm04 - 0x3b0000 wrong hootoo_ht-tm02 - 0x7b0000 default huawei_d105 (4M) 0x3b0000 huawei_hg255d 15744k 0xf60000 intenso_memory2move - 0x7b0000 default jcg_jhr-n805r (4M) 0x3b0000 jcg_jhr-n825r (4M) 0x3b0000 jcg_jhr-n926r (4M) 0x3b0000 mofinetwork_mofi3500-3gn - 0x7b0000 default netcore_nw718 3712k 0x3a0000 netgear_wnce2001 (4M) 0x350000 wrong nexaira_bc2 - 0x7b0000 default nexx_wt1520-4m (4M) 0x3b0000 nexx_wt1520-8m - 0x7b0000 default nixcore_x1-16m 16064k 0xfb0000 nixcore_x1-8m 7872k 0x7b0000 olimex_rt5350f-olinuxino - 0x7b0000 default olimex_rt5350f-olinuxino-evb - 0x7b0000 default omnima_miniembplug - 0x7b0000 default omnima_miniembwifi - 0x7b0000 default petatel_psr-680w (4M) 0x3b0000 planex_mzk-dp150n (4M) 0x3b0000 planex_mzk-w300nh2 3648k 0x390000 planex_mzk-wdpr - 0x680000 wrong poray_ip2202 - 0x7b0000 default poray_m3 (4M) 0x3b0000 poray_m4-4m (4M) 0x3b0000 poray_m4-8m - 0x7b0000 default poray_x5 - 0x7b0000 default poray_x8 - 0x7b0000 default prolink_pwh2004 - 0x7b0000 default ralink_v22rw-2x2 (4M) 0x3b0000 sitecom_wl-351 (4M) 0x3b0000 skyline_sl-r7205 (4M) 0x3b0000 sparklan_wcr-150gn (4M) 0x3b0000 teltonika_rut5xx - 0xfb0000 wrong tenda_3g150b (4M) 0x3b0000 tenda_3g300m (4M) 0x3b0000 tenda_w150m (4M) 0x3b0000 tenda_w306r-v2 (4M) 0x3b0000 trendnet_tew-638apb-v2 (4M) 0x3b0000 trendnet_tew-714tru - 0x7b0000 default unbranded_a5-v11 (4M) 0x3b0000 unbranded_wr512-3gn-4m (4M) 0x3b0000 unbranded_wr512-3gn-8m - 0x7b0000 default unbranded_xdx-rn502j (4M) 0x3b0000 upvel_ur-326n4g (4M) 0x3b0000 upvel_ur-336un - 0x7b0000 default vocore_vocore-16m 16064k 0xfb0000 vocore_vocore-8m 7872k 0x7b0000 wansview_ncs601w - 0x7b0000 default wiznet_wizfi630a (16M) 0xfb0000 zorlik_zl5900v2 - 0x7b0000 default zyxel_keenetic (4M) 0x3b0000 zyxel_keenetic-start (4M) 0x3b0000 zyxel_nbg-419n (4M) 0x3b0000 zyxel_nbg-419n-v2 (8M) 0x7b0000 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/rt305x.mk b/target/linux/ramips/image/rt305x.mk index 073f505d49..a9366ba4c8 100644 --- a/target/linux/ramips/image/rt305x.mk +++ b/target/linux/ramips/image/rt305x.mk @@ -247,6 +247,7 @@ TARGET_DEVICES += asus_wl-330n3g define Device/aximcom_mr-102n MTK_SOC := rt3052 + IMAGE_SIZE := 7744k DEVICE_VENDOR := AXIMCom DEVICE_MODEL := MR-102N SUPPORTED_DEVICES += mr-102n @@ -347,7 +348,7 @@ TARGET_DEVICES += dlink_dir-300-b1 define Device/dlink_dir-300-b7 MTK_SOC := rt5350 BLOCKSIZE := 4k - IMAGE_SIZE := $(ralink_default_fw_size_4M) + IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-300 DEVICE_VARIANT := B7 @@ -439,7 +440,7 @@ TARGET_DEVICES += dlink_dir-620-d1 define Device/dlink_dwr-512-b MTK_SOC := rt5350 - IMAGE_SIZE := 7800k + IMAGE_SIZE := 8064k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-512 DEVICE_VARIANT := B @@ -549,6 +550,7 @@ TARGET_DEVICES += hauppauge_broadway define Device/hilink_hlk-rm04 MTK_SOC := rt5350 + IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | hilink-header @@ -654,7 +656,7 @@ TARGET_DEVICES += netcore_nw718 define Device/netgear_wnce2001 MTK_SOC := rt3052 - IMAGE_SIZE := $(ralink_default_fw_size_4M) + IMAGE_SIZE := 3392k IMAGES += factory.bin factory-NA.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ dap-header -s RT3052-AP-WNCE2001-3 -r WW -v 1.0.0.99 @@ -794,6 +796,7 @@ TARGET_DEVICES += planex_mzk-w300nh2 define Device/planex_mzk-wdpr MTK_SOC := rt3052 + IMAGE_SIZE := 6656k DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-WDPR SUPPORTED_DEVICES += mzk-wdpr @@ -926,6 +929,7 @@ TARGET_DEVICES += sparklan_wcr-150gn define Device/teltonika_rut5xx MTK_SOC := rt3050 + IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Teltonika DEVICE_MODEL := RUT5XX DEVICE_PACKAGES := om-watchdog