nixos-hardware/starfive/visionfive/v2/default.nix
Nick Cao 69fe256333 starfive visionfive2: let u-boot set device tree name
u-boot is able to automatically set the correct device tree name
on VisionFive 2 boards by reading their EEPROM since v2023.10.

This allows our image to work with either revision of the boards.

Reference: 16dbe3d9d4
2024-06-01 13:21:35 +00:00

22 lines
685 B
Nix

{ 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" ];
initrd.availableKernelModules = [ "dw_mmc_starfive" ];
loader = {
grub.enable = lib.mkDefault false;
generic-extlinux-compatible.enable = lib.mkDefault true;
};
};
}