mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-02 23:21:06 +01:00
starfive visionfive2: Fix kernel on nixos-unstable
This commit is contained in:
parent
4fb7708a20
commit
f5298eb1d7
3 changed files with 12 additions and 5 deletions
|
|
@ -1,28 +0,0 @@
|
|||
{ lib, callPackage, linuxPackagesFor, kernelPatches, fetchpatch, ... }:
|
||||
|
||||
let
|
||||
modDirVersion = "6.3.0-rc3";
|
||||
linuxPkg = { lib, fetchFromGitHub, buildLinux, ... }@args:
|
||||
buildLinux (args // {
|
||||
version = "${modDirVersion}-starfive-visionfive2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "starfive-tech";
|
||||
repo = "linux";
|
||||
rev = "2a6909fb414dfc72ae391791ec6edc3eedd13e6f";
|
||||
sha256 = "sha256-FeY6N+hk0PTpuIuA1hkcS+B+ozn6iHV6YaRVx1kuYHc=";
|
||||
};
|
||||
|
||||
inherit modDirVersion;
|
||||
kernelPatches = [{ patch = ./fix-memory-size.patch; }] ++ kernelPatches;
|
||||
|
||||
structuredExtraConfig = with lib.kernel; {
|
||||
PL330_DMA = no;
|
||||
PINCTRL_STARFIVE_JH7110_SYS = yes;
|
||||
SERIAL_8250_DW = yes;
|
||||
};
|
||||
|
||||
extraMeta.branch = "JH7110_VisionFive2_upstream";
|
||||
} // (args.argsOverride or { }));
|
||||
|
||||
in lib.recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg { }))
|
||||
Loading…
Add table
Add a link
Reference in a new issue