1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

starfive visionfive2: Fix kernel on nixos-unstable

This commit is contained in:
Jakob Leifhelm 2023-04-18 10:40:20 +02:00
parent 4fb7708a20
commit f5298eb1d7
No known key found for this signature in database
GPG key ID: 6817AA0238100822
3 changed files with 12 additions and 5 deletions

View file

@ -3,9 +3,7 @@
Create and configure the `flake.nix` file:
``` nix
{
# Kernel is broken on riscv64 see https://github.com/NixOS/nixpkgs/issues/225756
inputs.nixpkgs.url =
"github:nixos/nixpkgs/c3e12e57c3e3d5c84cc500420be4507b3de33e90";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.nixos-hardware.url = "github:nixos/nixos-hardware";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, nixos-hardware, flake-utils }:

View file

@ -5,7 +5,7 @@
lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
consoleLogLevel = lib.mkDefault 7;
kernelPackages =
lib.mkDefault (pkgs.callPackage ./linux_6_3.nix { inherit (config.boot) kernelPatches; });
lib.mkDefault (pkgs.callPackage ./linux-6.3.nix { inherit (config.boot) kernelPatches; });
kernelParams =
lib.mkDefault [ "console=tty0" "console=ttyS0,115200n8" "earlycon=sbi" ];

View file

@ -14,7 +14,16 @@ let
};
inherit modDirVersion;
kernelPatches = [{ patch = ./fix-memory-size.patch; }] ++ kernelPatches;
kernelPatches = [
{ patch = ./fix-memory-size.patch; }
{
patch = fetchpatch {
url =
"https://github.com/torvalds/linux/commit/d83806c4c0cccc0d6d3c3581a11983a9c186a138.diff";
hash = "sha256-xUnEJkzQRIIBF/0GIpS0Cd+h6OdSiJlyva5xwxtleE0=";
};
}
] ++ kernelPatches;
structuredExtraConfig = with lib.kernel; {
PL330_DMA = no;