storage_type is emmc or sd, which is not friendly
for user space, for example android health HAL need access
/sys/block/mmcblkX/stat.
Replace it with mmcblkX named as boot_device_root.
(Keep storage_type for compatibility now)
Change-Id: I7486d522696e9fe3dde8bdc8834ac11d25df7d79
Signed-off-by: Jindong <jindong.yue@nxp.com>
strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline));
}
+ sprintf(newbootargs,
+ " 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,