u-boot: Increase EFI variable buffer size

Debian's signed shim allocates too many EFI variables to fit in the EFI
variable memory buffer. Normally it would then try to continue booting
in non-secure-boot mode, but its error handling throws a synchronous
abort that reboots the board, making it impossible to boot into Debian
unless one manually loads GRUB instead of shim. Increase EFI variable
buffer size to avoid triggering the bug.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
fsdg20230625
Alper Nebi Yasak 2023-06-22 16:12:53 +03:00
parent a01d05a261
commit f0236acbc6
4 changed files with 4 additions and 4 deletions

View File

@ -2176,7 +2176,7 @@ CONFIG_CMD_BOOTEFI_BOOTMGR=y
CONFIG_EFI_VARIABLE_FILE_STORE=y CONFIG_EFI_VARIABLE_FILE_STORE=y
# CONFIG_EFI_VARIABLE_NO_STORE is not set # CONFIG_EFI_VARIABLE_NO_STORE is not set
# CONFIG_EFI_VARIABLES_PRESEED is not set # CONFIG_EFI_VARIABLES_PRESEED is not set
CONFIG_EFI_VAR_BUF_SIZE=16384 CONFIG_EFI_VAR_BUF_SIZE=32768
# CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set # CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set
# CONFIG_EFI_CAPSULE_ON_DISK is not set # CONFIG_EFI_CAPSULE_ON_DISK is not set
CONFIG_EFI_DEVICE_PATH_TO_TEXT=y CONFIG_EFI_DEVICE_PATH_TO_TEXT=y

View File

@ -2176,7 +2176,7 @@ CONFIG_CMD_BOOTEFI_BOOTMGR=y
CONFIG_EFI_VARIABLE_FILE_STORE=y CONFIG_EFI_VARIABLE_FILE_STORE=y
# CONFIG_EFI_VARIABLE_NO_STORE is not set # CONFIG_EFI_VARIABLE_NO_STORE is not set
# CONFIG_EFI_VARIABLES_PRESEED is not set # CONFIG_EFI_VARIABLES_PRESEED is not set
CONFIG_EFI_VAR_BUF_SIZE=16384 CONFIG_EFI_VAR_BUF_SIZE=32768
# CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set # CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set
# CONFIG_EFI_CAPSULE_ON_DISK is not set # CONFIG_EFI_CAPSULE_ON_DISK is not set
CONFIG_EFI_DEVICE_PATH_TO_TEXT=y CONFIG_EFI_DEVICE_PATH_TO_TEXT=y

View File

@ -1548,7 +1548,7 @@ CONFIG_CMD_BOOTEFI_BOOTMGR=y
CONFIG_EFI_VARIABLE_FILE_STORE=y CONFIG_EFI_VARIABLE_FILE_STORE=y
# CONFIG_EFI_VARIABLE_NO_STORE is not set # CONFIG_EFI_VARIABLE_NO_STORE is not set
# CONFIG_EFI_VARIABLES_PRESEED is not set # CONFIG_EFI_VARIABLES_PRESEED is not set
CONFIG_EFI_VAR_BUF_SIZE=16384 CONFIG_EFI_VAR_BUF_SIZE=32768
CONFIG_EFI_GET_TIME=y CONFIG_EFI_GET_TIME=y
CONFIG_EFI_SET_TIME=y CONFIG_EFI_SET_TIME=y
# CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set # CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set

View File

@ -1569,7 +1569,7 @@ CONFIG_CMD_BOOTEFI_BOOTMGR=y
CONFIG_EFI_VARIABLE_FILE_STORE=y CONFIG_EFI_VARIABLE_FILE_STORE=y
# CONFIG_EFI_VARIABLE_NO_STORE is not set # CONFIG_EFI_VARIABLE_NO_STORE is not set
# CONFIG_EFI_VARIABLES_PRESEED is not set # CONFIG_EFI_VARIABLES_PRESEED is not set
CONFIG_EFI_VAR_BUF_SIZE=16384 CONFIG_EFI_VAR_BUF_SIZE=32768
CONFIG_EFI_GET_TIME=y CONFIG_EFI_GET_TIME=y
# CONFIG_EFI_SET_TIME is not set # CONFIG_EFI_SET_TIME is not set
# CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set # CONFIG_EFI_RUNTIME_UPDATE_CAPSULE is not set