Init starfive visionfive 2

This commit is contained in:
Jakob Leifhelm 2023-04-16 22:43:32 +02:00
parent 3006d2860a
commit 0cc1214203
No known key found for this signature in database
GPG key ID: 6817AA0238100822
11 changed files with 270 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ 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 { }))