diff options
| author | Rodrigo Balerdi | 2024-09-23 10:31:08 +0000 |
|---|---|---|
| committer | Robert Marko | 2024-09-23 22:07:55 +0000 |
| commit | 3b221ba5afe42bc32e878299d7d2275702536684 (patch) | |
| tree | 04d195209b4235f678fffa529b42fdacc68f8de1 | |
| parent | 76a75b43ba1bf0bdfd5c27b5685e641f9131b6f8 (diff) | |
| download | openwrt-3b221ba5afe42bc32e878299d7d2275702536684.tar.gz | |
ipq807x: sax1v1k: fix sysupgrade not touching rootfs_data
Before this commit, sysupgrade saved the settings backup data to
the area following rootfs even though the device has an actual
rootfs_data partition. The backup data was completely ignored on
the following boot, but since rootfs_data was not being cleared
during sysupgrade, the issue was not noticed earlier.
Note that this commit changes the filesystem of rootfs_data from
ext4 to F2FS (if OEM partitioning is used).
Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16463
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | target/linux/qualcommax/image/ipq807x.mk | 2 | ||||
| -rw-r--r-- | target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh | 17 |
2 files changed, 16 insertions, 3 deletions
diff --git a/target/linux/qualcommax/image/ipq807x.mk b/target/linux/qualcommax/image/ipq807x.mk index b62734334d..faefb479c2 100644 --- a/target/linux/qualcommax/image/ipq807x.mk +++ b/target/linux/qualcommax/image/ipq807x.mk @@ -340,7 +340,7 @@ define Device/spectrum_sax1v1k DEVICE_DTS_CONFIG := config@rt5010w-d187-rev6 SOC := ipq8072 IMAGES := sysupgrade.bin - DEVICE_PACKAGES := ipq-wifi-spectrum_sax1v1k + DEVICE_PACKAGES := kmod-fs-f2fs f2fs-tools ipq-wifi-spectrum_sax1v1k endef TARGET_DEVICES += spectrum_sax1v1k diff --git a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh index 92ef5fef2c..808acac684 100644 --- a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh +++ b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh @@ -184,8 +184,7 @@ platform_do_upgrade() { nand_do_upgrade "$1" ;; prpl,haze|\ - qnap,301w|\ - spectrum,sax1v1k) + qnap,301w) kernelname="0:HLOS" rootfsname="rootfs" mmc_do_upgrade "$1" @@ -212,6 +211,12 @@ platform_do_upgrade() { CI_ROOT_UBIPART="rootfs" nand_do_upgrade "$1" ;; + spectrum,sax1v1k) + CI_KERNPART="0:HLOS" + CI_ROOTPART="rootfs" + CI_DATAPART="rootfs_data" + emmc_do_upgrade "$1" + ;; yuncore,ax880) active="$(fw_printenv -n active)" if [ "$active" -eq "1" ]; then @@ -260,3 +265,11 @@ platform_do_upgrade() { ;; esac } + +platform_copy_config() { + case "$(board_name)" in + spectrum,sax1v1k) + emmc_copy_config + ;; + esac +} |