diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-15 14:55:19 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-25 14:31:08 +0200 |
commit | 7009f407f1e38101b73fab9f5dc27287f7b606a7 (patch) | |
tree | 4ddf0e3fff3cbbb90e6d05e5c9579ec5b0e429d7 | |
parent | a6cd311b0bd6009ba85c86d1f27b66859c427aa3 (diff) | |
download | upstream-7009f407f1e38101b73fab9f5dc27287f7b606a7.tar.gz upstream-7009f407f1e38101b73fab9f5dc27287f7b606a7.tar.bz2 upstream-7009f407f1e38101b73fab9f5dc27287f7b606a7.zip |
ramips/mt7620: 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
aigale_ai-br100 7936k 0x7c0000
alfa-network_ac1200rm 16064k 0xfb0000
alfa-network_tube-e4g 16064k 0xfb0000
asus_rp-n53 - 0x7b0000 default
asus_rt-ac51u (16M) 0xfb0000
asus_rt-n12p - 0xfb0000 wrong
asus_rt-n14u - 0xfb0000 wrong
bdcom_wap2100-sk 15808k 0xf70000
buffalo_whr-1166d 15040k 0xfb0000 wrong
buffalo_whr-300hp2 6848k 0x7b0000 wrong
buffalo_whr-600d 6848k 0x7b0000 wrong
buffalo_wmr-300 - 0x7b0000 default
comfast_cf-wr800n - 0x7b0000 default
dlink_dch-m225 6848k 0x6b0000
dlink_dir-510l - 0xde0000 wrong
dlink_dir-810l 6720k 0x690000
dlink_dwr-116-a1 - 0x7e0000 wrong
dlink_dwr-118-a1 - 0xfe0000 wrong
dlink_dwr-118-a2 - 0xfe0000 wrong
dlink_dwr-921-c1 (16M) 0xfe0000 wrong
dlink_dwr-921-c3 [(16M)] 0xfe0000 wrong
dlink_dwr-922-e2 (16M) 0xfe0000 wrong
dovado_tiny-ac - 0x7b0000 default
edimax_br-6478ac-v2 7616k 0x00790000 wrong
edimax_ew-7476rpc 7744k 0x00790000
edimax_ew-7478ac 7744k 0x00790000
edimax_ew-7478apc 7744k 0x00790000
elecom_wrh-300cr (16M) 0xdf0000 wrong
glinet_gl-mt300a (16M) 0xf80000 wrong
glinet_gl-mt300n (16M) 0xf80000 wrong
glinet_gl-mt750 (16M) 0xf80000 wrong
head-weblink_hdrm200 16064k 0xfb0000
hiwifi_hc5661 15872k 0xf80000
hiwifi_hc5761 15872k 0xf80000
hiwifi_hc5861 15872k 0xf80000
hnet_c108 16777216 0xfb0000 wrong
iodata_wn-ac1167gr 6864k 0x6b4000
iodata_wn-ac733gr3 6992k 0x6d4000
kimax_u25awf-h1 16064k 0xfb0000
kimax_u35wf 16064k 0xfb0000
kingston_mlw221 15744k 0xf60000
kingston_mlwg2 15744k 0xf60000
lava_lr-25g001 - 0xfe0000 wrong
lenovo_newifi-y1 (16M) 0xfb0000
lenovo_newifi-y1s (16M) 0xfb0000
linksys_e1700 - 0x7b0000 default
microduino_microwrt 16128k 0xfc0000
netgear_ex2700 (4M) 0x3b0000
netgear_ex3700 7744k 0x790000
netgear_wn3000rp-v3 - 0x7b0000 default
nexx_wt3020-4m (4M) 0x3b0000
nexx_wt3020-8m - 0x7b0000 default
ohyeah_oy-0001 (16M) 0xfb0000
phicomm_k2g 7552k 0x760000
phicomm_psg1208 - 0x7b0000 default
phicomm_psg1218a - 0x7b0000 default
phicomm_psg1218b - 0x7b0000 default
planex_cs-qr10 - 0x7b0000 default
planex_db-wrt01 - 0x7b0000 default
planex_mzk-750dhp - 0x7b0000 default
planex_mzk-ex300np - 0x730000 wrong
planex_mzk-ex750np - 0x730000 wrong
ralink_mt7620a-evb - 0x7b0000 default
ralink_mt7620a-mt7530-evb - 0x7b0000 default
ralink_mt7620a-mt7610e-evb - 0x7b0000 default
ralink_mt7620a-v22sg-evb - 0x7f80000 wrong
ravpower_wd03 (8M) 0x7b0000
sanlinking_d240 (16M) 0xfb0000
sercomm_na930 20m 0x1400000
tplink_archer-c20i - 0x7a0000 wrong
tplink_archer-c20-v1 - 0x7a0000 wrong
tplink_archer-c2-v1 - 0x7a0000 wrong
tplink_archer-c50-v1 - 0x7a0000 wrong
tplink_archer-mr200 - 0x7b0000 default
vonets_var11n-300 (4M) 0x3b0000
wrtnode_wrtnode (16M) 0xfb0000
xiaomi_miwifi-mini (16M) 0xf80000 wrong
youku_yk1 (32M) 0x1fb0000
yukai_bocco - 0x7b0000 default
zbtlink_we1026-5g-16m 16777216 0xfb0000 wrong
zbtlink_zbt-ape522ii - 0xf80000 wrong
zbtlink_zbt-cpe102 - 0x760000 wrong
zbtlink_zbt-wa05 - 0x760000 wrong
zbtlink_zbt-we2026 - 0x760000 wrong
zbtlink_zbt-we826-16m (16M) 0xfb0000
zbtlink_zbt-we826-32m (32M) 0x1fb0000
zbtlink_zbt-we826-e 32448k 0x1fb0000
zbtlink_zbt-wr8305rt - 0x7b0000 default
zte_q7 - 0x7b0000 default
zyxel_keenetic-omni - 0x7b0000 default
zyxel_keenetic-omni-ii - 0x7b0000 default
zyxel_keenetic-viva 16064k 0xfb0000
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 <freifunk@adrianschmutzler.de>
-rw-r--r-- | target/linux/ramips/image/mt7620.mk | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 51030bc90b..2a95b31087 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -105,6 +105,7 @@ TARGET_DEVICES += asus_rt-ac51u define Device/asus_rt-n12p MTK_SOC := mt7620n + IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Asus DEVICE_MODEL := RT-N11P/RT-N12+/RT-N12Eb1 SUPPORTED_DEVICES += rt-n12p @@ -113,6 +114,7 @@ TARGET_DEVICES += asus_rt-n12p define Device/asus_rt-n14u MTK_SOC := mt7620n + IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Asus DEVICE_MODEL := RT-N14u DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -131,7 +133,7 @@ TARGET_DEVICES += bdcom_wap2100-sk define Device/buffalo_whr-1166d MTK_SOC := mt7620a - IMAGE_SIZE := 15040k + IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Buffalo DEVICE_MODEL := WHR-1166D DEVICE_PACKAGES := kmod-mt76x2 @@ -141,7 +143,7 @@ TARGET_DEVICES += buffalo_whr-1166d define Device/buffalo_whr-300hp2 MTK_SOC := mt7620a - IMAGE_SIZE := 6848k + IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := Buffalo DEVICE_MODEL := WHR-300HP2 SUPPORTED_DEVICES += whr-300hp2 @@ -150,7 +152,7 @@ TARGET_DEVICES += buffalo_whr-300hp2 define Device/buffalo_whr-600d MTK_SOC := mt7620a - IMAGE_SIZE := 6848k + IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := Buffalo DEVICE_MODEL := WHR-600D DEVICE_PACKAGES := kmod-rt2800-pci @@ -190,6 +192,7 @@ TARGET_DEVICES += dlink_dch-m225 define Device/dlink_dir-510l $(Device/amit_jboot) MTK_SOC := mt7620a + IMAGE_SIZE := 14208k DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-510L DEVICE_PACKAGES += kmod-mt76x0e @@ -213,6 +216,7 @@ TARGET_DEVICES += dlink_dir-810l define Device/dlink_dwr-116-a1 $(Device/amit_jboot) MTK_SOC := mt7620n + IMAGE_SIZE := 8064k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-116 DEVICE_VARIANT := A1/A2 @@ -225,6 +229,7 @@ TARGET_DEVICES += dlink_dwr-116-a1 define Device/dlink_dwr-118-a1 $(Device/amit_jboot) MTK_SOC := mt7620a + IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-118 DEVICE_VARIANT := A1 @@ -238,6 +243,7 @@ TARGET_DEVICES += dlink_dwr-118-a1 define Device/dlink_dwr-118-a2 $(Device/amit_jboot) MTK_SOC := mt7620a + IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-118 DEVICE_VARIANT := A2 @@ -251,7 +257,7 @@ TARGET_DEVICES += dlink_dwr-118-a2 define Device/dlink_dwr-921-c1 $(Device/amit_jboot) MTK_SOC := mt7620n - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-921 DEVICE_VARIANT := C1 @@ -276,7 +282,7 @@ TARGET_DEVICES += dlink_dwr-921-c3 define Device/dlink_dwr-922-e2 $(Device/amit_jboot) MTK_SOC := mt7620n - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 16256k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-922 DEVICE_VARIANT := E2 @@ -302,7 +308,7 @@ define Device/edimax_br-6478ac-v2 DEVICE_MODEL := BR-6478AC DEVICE_VARIANT := V2 BLOCKSIZE := 64k - IMAGE_SIZE := 7616k + IMAGE_SIZE := 7744k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m RN68 -f 0x70000 -S 0x01100000 | pad-rootfs | \ append-metadata | check-size $$$$(IMAGE_SIZE) @@ -351,7 +357,7 @@ TARGET_DEVICES += edimax_ew-7478apc define Device/elecom_wrh-300cr MTK_SOC := mt7620n - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 14272k IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ elecom-header @@ -364,7 +370,7 @@ TARGET_DEVICES += elecom_wrh-300cr define Device/glinet_gl-mt300a MTK_SOC := mt7620a - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT300A DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -374,7 +380,7 @@ TARGET_DEVICES += glinet_gl-mt300a define Device/glinet_gl-mt300n MTK_SOC := mt7620a - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT300N DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -384,7 +390,7 @@ TARGET_DEVICES += glinet_gl-mt300n define Device/glinet_gl-mt750 MTK_SOC := mt7620a - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT750 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci @@ -434,7 +440,7 @@ TARGET_DEVICES += hiwifi_hc5861 define Device/hnet_c108 MTK_SOC := mt7620a - IMAGE_SIZE := 16777216 + IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := HNET DEVICE_MODEL := C108 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 @@ -511,6 +517,7 @@ TARGET_DEVICES += kingston_mlwg2 define Device/lava_lr-25g001 $(Device/amit_jboot) MTK_SOC := mt7620a + IMAGE_SIZE := 16256k DEVICE_VENDOR := LAVA DEVICE_MODEL := LR-25G001 DLINK_ROM_ID := LVA6E3804001 @@ -712,6 +719,7 @@ TARGET_DEVICES += planex_mzk-750dhp define Device/planex_mzk-ex300np MTK_SOC := mt7620a + IMAGE_SIZE := 7360k DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-EX300NP SUPPORTED_DEVICES += mzk-ex300np @@ -720,6 +728,7 @@ TARGET_DEVICES += planex_mzk-ex300np define Device/planex_mzk-ex750np MTK_SOC := mt7620a + IMAGE_SIZE := 7360k DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-EX750NP DEVICE_PACKAGES := kmod-mt76x2 @@ -753,6 +762,7 @@ TARGET_DEVICES += ralink_mt7620a-mt7610e-evb define Device/ralink_mt7620a-v22sg-evb MTK_SOC := mt7620a + IMAGE_SIZE := 130560k DEVICE_VENDOR := MediaTek DEVICE_MODEL := MT7620a V22SG SUPPORTED_DEVICES += mt7620a_v22sg @@ -790,6 +800,7 @@ TARGET_DEVICES += sercomm_na930 define Device/tplink_archer-c20i $(Device/Archer) + IMAGE_SIZE := 7808k TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc2000001 TPLINK_HWREV := 58 @@ -803,6 +814,7 @@ TARGET_DEVICES += tplink_archer-c20i define Device/tplink_archer-c20-v1 $(Device/Archer) + IMAGE_SIZE := 7808k SUPPORTED_DEVICES += tplink,c20-v1 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc2000001 @@ -817,6 +829,7 @@ TARGET_DEVICES += tplink_archer-c20-v1 define Device/tplink_archer-c2-v1 $(Device/Archer) + IMAGE_SIZE := 7808k SUPPORTED_DEVICES += tplink,c2-v1 TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc7500001 @@ -830,6 +843,7 @@ TARGET_DEVICES += tplink_archer-c2-v1 define Device/tplink_archer-c50-v1 $(Device/Archer) + IMAGE_SIZE := 7808k TPLINK_FLASHLAYOUT := 8Mmtk TPLINK_HWID := 0xc7500001 TPLINK_HWREV := 69 @@ -875,7 +889,7 @@ TARGET_DEVICES += wrtnode_wrtnode define Device/xiaomi_miwifi-mini MTK_SOC := mt7620a - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 15872k DEVICE_VENDOR := Xiaomi DEVICE_MODEL := MiWiFi Mini DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci @@ -904,7 +918,7 @@ TARGET_DEVICES += yukai_bocco define Device/zbtlink_we1026-5g-16m MTK_SOC := mt7620a - IMAGE_SIZE := 16777216 + IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE1026-5G DEVICE_VARIANT := 16M @@ -915,6 +929,7 @@ TARGET_DEVICES += zbtlink_we1026-5g-16m define Device/zbtlink_zbt-ape522ii MTK_SOC := mt7620a + IMAGE_SIZE := 15872k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-APE522II DEVICE_PACKAGES := kmod-mt76x2 @@ -924,6 +939,7 @@ TARGET_DEVICES += zbtlink_zbt-ape522ii define Device/zbtlink_zbt-cpe102 MTK_SOC := mt7620n + IMAGE_SIZE := 7552k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-CPE102 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -933,6 +949,7 @@ TARGET_DEVICES += zbtlink_zbt-cpe102 define Device/zbtlink_zbt-wa05 MTK_SOC := mt7620n + IMAGE_SIZE := 7552k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WA05 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -942,6 +959,7 @@ TARGET_DEVICES += zbtlink_zbt-wa05 define Device/zbtlink_zbt-we2026 MTK_SOC := mt7620n + IMAGE_SIZE := 7552k DEVICE_VENDOR := Zbtlink DEVICE_MODEL := ZBT-WE2026 SUPPORTED_DEVICES += zbt-we2026 |