Compare commits

...
Author SHA1 Message Date
leo60228 b2f60c8bd0 raspberry-pi/5: add kernel version assertion 2024-05-01 15:42:14 -04:00
leo60228 2ef5cda254 raspberry-pi/5: add to flake.nix 2024-05-01 15:37:43 -04:00
leo60228andSergey Kazenyuk c649cd3c83 raspberry-pi/5: add nvme module
Co-authored-by: Sergey Kazenyuk <kazenyuk@pm.me>
2024-04-30 17:47:27 -04:00
leo60228 9d8a91d679 raspberry-pi/5: add xserver configuration 2024-04-30 13:24:45 -04:00
leo60228 7a0657950e raspberry-pi/5: init 2024-04-25 21:57:25 -04:00
5 changed files with 43 additions and 1 deletions

No files matched your search

+1
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>` |
+1
View File
@@ -216,6 +216,7 @@
purism-librem-5r4 = import ./purism/librem/5r4;
raspberry-pi-2 = import ./raspberry-pi/2;
raspberry-pi-4 = import ./raspberry-pi/4;
raspberry-pi-5 = import ./raspberry-pi/5;
kobol-helios4 = import ./kobol/helios4;
samsung-np900x3c = import ./samsung/np900x3c;
starfive-visionfive-v1 = import ./starfive/visionfive/v1;
+34
View File
@@ -0,0 +1,34 @@
{ lib, pkgs, config, ... }:
{
nixpkgs.overlays = [
(import ./overlay.nix)
];
boot = {
kernelPackages = lib.mkDefault (pkgs.linuxPackagesFor pkgs.linux_rpi5);
initrd.availableKernelModules = [
"nvme"
"usbhid"
"usb_storage"
];
};
# Needed for Xorg to start (https://github.com/raspberrypi-ui/gldriver-test/blob/master/usr/lib/systemd/scripts/rp1_test.sh)
# This won't work for displays connected to the RP1 (DPI/composite/MIPI DSI), since I don't have one to test.
services.xserver.extraConfig = ''
Section "OutputClass"
Identifier "vc4"
MatchDriver "vc4"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
'';
assertions = [
{
assertion = (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1.54");
message = "The Raspberry Pi 5 requires a newer kernel version (>=6.1.54). Please upgrade nixpkgs for this system.";
}
];
}
+6
View File
@@ -0,0 +1,6 @@
final: _prev: {
linux_rpi5 = final.linux_rpi4.override {
rpiVersion = 5;
argsOverride.defconfig = "bcm2712_defconfig";
};
}
+1 -1
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(