mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
Add dual-partition upgrade support for Qihoo 360v6 using the generic bootconfig.sh library. This enables safe system upgrades with automatic failover capability. The device uses Qualcomm's bootconfig structure to control A/B partition switching. The bootloader dynamically maps physical NAND partitions to logical MTD devices based on the bootconfig, ensuring firmware always writes to the inactive partition. Implementation details: - Use bootconfig.sh library (copied from ipq50xx) for bootconfig operations - Operate on 'rootfs' partition by name instead of hardcoded offset - Add magic header validation for safety - Remove OEM UBI volumes (wifi_fw and ubi_rootfs) before sysupgrade - Toggle bootconfig before removing OEM volumes Hardware details: - SoC: Qualcomm IPQ6000 - Flash: NAND with dual rootfs partitions (mtd16/mtd17) - Bootconfig: controls slot selection via partition name lookup Installation: Standard sysupgrade process. After upgrade, the system will boot from the new partition while preserving the old system as backup. The OEM volume cleanup is necessary because these volumes are created by the stock firmware and are not automatically cleaned by the standard nand_upgrade_prepare_ubi() function, which only removes volumes named 'kernel', 'rootfs', and 'rootfs_data'. Without this cleanup, the remaining OEM volumes consume available space, causing the creation of rootfs_data to fail during sysupgrade. Tested on Qihoo 360v6 running stock firmware and OpenWrt. Signed-off-by: Zhenyu Qi <qzydustin@hotmail.com> Link: https://github.com/openwrt/openwrt/pull/21154 Signed-off-by: Robert Marko <robimarko@gmail.com> |
||
|---|---|---|
| .. | ||
| files | ||
| image | ||
| ipq50xx | ||
| ipq60xx | ||
| ipq807x | ||
| patches-6.12 | ||
| config-6.12 | ||
| Makefile | ||