Skip to content

Instantly share code, notes, and snippets.

@ajvpot

ajvpot/evm.c Secret

Created June 18, 2016 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajvpot/3977c1eff2a8035e55f42b87816d9d0a to your computer and use it in GitHub Desktop.
Save ajvpot/3977c1eff2a8035e55f42b87816d9d0a to your computer and use it in GitHub Desktop.
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