Workaround for SD Card Initialization bug on Pi 4 (#253)

Change-Id: I801fe7706795a71b08a9ec80534ca21745124d13
pull/259/head
David Banks 2021-12-04 12:50:41 +00:00
rodzic cab728b627
commit d879a81a84
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1729,7 +1729,11 @@ int sd_card_init(struct block_device **dev)
printf("SD: error sending SEND_SCR\r\n");
free(ret->scr);
if (!dev) free(ret);
return -1;
printf("******************************************\r\n");
printf("* Reinitializing SD Card Driver *\r\n");
printf("******************************************\r\n");
sd_power_off();
return sd_card_init((struct block_device **)&ret);
}
// Determine card version