summary refs log tree commit diff
path: root/pkgs/misc/uboot/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/misc/uboot/default.nix')
-rw-r--r--pkgs/misc/uboot/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix
index 5e0a451f89ee7..70fb54d4078e5 100644
--- a/pkgs/misc/uboot/default.nix
+++ b/pkgs/misc/uboot/default.nix
@@ -419,8 +419,21 @@ in {
     extraMeta.platforms = ["aarch64-linux"];
     filesToInstall = ["u-boot.bin"];
     extraConfig = ''
+      CONFIG_CMD_NVME=y
+      CONFIG_NVME=y
+      CONFIG_NVME_PCI=y
+      CONFIG_USB_STORAGE=y
+      CONFIG_USB_FUNCTION_MASS_STORAGE=y
+      CONFIG_USB_EHCI_HCD=y
+      CONFIG_USB_EHCI_GENERIC=y
+      CONFIG_USB_OHCI_HCD=y
+
       CONFIG_USB_XHCI_BRCM=y
     '';
+    extraPatches = [
+      ./rpi-cm4/0003-rpi-add-NVMe-to-boot-order.patch
+      ./rpi-cm4/0005-usb-xhci-brcm-Make-driver-compatible-with-downstream.patch
+    ];
   };
 
   ubootRaspberryPiZero = buildUBoot {