Skip to content

Commit

Permalink
Merge pull request #964 from onny/starfive2-mainline
Browse files Browse the repository at this point in the history
 starfive visionfive2: use mainline kernel
  • Loading branch information
NickCao authored Sep 22, 2024
2 parents b493dfd + 230536c commit d0cb432
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 42 deletions.
35 changes: 25 additions & 10 deletions starfive/visionfive/v2/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
{ config, lib, pkgs, ... }: {
{
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;
});

kernelParams =
lib.mkDefault [ "console=tty0" "console=ttyS0,115200n8" "earlycon=sbi" ];
# Switch to default as soon they reach >= 6.11
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;

initrd.availableKernelModules = [ "dw_mmc_starfive" ];

# Support booting SD-image from NVME SSD
initrd.kernelModules = [
"clk-starfive-jh7110-aon"
"clk-starfive-jh7110-stg"
"phy-jh7110-pcie"
"pcie-starfive"
"nvme"
];

loader = {
grub.enable = lib.mkDefault false;
generic-extlinux-compatible.enable = lib.mkDefault true;
};
};

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.

12 changes: 6 additions & 6 deletions tests/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d0cb432

Please sign in to comment.