spm: start hafnium driver when linux booted
Improve expect script such that the Hafnium hypervisor driver is
inserted and initializes normal world VMs.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: Ib23e066a84102d4f06371eda226044bb6d4501e1
diff --git a/expect/spm-linux-uart0.exp b/expect/spm-linux-uart0.exp
index 41446fb..dc6aebd 100644
--- a/expect/spm-linux-uart0.exp
+++ b/expect/spm-linux-uart0.exp
@@ -9,6 +9,25 @@
expect {
"Please press Enter to activate this console." {
puts "<<Linux PVM booted>>"
+ send "\r"
+ }
+ timeout {
+ exit_uart -1
+ }
+}
+
+expect {
+ "/ # " {
+ send "insmod hafnium.ko\n"
+ }
+ timeout {
+ exit_uart -1
+ }
+}
+
+expect {
+ "Hafnium successfully loaded with 1 VMs:" {
+ puts "<<Hafnium driver started>>"
}
timeout {
exit_uart -1