expect: wait for 'Terminal ready' and instruct to apply power

This commit is contained in:
matthewcroughan 2022-07-09 17:53:59 +01:00
parent 126d8e0bc4
commit d7a0148b4f

View File

@ -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"