From: Daniel Golle <daniel@makrotopia.org>
Date: Tue, 30 Apr 2024 21:21:16 +0000 (+0100)
Subject: mediatek: increase size of the sdcard image to 512 MiB
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=918d81a3eac01be2309a54435e06f0a9d6c6f812;p=openwrt%2Fstaging%2Fdangole.git

mediatek: increase size of the sdcard image to 512 MiB

Increasing the size of the rootfs_data filesystem has become a ever
repeating discussion and seems to be the most important thing for
users of the MediaTek-based BananaPi boards.

Using the whole remaining size of a microSD or the eMMC for rootfs_data
doesn't make sense for many reasons, but neither does the current
default of 104 MiB for the 'rootfs' partition size.

Increase the 'rootfs' partition size to 448 MiB which will result in
the sdcard image being exactly 512 MiB. Finding a microSD card smaller
than 512 MiB and still working could anyway be difficult in 2024.

That will allow users to install even bloatware written in Go or other
space-hungry languages while still leaving most of the space unallocated
for additional partitions or volumes to be used for persistent user
data.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---

diff --git a/config/Config-images.in b/config/Config-images.in
index 6f2f926432..5222065b04 100644
--- a/config/Config-images.in
+++ b/config/Config-images.in
@@ -300,6 +300,7 @@ menu "Target Images"
 	config TARGET_ROOTFS_PARTSIZE
 		int "Root filesystem partition size (in MiB)"
 		depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS
+		default 448 if TARGET_mediatek
 		default 104
 		help
 		  Select the root filesystem partition size.