Merge "first_stage_init: increase serial console tries to 50"

This commit is contained in:
Treehugger Robot 2020-04-15 18:47:56 +00:00 committed by Gerrit Code Review
commit 0919f10fa2

View file

@ -107,7 +107,7 @@ void StartConsole() {
return;
}
int fd = -1;
int tries = 10;
int tries = 50; // should timeout after 5s
// The device driver for console may not be ready yet so retry for a while in case of failure.
while (tries--) {
fd = open("/dev/console", O_RDWR);