From 9c2f9dfdd2a753560a59161c45f25bd647f2fb7c Mon Sep 17 00:00:00 2001 From: Ari Gerus Date: Tue, 23 Apr 2024 18:35:30 +0200 Subject: [PATCH] rpi5: change config defaults to what we need --- pkgs/rpi5-uefi.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/rpi5-uefi.nix b/pkgs/rpi5-uefi.nix index e9bd6c2..c443dc3 100644 --- a/pkgs/rpi5-uefi.nix +++ b/pkgs/rpi5-uefi.nix @@ -20,6 +20,9 @@ in stdenv.mkDerivation rec { prePatch = '' rm -rf edk2/BaseTools ln -sv ${rpi5-edk2-tools}/BaseTools edk2/BaseTools + + sed -i -e '/ACPI_SD_LIMIT_UHS_DEFAULT/s/TRUE/FALSE/' edk2-platforms/Platform/RaspberryPi/RPi5/Drivers/RpiPlatformDxe/ConfigTable.h + sed -i -e '/default\s*= SYSTEM_TABLE_MODE_ACPI/s/SYSTEM_TABLE_MODE_ACPI/SYSTEM_TABLE_MODE_BOTH/' ./edk2-platforms/Platform/RaspberryPi/RPi5/Drivers/RpiPlatformDxe/RpiPlatformDxeHii.vfr ''; configurePhase = ''