From d7a0148b4f7cd41bc5abaeaff087656f56538da6 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Sat, 9 Jul 2022 17:53:59 +0100 Subject: [PATCH] expect: wait for 'Terminal ready' and instruct to apply power --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 70890e9..572f2ce 100644 --- a/flake.nix +++ b/flake.nix @@ -48,6 +48,8 @@ #!${pkgs.expect}/bin/expect -f set timeout -1 spawn ${pkgs.picocom}/bin/picocom [lindex $argv 0] -b 115200 -s "${pkgs.lrzsz}/bin/sz -X" + expect "Terminal ready" + send_user "\n### Apply power to the VisionFive Board ###\n" expect "bootloader" expect "DDR" send "\r"