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