1 From a7204e5ae1e5f87ad449c7425cf7614205e60734 Mon Sep 17 00:00:00 2001
2 From: Bartosz Bilas <bartosz.bilas@hotmail.com>
3 Date: Sun, 27 Oct 2019 09:01:12 +0100
4 Subject: [PATCH] stm32mp1: configs: fix checking the presence of an
7 Execute env check command within extra env settings section instead of
8 bootcmd whereby we are able to mount rootfs partition from sd card properly.
10 Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
12 include/configs/stm32mp1.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
16 index 988992b336..cadc0358fd 100644
17 --- a/include/configs/stm32mp1.h
18 +++ b/include/configs/stm32mp1.h
20 "if test ${boot_device} = serial || test ${boot_device} = usb;" \
21 "then stm32prog ${boot_device} ${boot_instance}; " \
24 "if test ${boot_device} = mmc;" \
25 "then env set boot_targets \"mmc${boot_instance}\"; fi;" \
26 "if test ${boot_device} = nand;" \
28 "initrd_high=0xffffffff\0" \
29 "altbootcmd=run bootcmd\0" \
32 "env_check=if test $env_default -eq 1;"\
33 " then env set env_default 0;env save;fi\0" \