qualcommax: ipq807x: Remove OEM UBI volume before upgrade for Linksys MX devices
authorPaweł Owoc <[email protected]>
Thu, 2 Jan 2025 21:31:33 +0000 (22:31 +0100)
committerRobert Marko <[email protected]>
Thu, 16 Oct 2025 09:47:19 +0000 (11:47 +0200)
Use 'remove_oem_ubi_volume' function to remove OEM UBI volume before upgrade.
This allows to upgrade even if we have OEM firmware on the second partition.
Applies to Linksys MX4200/MX4300/MX5300/MX8500.

Signed-off-by: Paweł Owoc <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/14720
Link: https://github.com/openwrt/openwrt/pull/20086
Signed-off-by: Robert Marko <[email protected]>
target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh

index 3deb102a8fa9248627f3e8e71a32707f62f8be80..438cfdc6133e7b7f481564dc1c5205c17b2c8f52 100644 (file)
@@ -212,9 +212,13 @@ platform_do_upgrade() {
                ;;
        linksys,mx4200v1|\
        linksys,mx4200v2|\
-       linksys,mx4300|\
+       linksys,mx4300)
+               remove_oem_ubi_volume squashfs
+               linksys_mx_do_upgrade "$1"
+               ;;
        linksys,mx5300|\
        linksys,mx8500)
+               remove_oem_ubi_volume ubifs
                linksys_mx_do_upgrade "$1"
                ;;
        prpl,haze|\