Files
buildroot/board/miyoo/patches/genimage/0001-image-hd-reduce-number-of-GPT-entries.patch
Apaczer bb94014294 FIRSBOOT: add extra p5 for ROMS (use GPT) & add option for switching FS (#168)
* BOARD: firstboot:  use ext4 for p1 explicitly
* BOARD: /etc/main : update fsck scripts
* BOARD: inittab: 
 - add /roms in p5
 - mount RO /boot in async (default)
* BOARD: genimage.sh: gen ROMS EXT4 image
* BAORD: prebuild.sh: 
 - create mount point for ROMS
 - increase MAIN & ROMS block size
 - the size of /mnt is "hardcoded" after image creation
 - we need real space for backup manipulation in ROMS
* BOARD: mv roms upward
* BOARD: firstboot: add p5 ROMS and resize
* BOARD: genimage-sdcard.cfg: 
 - use GPT
 - add p5 for roms

* PACKAGE/BOARD: patch/genimage: down-size gpt table
* PACKAGE/DEFCONFIG: add `gptfdisk` package to shared
* BOARD: firstboot: allow for switching FS type in MAIN and ROMS
* README: update firstboot_procedure.drawio.png
  - add FS change boxes and IPK installer
* BOARD: firstboot: not mandatory to resize for IPK manager
* DEFCONFIG: add default kernel patching
* DEFCONFIG: uppercase rootfs label
* BOARD: umtpr: uppercas partition LABELS
* DEFCONFIG/PACKAGE: add RSYNC pkg
* BOARD: mount FAT p5 in async (default)

* BOARD: add ROMS icons for Win
Co-Authored-By: TriForce <triforce@gznetwork.com>
2025-05-18 16:27:05 +02:00

27 lines
763 B
Diff

From defe2787bb485ab91d97c81f503955f01d738c3d Mon Sep 17 00:00:00 2001
From: Apaczer <94932128+Apaczer@users.noreply.github.com>
Date: Sun, 11 May 2025 14:36:22 +0200
Subject: [PATCH] image-hd: reduce number of GPT entries
to fit in bootloader in first sectors
---
image-hd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/image-hd.c b/image-hd.c
index 5e3a3b4..fc46e89 100644
--- a/image-hd.c
+++ b/image-hd.c
@@ -98,7 +98,7 @@ struct gpt_partition_entry {
} __attribute__((packed));
ct_assert(sizeof(struct gpt_partition_entry) == 128);
-#define GPT_ENTRIES 128
+#define GPT_ENTRIES 56
#define GPT_SECTORS (1 + GPT_ENTRIES * sizeof(struct gpt_partition_entry) / 512)
#define GPT_REVISION_1_0 0x00010000
--
2.45.2.windows.1