Merge pull request #1768 from concatime/feature/add-missing-modules-of-rpi5

Add netboot support for Raspberry Pi 5
This commit is contained in:
Jörg Thalheim authored and GitHub committed 2026-03-31 05:04:29 +00:00
commit f4c4c2c0c9
8 files changed
+38 -49

No files matched your search

+3 -11
View File
@@ -7,6 +7,7 @@
{
imports = [
../common/default.nix
./audio.nix
./backlight.nix
./bluetooth.nix
@@ -29,16 +30,9 @@
boot = {
kernelPackages = lib.mkDefault (
pkgs.linuxPackagesFor (
pkgs.callPackage ../common/kernel.nix {
rpiVersion = 4;
}
)
pkgs.linuxPackagesFor (pkgs.callPackage ../common/kernel.nix { rpiVersion = 4; })
);
initrd.availableKernelModules = [
"usbhid"
"usb-storage"
"vc4"
"pcie-brcmstb" # required for the pcie bus to work
"reset-raspberrypi" # required for vl805 firmware to load
]
@@ -62,7 +56,5 @@
}
];
hardware.firmware = [
(pkgs.callPackage ../common/raspberry-pi-wireless-firmware.nix { })
];
hardware.firmware = [ (pkgs.callPackage ../common/raspberry-pi-wireless-firmware.nix { }) ];
}
+3 -3
View File
@@ -14,9 +14,9 @@ in
{
options.hardware = {
raspberry-pi."4".leds = {
eth.disable = mkDisableOption ''ethernet LEDs.'';
act.disable = mkDisableOption ''activity LED.'';
pwr.disable = mkDisableOption ''power LED.'';
eth.disable = mkDisableOption "ethernet LEDs.";
act.disable = mkDisableOption "activity LED.";
pwr.disable = mkDisableOption "power LED.";
};
};
+1 -3
View File
@@ -19,7 +19,5 @@ in
};
};
config = lib.mkIf cfg.enable {
nixpkgs.overlays = [ dt_ao_overlay ];
};
config = lib.mkIf cfg.enable { nixpkgs.overlays = [ dt_ao_overlay ]; };
}
+1 -5
View File
@@ -1,8 +1,4 @@
{
config,
lib,
...
}:
{ config, lib, ... }:
let
cfg = config.hardware.raspberry-pi."4".xhci;
in