1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-25 19:19:44 +01:00

raspberry-pi/5: init

This commit is contained in:
leo60228 2024-04-25 21:57:25 -04:00
parent 797f8d8082
commit 7a0657950e
No known key found for this signature in database
GPG key ID: 6F3EB461799AD95E
4 changed files with 23 additions and 1 deletions

View file

@ -277,6 +277,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(