summarylogtreecommitdiffstats
path: root/mtkimage-gpt-expand.patch
diff options
context:
space:
mode:
authorEric Woudstra2023-02-28 10:47:04 +0100
committerEric Woudstra2023-02-28 10:47:04 +0100
commit6d4a1a5cd2198ce967f0b5785ab4d31f7bc54848 (patch)
tree2d2a330f790bc5205ce52bfe266c9128137bcfac /mtkimage-gpt-expand.patch
parent86d8058d05e969417cd26d5bb5b12b173bb9c3ef (diff)
downloadaur-6d4a1a5cd2198ce967f0b5785ab4d31f7bc54848.tar.gz
Update to version 2023.01 for BPI-R3
Diffstat (limited to 'mtkimage-gpt-expand.patch')
-rw-r--r--mtkimage-gpt-expand.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/mtkimage-gpt-expand.patch b/mtkimage-gpt-expand.patch
index 62c9293c373a..a1819a469d14 100644
--- a/mtkimage-gpt-expand.patch
+++ b/mtkimage-gpt-expand.patch
@@ -1,4 +1,5 @@
diff -NarU 6 a/tools/mtk_image.h b/tools/mtk_image.h
+Create empty space for sectors 1 to 34.
--- a/tools/mtk_image.h 2021-06-10 20:32:04.156559289 +0200
+++ b/tools/mtk_image.h 2021-06-10 20:32:36.964722097 +0200
@@ -16,13 +16,13 @@
@@ -16,4 +17,12 @@ diff -NarU 6 a/tools/mtk_image.h b/tools/mtk_image.h
#define SF_BOOT_NAME "SF_BOOT"
#define SDMMC_BOOT_NAME "SDMMC_BOOT"
+diff -NarU 1 a/tools/mtk_image.c b/tools/mtk_image.c
+Increase memory buffer size.
+--- a/tools/mtk_image.c 2021-06-11 13:26:11.580666817 +0200
++++ b/tools/mtk_image.c 2021-06-11 13:29:14.024018325 +0200
+@@ -63,3 +63,3 @@
+ /* GFH header + 2 * 4KB pages of NAND */
+-static char hdr_tmp[sizeof(struct gfh_header) + 0x2000];
++static char hdr_tmp[sizeof(struct gfh_header) + 0x2000 + 0x10000];