In ramips, there are the following predefined values for IMAGE_SIZE
ralink_default_fw_size_4M
3866624 3776k 0x3B0000
ralink_default_fw_size_8M
8060928 7872k 0x7B0000
ralink_default_fw_size_16M
16121856 15744k 0xF60000
ralink_default_fw_size_32M
33226752 32448k 0x1FB0000
Out of those, the "16M" value is obviously odd, as it provides more
room for the remaining partitions than the tree others.
Of the devices in all subtargets, there are actually > 50 that have
a firmware partition with 0xFB0000 size, while only 5 (!) have
0xF60000. From the former, many are set to
ralink_default_fw_size_16M anyway, although it is wrong at the
present point.
Consequently, it makes sense to change ralink_default_fw_size_16M
to 0xFB0000, and to update IMAGE_SIZE for the 5 devices with
0xF60000.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
ralink_default_fw_size_4M=3866624
ralink_default_fw_size_8M=8060928
-ralink_default_fw_size_16M=16121856
+ralink_default_fw_size_16M=16449536
ralink_default_fw_size_32M=33226752
ifeq ($(SUBTARGET),rt288x)
define Device/kingston_mlw221
MTK_SOC := mt7620n
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15744k
DEVICE_VENDOR := Kingston
DEVICE_MODEL := MLW221
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
define Device/kingston_mlwg2
MTK_SOC := mt7620n
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15744k
DEVICE_VENDOR := Kingston
DEVICE_MODEL := MLWG2
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
define Device/phicomm_k2p
MTK_SOC := mt7621
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15744k
DEVICE_VENDOR := Phicomm
DEVICE_MODEL := K2P
SUPPORTED_DEVICES += k2p
define Device/netgear_r6120
MTK_SOC := mt7628an
BLOCKSIZE := 64k
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15744k
DEVICE_VENDOR := NETGEAR
DEVICE_MODEL := R6120
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
define Device/huawei_hg255d
MTK_SOC := rt3052
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15744k
DEVICE_VENDOR := HuaWei
DEVICE_MODEL := HG255D
SUPPORTED_DEVICES += hg255d