mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Loop on sdcard init. This helps if one hasn't plugged in the card
fast enough, or there's other issues that cause the first try to fail.
This commit is contained in:
parent
1ce2bc9187
commit
cf5bdd4446
1 changed files with 2 additions and 1 deletions
|
|
@ -148,8 +148,9 @@ main(void)
|
|||
|
||||
board_init();
|
||||
EMAC_Init();
|
||||
sdcard_init();
|
||||
EMAC_SetMACAddress(mac);
|
||||
while (sdcard_init() == 0)
|
||||
printf("Looking for SD card\n");
|
||||
|
||||
dmadat = (void *)(0x20000000 + (16 << 20));
|
||||
/* Process configuration file */
|
||||
|
|
|
|||
Loading…
Reference in a new issue