NixOS on ARM: Difference between revisions

imported>Samueldr
m → Subpages links are more automated
imported>Samueldr
m Enable UART: misc. enhancemetns
Line 167: Line 167:
== Enable UART ==
== Enable UART ==


If you try to use UART to log on NixOs, you will hang on the line "Starting kernel ...". To enable UART, you will need to add at the end of the line that contains <code>loglevel4</code> in the file <code>/extlinux/extlinux.conf</code> the text
If you try to use UART to log on NixOS, you might hang on the line "Starting kernel ...". To enable UART, you will need to add at the end of the line that contains <code>loglevel4</code> in the file <code>/extlinux/extlinux.conf</code> the text:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/extlinux/extlinux.conf||<nowiki>
     console=ttyAMA0,115200n8
     console=ttyAMA0,115200n8
</nowiki>}}
</nowiki>}}
{{file|/extlinux/extlinux.conf||<nowiki>
    console=ttyS0,115200n8
</nowiki>}}
The actual device (<code>ttyAMA0</code>, <code>ttyS0</code>) will depend on the hardware.


== NixOS installation & configuration ==
== NixOS installation & configuration ==