Hardware/Mellanox/SN2410: Difference between revisions
creating a page for the mellanox sn2410 |
No edit summary |
||
| Line 21: | Line 21: | ||
== Setup == | == Setup == | ||
In order to get NixOS working with this switch (and all of it's many ethernet ports), some manual configuration is needed. You can use a regular installer ISO to get NixOS on this machine, but for all ports to be functional, some extra configuration is needed. Add this to your system's configuration:<syntaxhighlight lang="nix"> | |||
boot.kernelPatches = [ | |||
{ | |||
name = "mlx-stuff"; | |||
patch = null; | |||
extraConfig = '' | |||
MELLANOX_PLATFORM y | |||
MLXREG_HOTPLUG m | |||
MLXREG_IO m | |||
MLXREG_LC m | |||
NVSW_SN2201 m | |||
SENSORS_MLXREG_FAN m | |||
''; | |||
} | |||
]; | |||
boot.blacklistedKernelModules = [ | |||
"i2c_mux_reg" | |||
]; | |||
</syntaxhighlight> | |||
This adds in some missing kernel drivers for the switch into your kernel, and blacklists the `i2c_mux_reg` driver (which interferes with the mlxsw_spectrum driver). | |||
[[Category:Hardware]] | [[Category:Hardware]] | ||