ramips: fix ralink_default_fw_size_16M

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>
master
Adrian Schmutzler 5 years ago
parent b9cf1f6081
commit 7392af7520

@ -150,7 +150,7 @@ endef
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)

@ -490,7 +490,7 @@ TARGET_DEVICES += kimax_u35wf
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
@ -500,7 +500,7 @@ TARGET_DEVICES += kingston_mlw221
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

@ -465,7 +465,7 @@ TARGET_DEVICES += netis_wf-2881
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

@ -144,7 +144,7 @@ TARGET_DEVICES += mercury_mac1200r-v2
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

@ -579,7 +579,7 @@ TARGET_DEVICES += huawei_d105
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

Loading…
Cancel
Save