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>
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
nand_do_upgrade "$1"
;;
prpl,haze|\
- qnap,301w|\
- spectrum,sax1v1k)
+ qnap,301w)
kernelname="0:HLOS"
rootfsname="rootfs"
mmc_do_upgrade "$1"
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
;;
esac
}
+
+platform_copy_config() {
+ case "$(board_name)" in
+ spectrum,sax1v1k)
+ emmc_copy_config
+ ;;
+ esac
+}