ipq807x: prpl-haze: fix sysupgrade flashing from bootloader
authorPetr Štetiar <ynezz@true.cz>
Thu, 29 Jun 2023 12:29:02 +0000 (14:29 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 29 Jan 2024 09:38:17 +0000 (09:38 +0000)
commitb0f3fd550b1e9dd5149e18ffd5f47edc570f21a8
tree0060259a65a80b90e21dc031e76ab466e97d9330
parent1ca61b7b376e135f4a3e08c500e98563f66aa202
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@true.cz>
(cherry picked from commit ba415af5706f0369e4d299e4dfe50541a4a8056b)
target/linux/ipq807x/image/generic.mk