expect: wait for 'Terminal ready' and instruct to apply power
This commit is contained in:
parent
126d8e0bc4
commit
d7a0148b4f
@ -48,6 +48,8 @@
|
|||||||
#!${pkgs.expect}/bin/expect -f
|
#!${pkgs.expect}/bin/expect -f
|
||||||
set timeout -1
|
set timeout -1
|
||||||
spawn ${pkgs.picocom}/bin/picocom [lindex $argv 0] -b 115200 -s "${pkgs.lrzsz}/bin/sz -X"
|
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 "bootloader"
|
||||||
expect "DDR"
|
expect "DDR"
|
||||||
send "\r"
|
send "\r"
|
||||||
|
Loading…
Reference in New Issue
Block a user