]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Preparation for storing U-Boot output to local files
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 7 Sep 2015 21:12:13 +0000 (23:12 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 7 Sep 2015 21:12:13 +0000 (23:12 +0200)
novaboot

index 6823011a23b0efb6da7411249207f0e51951c217..5f2b3ed1ef34ca5a899bc04fb129354a87a551a1 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -1099,7 +1099,13 @@ if (defined $uboot) {
        }
        chomp($cmd);
        $exp->send("$cmd\n");
-       $exp->expect($timeout, $uboot_prompt) || die "U-Boot prompt timeout";
+
+       my ($matched_pattern_position, $error,
+           $successfully_matching_string,
+           $before_match, $after_match) =
+               $exp->expect($timeout, $uboot_prompt);
+       die "No U-Boot prompt: $error" if $error;
+       #print "\n>>>>$before_match<<<<\n";
     }
 
     # Load files if there are some load lines in the script