From 8d209e89fbe9799011baf3ca5f06887209624de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 14 Apr 2022 15:29:58 +0200 Subject: nixos: kernelParams specific for board --- nixos/modules/turris-defaults.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nixos/modules') diff --git a/nixos/modules/turris-defaults.nix b/nixos/modules/turris-defaults.nix index 29a8aaa..8799664 100644 --- a/nixos/modules/turris-defaults.nix +++ b/nixos/modules/turris-defaults.nix @@ -33,11 +33,13 @@ in { boot.loader.grub.enable = false; boot.loader.generic-extlinux-compatible.enable = true; # Use early print to the serial console - # TODO this is only for Mox boot.kernelParams = [ - "earlyprintk" "console=ttyMV0,115200" "earlycon=ar3700_uart,0xd0012000" "boot.shell_on_fail" - "pcie_aspm=off" + ] ++ optionals (config.turris.board == "mox") [ + "earlycon=ar3700_uart,0xd0012000" "console=ttyMV0,115200" + "pcie_aspm=off" # Fix for crashes due to SError Interrupt on ath10k load + ] ++ optional (config.turris.board == "omnia") [ + "earlyprintk" "console=ttyS0,115200" ]; # Use the latest kernel -- cgit v1.2.3