Added serial console

This commit is contained in:
Serĉanto de Scio 2019-10-17 11:50:37 +10:00
parent 3591b681e2
commit cde6d13c14
Signed by: sercanto
GPG key ID: A4122FF3971B6865

View file

@ -12,7 +12,10 @@
]; ];
}; };
kernelPackages = pkgs.linuxPackages_latest; # For a Raspberry Pi 2 or 3) kernelPackages = pkgs.linuxPackages_latest; # For a Raspberry Pi 2 or 3)
kernelParams = ["cma=32M"]; # Needed for the virtual console to work on the RPi 3 kernelParams = [
"cma=32M"i # Needed for the virtual console to work on the RPi 3
"console=ttyS1,115200n8" # Enable the serial console
];
loader = { loader = {
generic-extlinux-compatible = { generic-extlinux-compatible = {
enable = true; # Enables the generation of /boot/extlinux/extlinux.conf enable = true; # Enables the generation of /boot/extlinux/extlinux.conf