[PATCH 1/4] mediatek: filogic: fix GatoNetworks GDSP image size limit
Enrico Mioso
mrkiko.rs at gmail.com
Sat Nov 21 12:20:25 PST 2026
The "firmware" partition on the GDSP SPI-NOR flash spans 0x1E80000
bytes (31232 KiB), but IMAGE_SIZE was set to 32768k. Images between
the two sizes pass the build-time check-size step, but they do not fit
into the partition: sysupgrade then fails, and the U-Boot
"nor_write_firmware" helper refuses them.
Set IMAGE_SIZE to the actual partition size.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Signed-off-by: Enrico Mioso <mrkiko.rs at gmail.com>
---
target/linux/mediatek/image/filogic.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 763250de0d..928c5f7d35 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -1955,7 +1955,7 @@ define Device/gatonetworks_gdsp
DEVICE_DTS_DIR := ../dts
DEVICE_DTC_FLAGS := --pad 4096
IMAGES := sysupgrade.itb
- IMAGE_SIZE := 32768k
+ IMAGE_SIZE := 31232k
DEVICE_PACKAGES := e2fsprogs f2fsck mkf2fs fitblk \
kmod-mt7915e kmod-mt7981-firmware \
kmod-usb-net-qmi-wwan kmod-usb-serial-option kmod-usb3 \
--
2.56.1
More information about the openwrt-devel
mailing list