Sometimes 1 second was to small, perhaps due to lagging TCP connection.
'=> ') || 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) {