]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
am335x_evm.h: If mmcdev and bootpart switch to mmcdev 1, so should mmcroot.
authorRobert P. J. Day <rpjday@crashcourse.ca>
Mon, 9 Sep 2013 16:27:25 +0000 (12:27 -0400)
committerTom Rini <trini@ti.com>
Fri, 20 Sep 2013 20:57:40 +0000 (16:57 -0400)
If, in CONFIG_BOOTCOMMAND, the environment switches both the mmcdev
and bootpart variables to refer to MMC device 1, it would make sense
that the mmcroot env variable should switch to that device as well.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
include/configs/am335x_evm.h

index 0c3384cc4a85922f291371a6199ced636aac5854..cdf689f875a81bd1030319044b794efd4ccfe265 100644 (file)
        "run mmcboot;" \
        "setenv mmcdev 1; " \
        "setenv bootpart 1:2; " \
+       "setenv mmcroot /dev/mmcblk1p2 ro; " \
        "run mmcboot;" \
        "run nandboot;"