[openwrt/openwrt] build: use 128MiB as the boot/kernel partition size on armvirt target
LEDE Commits
lede-commits at lists.infradead.org
Tue Jun 13 07:50:07 PDT 2023
ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/04d2f8f11fc4c1809c297b5b90fddbad98ce905d
commit 04d2f8f11fc4c1809c297b5b90fddbad98ce905d
Author: Mathew McBride <matt at traverse.com.au>
AuthorDate: Tue Jun 1 01:48:25 2021 +0000
build: use 128MiB as the boot/kernel partition size on armvirt target
The nominal partition type for EFI boot partitions is FAT32,
which has a minimum size of 32MiB on a 512-byte-sector block device.
To ensure that the boot partition is created as FAT32 set a size
well above this minimum.
A useful discussion about EFI partition sizes can be found here:
https://superuser.com/questions/1310927/what-is-the-absolute-minimum-size-a-uefi-system-partition-can-be
I have found 128MiB works pretty consistently across both
tools (mkfs.fat) and firmwares (EDKII)
Signed-off-by: Mathew McBride <matt at traverse.com.au>
(cherry picked from commit 71e56b2ff1e8aeb3205784c0b5f8ca6ba0fbbf63)
---
config/Config-images.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/config/Config-images.in b/config/Config-images.in
index cbf1e9f26d..396f1dd3e3 100644
--- a/config/Config-images.in
+++ b/config/Config-images.in
@@ -292,6 +292,7 @@ menu "Target Images"
depends on USES_BOOT_PART
default 8 if TARGET_apm821xx_sata
default 64 if TARGET_bcm27xx
+ default 128 if TARGET_armvirt
default 16
config TARGET_ROOTFS_PARTSIZE
More information about the lede-commits
mailing list