diff --git a/grub.patches b/grub.patches index ecb025bc114e28388b76dcc3af239e75c4ebb54a..8e92f9f54abc63474e3e628e95d0877ddbe51e67 100644 --- a/grub.patches +++ b/grub.patches @@ -229,3 +229,4 @@ Patch228: 0002-Revert-templates-Properly-disable-the-os-prober-by-d.patch Patch229: 0003-Revert-templates-Disable-the-os-prober-by-default.patch Patch230: Handle-non-continuous-data-blocks-in-directory-exten.patch Patch231: loongarch64-fix-GRUB_EFI_MAX_ALLOCATION_ADDRESS-unde.patch +Patch232: modify-efi_max_usable-addr.patch diff --git a/grub2.spec b/grub2.spec index 4a31c73d530311a798edb520002a570c224f2da6..8b3e15554afe028dc34c2efdc243eea8c77daf96 100644 --- a/grub2.spec +++ b/grub2.spec @@ -14,7 +14,7 @@ Name: grub2 Epoch: 1 Version: 2.12 -Release: 11 +Release: 12 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -447,6 +447,9 @@ fi %{_datadir}/man/man* %changelog +* Fri May 24 2024 Ouuleilei - 1:2.12-12 +- Add sophgo's patch to support risc-v machine SG2042 + * Sat May 11 2024 zhangqiumiao - 1:2.12-11 - Type:bugfix - CVE:NA diff --git a/modify-efi_max_usable-addr.patch b/modify-efi_max_usable-addr.patch new file mode 100644 index 0000000000000000000000000000000000000000..4b0c31d57d58ffeba8ee2254e8c0e0fedf304a93 --- /dev/null +++ b/modify-efi_max_usable-addr.patch @@ -0,0 +1,26 @@ +From 7ab0dc548f8221a9c336a1682df9f729b975c7ff Mon Sep 17 00:00:00 2001 +From: "jingyu.li01" +Date: Tue, 2 Jan 2024 10:09:53 +0800 +Subject: [PATCH] include/grub/riscv64: modify efi_max_usable addr + +This is a temporary solution for relocation overflow on a segmented memory +layout. + +Signed-off-by: jingyu.li01 +--- + include/grub/riscv64/efi/memory.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/grub/riscv64/efi/memory.h b/include/grub/riscv64/efi/memory.h +index c6cb32417..eb6f1bb83 100644 +--- a/include/grub/riscv64/efi/memory.h ++++ b/include/grub/riscv64/efi/memory.h +@@ -1,7 +1,7 @@ + #ifndef GRUB_MEMORY_CPU_HEADER + #include + +-#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffffffULL ++#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffULL + #define GRUB_EFI_MAX_ALLOCATION_ADDRESS GRUB_EFI_MAX_USABLE_ADDRESS + + #endif /* ! GRUB_MEMORY_CPU_HEADER */