NixOS on ARM/Raspberry Pi: Difference between revisions

imported>Bennofs
No edit summary
imported>Bobvanderlinden
Raspberry Pi 3B+ needs ttyS1 and not ttyS0. This has been confirmed by me ;).
Line 159: Line 159:
== Serial console==
== Serial console==


Your configuration.nix will need to add <code>console=ttyS0,115200n8</code> to the <code>boot.kernelParams</code> configuration to use the serial console.
Your <code>configuration.nix</code> will need to add <code>console=ttyS1,115200n8</code> to the <code>boot.kernelParams</code> configuration to use the serial console.
 
{{note|For the Raspberry Pi 3B+ it has been reported that the console may be <tt>ttyS1</tt> instead of <tt>ttyS0</tt>.}}


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 167: Line 165:
{
{
   boot.kernelParams = [
   boot.kernelParams = [
     "console=ttyS0,115200n8"
     "console=ttyS1,115200n8"
   ];
   ];
}
}