From fb41249a114f5e169937fd280decf96ae4d74d7d Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 10 Aug 2024 09:41:35 +0200 Subject: [PATCH] board: quick fix for too small primary/secondary on sd cards With new features & fixes, Infix grows. With the latest support for rauc upgrades introduced with the VisionFive2, and now also for R2S, we need to reserve room for future upgrades even when running from an SD card. This is a quick fix for genimge generated SD card imaages before we get a proper installer in place that can be used both on the target and host systems to partition and provision an eMMC, NVME, SSD, or an SD card. Signed-off-by: Joachim Wiberg --- board/aarch64/r2s/genimage.cfg | 2 ++ board/riscv64/visionfive2/genimage.cfg | 2 ++ 2 files changed, 4 insertions(+) diff --git a/board/aarch64/r2s/genimage.cfg b/board/aarch64/r2s/genimage.cfg index 5c6820db..a7513740 100644 --- a/board/aarch64/r2s/genimage.cfg +++ b/board/aarch64/r2s/genimage.cfg @@ -45,12 +45,14 @@ image sdcard.img { partition primary { partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 bootable = true + size = 200M image = "rootfs.squashfs" } partition secondary { partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 bootable = true + size = 200M image = "rootfs.squashfs" } diff --git a/board/riscv64/visionfive2/genimage.cfg b/board/riscv64/visionfive2/genimage.cfg index f892dadb..0d48b36c 100644 --- a/board/riscv64/visionfive2/genimage.cfg +++ b/board/riscv64/visionfive2/genimage.cfg @@ -46,12 +46,14 @@ image sdcard.img { partition primary { partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 bootable = true + size = 200M image = "rootfs.squashfs" } partition secondary { partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 bootable = true + size = 200M image = "rootfs.squashfs" }