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>
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
define Device/planex_mzk-ex300np
MTK_SOC := mt7620a
+ IMAGE_SIZE := 7360k
DEVICE_VENDOR := Planex
DEVICE_MODEL := MZK-EX300NP
SUPPORTED_DEVICES += mzk-ex300np
define Device/planex_mzk-ex750np
MTK_SOC := mt7620a
+ IMAGE_SIZE := 7360k
DEVICE_VENDOR := Planex
DEVICE_MODEL := MZK-EX750NP
DEVICE_PACKAGES := kmod-mt76x2
define Device/ralink_mt7620a-v22sg-evb
MTK_SOC := mt7620a
+ IMAGE_SIZE := 130560k
DEVICE_VENDOR := MediaTek
DEVICE_MODEL := MT7620a V22SG
SUPPORTED_DEVICES += mt7620a_v22sg
define Device/tplink_archer-c20i
$(Device/Archer)
+ IMAGE_SIZE := 7808k
TPLINK_FLASHLAYOUT := 8Mmtk
TPLINK_HWID := 0xc2000001
TPLINK_HWREV := 58
define Device/tplink_archer-c20-v1
$(Device/Archer)
+ IMAGE_SIZE := 7808k
SUPPORTED_DEVICES += tplink,c20-v1
TPLINK_FLASHLAYOUT := 8Mmtk
TPLINK_HWID := 0xc2000001
define Device/tplink_archer-c2-v1
$(Device/Archer)
+ IMAGE_SIZE := 7808k
SUPPORTED_DEVICES += tplink,c2-v1
TPLINK_FLASHLAYOUT := 8Mmtk
TPLINK_HWID := 0xc7500001
define Device/tplink_archer-c50-v1
$(Device/Archer)
+ IMAGE_SIZE := 7808k
TPLINK_FLASHLAYOUT := 8Mmtk
TPLINK_HWID := 0xc7500001
TPLINK_HWREV := 69
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
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
define Device/zbtlink_zbt-ape522ii
MTK_SOC := mt7620a
+ IMAGE_SIZE := 15872k
DEVICE_VENDOR := Zbtlink
DEVICE_MODEL := ZBT-APE522II
DEVICE_PACKAGES := kmod-mt76x2
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
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
define Device/zbtlink_zbt-we2026
MTK_SOC := mt7620n
+ IMAGE_SIZE := 7552k
DEVICE_VENDOR := Zbtlink
DEVICE_MODEL := ZBT-WE2026
SUPPORTED_DEVICES += zbt-we2026