]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: fix sysupgrade for Wavlink WL-WNT100X3 24684/head
authorFil Dunsky <filipp.dunsky@gmail.com>
Wed, 12 Aug 2026 03:14:46 +0000 (06:14 +0300)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 12 Aug 2026 07:23:19 +0000 (09:23 +0200)
The stock layout of the WL-WNT100X3 splits the SPI-NAND into
bl2/u-boot-env/factory/fip/ubi/hw and the sysupgrade image is a
sysupgrade-tar that has to be unpacked into the "ubi" partition.

The board was however added to the default_do_upgrade() case, which
writes the image to ${PART_NAME:-image}, i.e. to the "firmware" MTD
partition that does not exist on this device:

  find_mtd_index firmware -> []
  mtd: Could not open mtd device: firmware

mtd fails, do_stage2 exits before flashing anything and the board
reboots into the old firmware without a visible error, so every
OpenWrt-to-OpenWrt sysupgrade looks like a silent no-op. Only the
initial installation works, since that one is performed by the sysupgrade
of the vendor firmware.

Drop the entry so the board falls through to the generic
nand_do_upgrade() case with CI_UBIPART defaulting to "ubi", like the
identically partitioned WL-WN586X3B.

The WL-WNT100X3 (OpenWrt U-Boot layout) variant uses fit_do_upgrade()
and is not affected.

Fixes: 829d432ecda3 ("mediatek: add support for Wavlink WL-WNT100X3")
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24684
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh

index 43933486d145a73c18bb7d7edcd229f5a5ae8118..b351b08cecc9674e26f0609a211ebf03f7eaaae8 100644 (file)
@@ -280,7 +280,6 @@ platform_do_upgrade() {
        kebidumei,ax3000-u22|\
        totolink,x6000r|\
        wavlink,wl-wn573hx3|\
-       wavlink,wl-wnt100x3|\
        widelantech,wap430x|\
        yuncore,ax835)
                default_do_upgrade "$1"