]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: ti: Fix regression in distro boot for mmc
authorNuno Gonçalves <nunojpg@gmail.com>
Wed, 10 Jul 2019 11:46:57 +0000 (13:46 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2019 15:43:53 +0000 (11:43 -0400)
When devnum was changed to a local variable in distro_bootcmd we ran
into a problem on TI platforms (confirmed on Beaglebone) as we had been
using 'setenv devnum' there as well and it needs to match the other
usage.

Fixes: 13dd6665ed18 ("distro: not taint environment variables if possible")
[trini: Review other platforms, re-word commit message]
Signed-off-by: Tom Rini <trini@konsulko.com>
include/environment/ti/mmc.h

index 785fc1534572bd7790a040c0e6bb7eed12688fd3..ef053766088bcb65468a44e02876b43043731014 100644 (file)
@@ -56,7 +56,7 @@
                        "bootz; " \
                "fi;\0" \
        "mmcboot=mmc dev ${mmcdev}; " \
-               "setenv devnum ${mmcdev}; " \
+               "devnum ${mmcdev}; " \
                "setenv devtype mmc; " \
                "if mmc rescan; then " \
                        "echo SD/MMC found on device ${mmcdev};" \