Skip to content

Commit

Permalink
[app] syterboot fix fail to shell
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Dec 17, 2023
1 parent 56dd81b commit 882e058
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/syter_boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,18 +669,21 @@ int main(void) {
/* Initialize the SD host controller. */
if (sunxi_sdhci_init(&sdhci0) != 0) {
printk(LOG_LEVEL_ERROR, "SMHC: %s controller init failed\n", sdhci0.name);
goto _shell;
} else {
printk(LOG_LEVEL_INFO, "SMHC: %s controller v%x initialized\n", sdhci0.name, sdhci0.reg->vers);
}

/* Initialize the SD card and check if initialization is successful. */
if (sdmmc_init(&card0, &sdhci0) != 0) {
printk(LOG_LEVEL_WARNING, "SMHC: init failed\n");
goto _shell;
}

/* Load the DTB, kernel image, and configuration data from the SD card. */
if (load_sdcard(&image) != 0) {
printk(LOG_LEVEL_WARNING, "SMHC: loading failed\n");
goto _shell;
}

/* Update boot arguments based on configuration file. */
Expand Down

0 comments on commit 882e058

Please sign in to comment.