diff options
author | Karel Kočí <cynerd@email.cz> | 2022-04-14 15:29:58 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-04-14 15:29:58 +0200 |
commit | 8d209e89fbe9799011baf3ca5f06887209624de2 (patch) | |
tree | b6cdf338dee2a6bd421b0b23dc2c8d83441b19a8 | |
parent | cf68127aeb3fae4776af4cb514792b4607c87c4c (diff) | |
download | nixturris-8d209e89fbe9799011baf3ca5f06887209624de2.tar.gz nixturris-8d209e89fbe9799011baf3ca5f06887209624de2.tar.bz2 nixturris-8d209e89fbe9799011baf3ca5f06887209624de2.zip |
nixos: kernelParams specific for board
-rw-r--r-- | nixos/modules/turris-defaults.nix | 8 |
1 files changed, 5 insertions, 3 deletions
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 |