-
-
Save ajvpot/3977c1eff2a8035e55f42b87816d9d0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const char main_a_label[] = "main-A"; | |
/* boot_mode should be "main-A" */ | |
if (mmc_get_dev(0) != 0) | |
logical_mmc_dev = 1; // SD card present, prepare to boot from eMMC | |
... | |
part_num = get_partition_num(boot_mode); | |
... | |
if (sprintf(root, "/dev/mmcblk%dp%d", logical_mmc_dev, part_num) < 0) { | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment