695c8bbc42664efcae105d1a5544c7d6eadf9174
[buildroot.git] /
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
5 environment
6
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.
9
10 Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
11 ---
12 include/configs/stm32mp1.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
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
19 @@ -115,7 +115,6 @@
20 "if test ${boot_device} = serial || test ${boot_device} = usb;" \
21 "then stm32prog ${boot_device} ${boot_instance}; " \
22 "else " \
23 - "run env_check;" \
24 "if test ${boot_device} = mmc;" \
25 "then env set boot_targets \"mmc${boot_instance}\"; fi;" \
26 "if test ${boot_device} = nand;" \
27 @@ -160,6 +159,7 @@
28 "initrd_high=0xffffffff\0" \
29 "altbootcmd=run bootcmd\0" \
30 "env_default=1\0" \
31 + "run env_check;" \
32 "env_check=if test $env_default -eq 1;"\
33 " then env set env_default 0;env save;fi\0" \
34 STM32MP_BOOTCMD \
35 --
36 2.23.0
37