qualcommax: ipq50xx: upgrade SMEM dualboot Linksys devices
authorGeorge Moussalem <george.moussalem@outlook.com>
Thu, 4 Dec 2025 05:20:00 +0000 (09:20 +0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 24 Dec 2025 09:42:39 +0000 (10:42 +0100)
commit7d685825794a613f67543d0e00f31dca5d8163ba
tree22c10396782c0004d4f5b2aaf419dfac591539d8
parentd02de1d35a37cdcb3890aef5cbddee598ff16a7d
qualcommax: ipq50xx: upgrade SMEM dualboot Linksys devices

Add support for upgrades on dual firmware Linksys devices with the
partition table stored in SMEM and that store both the kernel and rootfs
in a single partition. Switching the active boot partition requires
updating the partition info table in SMEM in addition to setting
the active boot partition in a U-boot variable as U-boot will keep them
in sync upon reboot if they're not.

U-boot always sets the name of the active partition to rootfs and that
of the inactive partition to rootfs_1 in SMEM. when Linux loads the
partition table from SMEM it will load the right partition based on the
offset set in the SMEM partition table. For upgrades, flashing to the
alternate partition will always be to rootfs_1, while flashing the
current partition will be on rootfs.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/21038
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/ipq50xx/base-files/lib/upgrade/platform.sh