diff options
author | Jindong <jindong.yue@nxp.com> | 2019-05-13 18:10:25 +0800 |
---|---|---|
committer | Jindong <jindong.yue@nxp.com> | 2019-05-13 18:19:52 +0800 |
commit | 80e2a488a9af99e64641adde146695626dda7d3a (patch) | |
tree | 2e3b54f81ab9706fea86211f6597db68ceb02406 /common | |
parent | 94ec725e440da10c04b5e7f1c9e59b47112c1dd0 (diff) |
MA-14712 change androidboot.storage_type to androidboot.boot_device_root
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/image-android.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/image-android.c b/common/image-android.c index 145e87e72f..934e636fc7 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -147,6 +147,10 @@ int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, 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, |