]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Increase uboot timeout
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Jan 2014 12:00:21 +0000 (13:00 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Jan 2014 12:00:21 +0000 (13:00 +0100)
Sometimes 1 second was to small, perhaps due to lagging TCP connection.

novaboot

index 085b9b8672fbf32029b4ac820b34c79709978452..e3c97e5766379edff68e94465f57220bea2ffa85 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -756,9 +756,9 @@ if (defined $uboot) {
                     '=> ') || die "Initrd load failed";
     }
     $exp->send("set bootargs '$kcmd'\n");
-    $exp->expect(1, '=> ')  || die "uBoot prompt timeout";
+    $exp->expect(5, '=> ')  || die "uBoot prompt timeout";
     $exp->send("bootm $kern_addr $initrd_addr $dtb_addr\n");
-    $exp->expect(1, "\n")  || die "uBoot command timeout";
+    $exp->expect(5, "\n")  || die "uBoot command timeout";
 }
 
 if (defined $exp) {