qualcommax: ipq50xx: functions for bootconfig partition
authorGeorge Moussalem <george.moussalem@outlook.com>
Wed, 3 Dec 2025 19:22:09 +0000 (23:22 +0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 24 Dec 2025 09:42:39 +0000 (10:42 +0100)
commitd02de1d35a37cdcb3890aef5cbddee598ff16a7d
treeb293960b5e7386e53c6e5ed8b3938a2558a63d63
parent606a87ec442736afe3ffed60c3572bbd1ae153aa
qualcommax: ipq50xx: functions for bootconfig partition

The BOOTCONFIG partition is used by Qualcomm's boot chain to store
metadata about the device's startup configuration. It contains info such
as versioning, configuration flags, primary boot partition, and more.

Newer devices with dual boot partitions not only store the active boot
partition in a U-boot variable but also in partition info in the
BOOTCONFIG partition. As such, add library functions to set and toggle
the active boot partition.

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/functions/bootconfig.sh [new file with mode: 0644]