mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	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:
		
							
								
								
									
										27
									
								
								patches/0085-ipq53xx-increase-rootfs-size-to-500M.patch → patches-24.10/0037-fstools-increase-rootfs-size-to-500M.patch
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										27
									
								
								patches/0085-ipq53xx-increase-rootfs-size-to-500M.patch → patches-24.10/0037-fstools-increase-rootfs-size-to-500M.patch
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							| @@ -1,20 +1,22 @@ | |||||||
| 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> | From: "wingate.chi" <wingate.chi@cybertan.com.tw> | ||||||
| Date: Tue, 4 Feb 2025 06:32:17 +0000 | 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> | Signed-off-by: wingate.chi <wingate.chi@cybertan.com.tw> | ||||||
| ---
 | ---
 | ||||||
|  .../0001-change-rootfs-size-to-500m.patch     | 22 +++++++++++++++++++ |  .../patches/0001-change-rootfs-size-to-500m.patch     | 11 +++++++++++ | ||||||
|  1 file changed, 22 insertions(+) |  1 file changed, 11 insertions(+) | ||||||
|  create mode 100644 package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch |  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
 | 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 | new file mode 100644 | ||||||
| index 0000000000..3aa16258d2
 | index 0000000000..f03adc5854
 | ||||||
| --- /dev/null
 | --- /dev/null
 | ||||||
| +++ b/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
 | +++ b/package/system/fstools/patches/0001-change-rootfs-size-to-500m.patch
 | ||||||
| @@ -0,0 +1,22 @@
 | @@ -0,0 +1,11 @@
 | ||||||
| +--- a/libfstools/common.h
 | +--- a/libfstools/common.h
 | ||||||
| ++++ b/libfstools/common.h
 | ++++ b/libfstools/common.h
 | ||||||
| +@@ -19,7 +19,7 @@
 | +@@ -19,7 +19,7 @@
 | ||||||
| @@ -26,17 +28,6 @@ index 0000000000..3aa16258d2 | |||||||
| + 
 | + 
 | ||||||
| + int read_uint_from_file(char *dirname, char *filename, unsigned int *i);
 | + 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);
 | + 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 | ||||||
| 
 | 
 | ||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin