" androidboot.boot_device_root=mmcblk%d", mmc_map_to_kernel_blk(mmc_get_env_dev()));
strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline));
- char *storage_type = env_get("storage_type");
- if (storage_type) {
- sprintf(newbootargs,
- " androidboot.storage_type=%s",
- storage_type);
- strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline));
- } else {
- int bootdev = get_boot_device();
- if (bootdev == SD1_BOOT || bootdev == SD2_BOOT ||
- bootdev == SD3_BOOT || bootdev == SD4_BOOT) {
- sprintf(newbootargs,
- " androidboot.storage_type=sd");
- } else if (bootdev == MMC1_BOOT || bootdev == MMC2_BOOT ||
- bootdev == MMC3_BOOT || bootdev == MMC4_BOOT) {
- sprintf(newbootargs,
- " androidboot.storage_type=emmc");
- } else if (bootdev == NAND_BOOT) {
- sprintf(newbootargs,
- " androidboot.storage_type=nand");
- } else
- printf("boot device type is incorrect.\n");
- strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline));
- if (bootloader_gpt_overlay()) {
- sprintf(newbootargs, " gpt");
- strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline));
- }
- }
-
/* boot metric variables */
metrics.ble_1 = get_timer(0);
sprintf(newbootargs,