patches: carry forward rootfs size increase (0037)

Increases rootfs size to 500M for targets requiring larger firmware images.

Renumbered and generalised from patches/0085.

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-10-19 00:00:00 +02:00
parent 18a711ba1e
commit 48d003b3c8

View File

@@ -1,42 +1,33 @@
From 78f51448bd3d09ccb6c3559bae299a8d2edde21c Mon Sep 17 00:00:00 2001
From e842f8f710fbfc721c4ebf5c2a4cbe27feac1a05 Mon Sep 17 00:00:00 2001
From: "wingate.chi" <wingate.chi@cybertan.com.tw>
Date: Tue, 4 Feb 2025 06:32:17 +0000
Subject: [PATCH] ipq53xx: increase rootfs size to 500M
Subject: [PATCH 37/55] fstools: increase rootfs size to 500M
Increases F2FS minimum filesystem size to 500M to accommodate larger firmware images and package installations.
Signed-off-by: wingate.chi <wingate.chi@cybertan.com.tw>
---
.../0001-change-rootfs-size-to-500m.patch | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
.../patches/0001-change-rootfs-size-to-500m.patch | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
diff --git a/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch b/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
new file mode 100644
index 0000000000..3aa16258d2
index 0000000000..f03adc5854
--- /dev/null
+++ b/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
@@ -0,0 +1,22 @@
@@ -0,0 +1,11 @@
+--- a/libfstools/common.h
++++ b/libfstools/common.h
+@@ -19,7 +19,7 @@
+ #include "libfstools.h"
+ #include "volume.h"
+
+
+-#define F2FS_MINSIZE (100ULL * 1024ULL * 1024ULL)
++#define F2FS_MINSIZE (500ULL * 1024ULL * 1024ULL) //change rootfs size to 500M
+
+
+ int read_uint_from_file(char *dirname, char *filename, unsigned int *i);
+ char *read_string_from_file(const char *dirname, const char *filename, char *buf, size_t bufsz);
+--- a/libfstools/rootdisk.c
++++ b/libfstools/rootdisk.c
+@@ -16,7 +16,7 @@
+ #include <linux/loop.h>
+
+ #define ROOTDEV_OVERLAY_ALIGN (64ULL * 1024ULL)
+-#define F2FS_MINSIZE (100ULL * 1024ULL * 1024ULL)
++#define F2FS_MINSIZE (500ULL * 1024ULL * 1024ULL) //change rootfs size to 500M
+
+ struct squashfs_super_block {
+ uint32_t s_magic;
--
2.17.1
2.34.1