summaryrefslogtreecommitdiffstats
path: root/pcengines
diff options
context:
space:
mode:
authorTom F <tom@tom-fitzhenry.me.uk>2019-03-24 18:48:11 +1100
committerGitHub <noreply@github.com>2019-03-24 18:48:11 +1100
commita23235a6ed3c1bc3b41481b7e75e33e318bd9bb9 (patch)
tree1cb7b85c2f8394c402e8e568c426d5150261c36a /pcengines
parenta2e36c1b0cafc7e8d1b99ed017b6b97ac8132bf1 (diff)
pcengines/apu: expose GRUB over serial
Prior to this commit, an apu's boot would go through stages of varying visibility: 1. BIOS: exposed to serial 2. GRUB: not exposed to serial 3. Linux: exposed to serial This commit changes (2) to be visible over serial, so the entire boot is visible over serial. Tested on nixos 18.09 on a https://www.pcengines.ch/apu1d.htm
Diffstat (limited to 'pcengines')
-rw-r--r--pcengines/apu/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pcengines/apu/default.nix b/pcengines/apu/default.nix
index f59f35a..521887f 100644
--- a/pcengines/apu/default.nix
+++ b/pcengines/apu/default.nix
@@ -1,3 +1,8 @@
{
boot.kernelParams = [ "console=ttyS0,115200n8" ];
+ boot.loader.grub.extraConfig = "
+ serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
+ terminal_input serial
+ terminal_output serial
+ ";
}