Skip to content

Commit

Permalink
starfive visionfive2: use mainline kernel
Browse files Browse the repository at this point in the history
Co-authored-by: NickCao <[email protected]>
  • Loading branch information
onny and NickCao committed Aug 2, 2024
1 parent b55712d commit 0d672e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 34 deletions.
18 changes: 10 additions & 8 deletions starfive/visionfive/v2/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{ config, lib, pkgs, ... }: {
boot = {
# Force no ZFS (from nixos/modules/profiles/base.nix) until updated to kernel 6.0
supportedFilesystems =
lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
consoleLogLevel = lib.mkDefault 7;
kernelPackages = lib.mkDefault (pkgs.callPackage ./linux-6.6.nix {
inherit (config.boot) kernelPatches;
});
# Switch to latest or LTE as soon they reach >= 6.11
kernelPackages = lib.mkDefault pkgs.linuxPackages_testing;

kernelParams =
lib.mkDefault [ "console=tty0" "console=ttyS0,115200n8" "earlycon=sbi" ];
kernelParams = [ "console=tty0" "console=ttyS0,115200n8" "earlycon=sbi" ];

initrd.availableKernelModules = [ "dw_mmc_starfive" ];

Expand All @@ -26,4 +21,11 @@
name = "qspi-patch";
dtsFile = ./qspi-patch.dts;
}];

assertions = [
{
assertion = (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.11");
message = "The VisionFive 2 requires at least mainline kernel version 6.11 for minimum hardware support.";
}
];
}
26 changes: 0 additions & 26 deletions starfive/visionfive/v2/linux-6.6.nix

This file was deleted.

0 comments on commit 0d672e0

Please sign in to comment.