diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index d6e5e8a7bcb..fc874e3d3a8 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -362,6 +362,13 @@ in { ubootQemuRiscv64Smode = buildUBoot { defconfig = "qemu-riscv64_smode_defconfig"; + extraPatches = [ + # https://patchwork.ozlabs.org/project/uboot/patch/20220128134713.2322800-1-alexandre.ghiti@canonical.com/ + (fetchpatch { + url = "https://patchwork.ozlabs.org/series/283391/mbox/"; + sha256 = "sha256-V0jDpx6O4bFzuaOQejdrRnLiWb5LBTx47T0TZqNtMXk="; + }) + ]; extraMeta.platforms = ["riscv64-linux"]; filesToInstall = ["u-boot.bin"]; };