run: look for platform boot string at beginning of line

When running the same kernel in a VM as on the host system and the
kernel boot message from the VM appears on the log output, the run tool
assumes that the host machine has rebooted unexpectedly. With this
commit, an unexpected reboot is assumed only if the kernel boot message
appears at the beginning of a line. On base-hw, we enforce a line feed
at the beginning of the boot message as the SPIKE emulator log starts
with the first message of the kernel lacking a line feed.

Fixes #2041
This commit is contained in:
Christian Prochaska 2016-07-13 14:19:57 +02:00 committed by Christian Helmuth
parent 747137c201
commit 84ee970e9b
8 changed files with 8 additions and 8 deletions

View File

@ -60,7 +60,7 @@ extern "C" void init_kernel()
Core_thread::singleton();
Genode::printf("kernel initialized\n");
Genode::printf("\nkernel initialized\n");
test();

View File

@ -60,7 +60,7 @@ set fiasco_serial_esc_arg "-serial_esc "
proc run_boot_string { } {
return "L4 Bootstrapper"
return "\nL4 Bootstrapper"
}

View File

@ -248,7 +248,7 @@ proc run_boot_dir_arm {binaries} {
proc run_boot_string { } {
return "L4 Bootstrapper"
return "\nL4 Bootstrapper"
}

View File

@ -11,7 +11,7 @@ proc run_boot_dir_hook { } {
proc run_boot_string { } {
return "kernel initialized"
return "\nkernel initialized"
}

View File

@ -25,7 +25,7 @@ proc nova_external { } {
proc run_boot_string { } {
return "NOVA Microhypervisor"
return "\n\r\fNOVA Microhypervisor"
}

View File

@ -102,7 +102,7 @@ set weaver_xml_template {
proc run_boot_string { } {
return "OKL4 -"
return "\n\r\033\\\[1m\033\\\[33mOKL4 -"
}

View File

@ -64,7 +64,7 @@ proc kernel_external { } {
proc run_boot_string { } {
return "L4Ka::Pistachio -"
return "\n\r\033\\\[1m\033\\\[33mL4Ka::Pistachio -"
}

View File

@ -15,7 +15,7 @@ proc run_boot_dir_hook { } {
proc run_boot_string { } {
return "Starting node #0"
return "\n\rStarting node #0"
}