0001-stm32mp1-configs-fix-checking-the-presence-of-an-env.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. Execute env check command within extra env settings section instead of
  7. bootcmd whereby we are able to mount rootfs partition from sd card properly.
  8. Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
  9. ---
  10. include/configs/stm32mp1.h | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
  13. index 988992b336..cadc0358fd 100644
  14. --- a/include/configs/stm32mp1.h
  15. +++ b/include/configs/stm32mp1.h
  16. @@ -115,7 +115,6 @@
  17. "if test ${boot_device} = serial || test ${boot_device} = usb;" \
  18. "then stm32prog ${boot_device} ${boot_instance}; " \
  19. "else " \
  20. - "run env_check;" \
  21. "if test ${boot_device} = mmc;" \
  22. "then env set boot_targets \"mmc${boot_instance}\"; fi;" \
  23. "if test ${boot_device} = nand;" \
  24. @@ -160,6 +159,7 @@
  25. "initrd_high=0xffffffff\0" \
  26. "altbootcmd=run bootcmd\0" \
  27. "env_default=1\0" \
  28. + "run env_check;" \
  29. "env_check=if test $env_default -eq 1;"\
  30. " then env set env_default 0;env save;fi\0" \
  31. STM32MP_BOOTCMD \
  32. --
  33. 2.23.0