raspberry-pi/5: init

This commit is contained in:
leo60228 2024-04-25 21:57:25 -04:00 committed by mergify[bot]
parent 753176b57b
commit c4fa85b9df
4 changed files with 23 additions and 1 deletions

View file

@ -281,6 +281,7 @@ See code for all available configurations.
| [Purism Librem 5r4](purism/librem/5r4) | `<nixos-hardware/purism/librem/5r4>` |
| [Raspberry Pi 2](raspberry-pi/2) | `<nixos-hardware/raspberry-pi/2>` |
| [Raspberry Pi 4](raspberry-pi/4) | `<nixos-hardware/raspberry-pi/4>` |
| [Raspberry Pi 5](raspberry-pi/5) | `<nixos-hardware/raspberry-pi/5>` |
| [Samsung Series 9 NP900X3C](samsung/np900x3c) | `<nixos-hardware/samsung/np900x3c>` |
| [StarFive VisionFive v1](starfive/visionfive/v1) | `<nixos-hardware/starfive/visionfive/v1>` |
| [StarFive VisionFive 2](starfive/visionfive/v2) | `<nixos-hardware/starfive/visionfive/v2>` |

View file

@ -0,0 +1,15 @@
{ lib, pkgs, ... }:
{
nixpkgs.overlays = [
(import ./overlay.nix)
];
boot = {
kernelPackages = lib.mkDefault (pkgs.linuxPackagesFor pkgs.linux_rpi5);
initrd.availableKernelModules = [
"usbhid"
"usb_storage"
];
};
}

View file

@ -0,0 +1,6 @@
final: _prev: {
linux_rpi5 = final.linux_rpi4.override {
rpiVersion = 5;
argsOverride.defconfig = "bcm2712_defconfig";
};
}

View file

@ -81,7 +81,7 @@ def write_eval_test(f: IO[str], profiles: list[str]) -> None:
continue
system = "x86_64-linux"
if "raspberry-pi/4" == profile:
if "raspberry-pi/4" == profile or "raspberry-pi/5" == profile:
system = "aarch64-linux"
f.write(