]> git.sur5r.net Git - u-boot/commitdiff
ti_armv7_common: env: Use partuuid for detecting mmc root fs
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 28 Aug 2015 08:05:08 +0000 (13:35 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 11 Sep 2015 18:05:38 +0000 (14:05 -0400)
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>
include/configs/ti_armv7_common.h

index 1a4b6d9900a2d84a05fbda72cee510581a183f9f..6dc65158994a3479b293da37d2a13ac07e43b45e 100644 (file)
 #define DEFAULT_MMC_TI_ARGS \
        "mmcdev=0\0" \
        "mmcrootfstype=ext4 rootwait\0" \
-       "args_mmc=setenv bootargs console=${console} " \
+       "finduuid=part uuid mmc 0:2 uuid\0" \
+       "args_mmc=run finduuid;setenv bootargs console=${console} " \
                "${optargs} " \
-               "root=${mmcroot} " \
+               "root=PARTUUID=${uuid} rw " \
                "rootfstype=${mmcrootfstype}\0"
 
 /*