blob: dc6aebd7c7817acc8720d1d34f3c0116c672aa20 [file] [log] [blame]
Sandrine Bailleux57bffcd2020-08-04 14:46:06 +02001#
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7source [file join [file dirname [info script]] handle-arguments.inc]
8
9expect {
10 "Please press Enter to activate this console." {
11 puts "<<Linux PVM booted>>"
Olivier Deprezaebf9ba2021-01-07 10:00:21 +010012 send "\r"
13 }
14 timeout {
15 exit_uart -1
16 }
17}
18
19expect {
20 "/ # " {
21 send "insmod hafnium.ko\n"
22 }
23 timeout {
24 exit_uart -1
25 }
26}
27
28expect {
29 "Hafnium successfully loaded with 1 VMs:" {
30 puts "<<Hafnium driver started>>"
Sandrine Bailleux57bffcd2020-08-04 14:46:06 +020031 }
32 timeout {
33 exit_uart -1
34 }
35}
36
37exit_uart 0