[openwrt/openwrt] ipq807x: prpl-haze: fix sysupgrade flashing from bootloader

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 29 01:41:41 PST 2024


ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/b0f3fd550b1e9dd5149e18ffd5f47edc570f21a8

commit b0f3fd550b1e9dd5149e18ffd5f47edc570f21a8
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Thu Jun 29 14:29:02 2023 +0200

    ipq807x: prpl-haze: fix sysupgrade flashing from bootloader
    
    While flashing sysupgrade image from U-Boot, then the rootfs_data
    overlay filesystem formatting is left for the fstools during firstboot,
    but that wont work as mkfs.f2fs is missing in the sysupgrade image:
    
     mount_root: overlay filesystem in /dev/loop0 has not been formatted yet
     mount_root: no usable overlay filesystem found, using tmpfs overlay
     sh: mkfs.f2fs: not found
    
     Filesystem                Size      Used Available Use% Mounted on
     /dev/loop0              139.6M     46.9M     92.6M  34% /overlay
    
     Number  Start (sector)    End (sector)  Size       Code  Name
      20           98850          406349   150.1 MiB   FFFF  rootfs
    
    So lets fix it by adding f2fs support to the sysupgrade image.
    
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
    (cherry picked from commit ba415af5706f0369e4d299e4dfe50541a4a8056b)
---
 target/linux/ipq807x/image/generic.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/ipq807x/image/generic.mk b/target/linux/ipq807x/image/generic.mk
index fb991156d5..104a667894 100644
--- a/target/linux/ipq807x/image/generic.mk
+++ b/target/linux/ipq807x/image/generic.mk
@@ -103,7 +103,8 @@ define Device/prpl_haze
 	DEVICE_MODEL := Haze
 	DEVICE_DTS_CONFIG := config at hk09
 	SOC := ipq8072
-	DEVICE_PACKAGES += ath11k-firmware-qcn9074 ipq-wifi-prpl_haze kmod-ath11k-pci
+	DEVICE_PACKAGES += ath11k-firmware-qcn9074 ipq-wifi-prpl_haze kmod-ath11k-pci \
+		mkf2fs f2fsck kmod-fs-f2fs
 endef
 TARGET_DEVICES += prpl_haze
 




More information about the lede-commits mailing list