Commit 5e31eb59f03a424371c605448b6bbc2f93da787b

Authored by Lokesh Vutla
1 parent f073f50b6e

ti_armv7_common: env: Use partuuid for detecting mmc root fs

Linux kernel can enumerate mmc sd as either mmcblk0 or mmcblk1.
But u-boot default environment assumes that sd always populates
as mmcblk0. With this the root fs is not being mounted when
mmc sd is enumerated as mmcblk1.
So use partuuid to update root= option in default environment.

Reported-by: Yan Liu <yan-liu@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

include/configs/ti_armv7_common.h
... ... @@ -61,9 +61,10 @@
61 61 #define DEFAULT_MMC_TI_ARGS \
62 62 "mmcdev=0\0" \
63 63 "mmcrootfstype=ext4 rootwait\0" \
64   - "args_mmc=setenv bootargs console=${console} " \
  64 + "finduuid=part uuid mmc 0:2 uuid\0" \
  65 + "args_mmc=run finduuid;setenv bootargs console=${console} " \
65 66 "${optargs} " \
66   - "root=${mmcroot} " \
  67 + "root=PARTUUID=${uuid} rw " \
67 68 "rootfstype=${mmcrootfstype}\0"
68 69  
69 70 /*