* [PATCH v2 00/12] stm32: add new board support, defconfig and documentation
@ 2022-04-27 11:53 Patrice Chotard
2022-04-27 11:53 ` [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
` (11 more replies)
0 siblings, 12 replies; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot
Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Dillon Min,
Kamil Lulko, Simon Glass, Vikas Manocha
Add new stm32746g-eval board support
Add defconfig for SPL and none SPL mode for STM32F7 boards.
Add documentation on how to build and flash STM32 MCUs.
Changes in v2:
- fix documentation file stm32_MCU.rst
Patrice Chotard (12):
configs: stm32f746-disco: Concatenate spl and u-boot binaries
configs: stm32f746-disco: Rename stm32f746-disco_defconfig to
stm32f746-disco_spl_defconfig
configs: stm32f746-disco: Add stm32f746-disco_defconfig
configs: stm32f769-disco: Rename stm32f769-disco_defconfig to
stm32f769-disco_spl_defconfig
configs: stm32f769-disco: Add stm32f769-disco_defconfig
configs: stm32f769-disco: Migrate SPL flags to defconfig
configs: stm32f746-disco: Migrate SPL flags to defconfig
board: stm32f746-disco: Fix dram_init() in none SPL config
configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile
configs: stm32746g-eval: Add stm32746g-eval_defconfig
configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig
doc: Add documentation for STM32 MCUs
arch/arm/mach-stm32/Kconfig | 20 ---
board/st/stm32f429-discovery/MAINTAINERS | 1 +
board/st/stm32f429-evaluation/MAINTAINERS | 1 +
board/st/stm32f469-discovery/MAINTAINERS | 1 +
board/st/stm32f746-disco/MAINTAINERS | 5 +
board/st/stm32f746-disco/stm32f746-disco.c | 2 +-
board/st/stm32h743-disco/MAINTAINERS | 1 +
board/st/stm32h743-eval/MAINTAINERS | 1 +
board/st/stm32h750-art-pi/MAINTAINERS | 1 +
configs/stm32746g-eval_defconfig | 64 +++++++
configs/stm32746g-eval_spl_defconfig | 86 ++++++++++
configs/stm32f746-disco_defconfig | 9 +-
configs/stm32f746-disco_spl_defconfig | 86 ++++++++++
configs/stm32f769-disco_defconfig | 9 +-
configs/stm32f769-disco_spl_defconfig | 87 ++++++++++
doc/board/st/index.rst | 1 +
doc/board/st/stm32_MCU.rst | 186 +++++++++++++++++++++
include/configs/stm32f746-disco.h | 3 +-
18 files changed, 528 insertions(+), 36 deletions(-)
create mode 100644 configs/stm32746g-eval_defconfig
create mode 100644 configs/stm32746g-eval_spl_defconfig
create mode 100644 configs/stm32f746-disco_spl_defconfig
create mode 100644 configs/stm32f769-disco_spl_defconfig
create mode 100644 doc/board/st/stm32_MCU.rst
--
2.25.1
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:45 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
` (10 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
This allows to concatenate spl and u-boot binaries together.
Previously, both binaries has to be flashed separately at the correct
offset (spl at offset 0 and u-boot at offset 0x8000).
With this patch, only one binary is generated (u-boot-with-spl.bin)
and has to be copied in flash at offset 0 using openocd for example
or simply copied in exported mass storage.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
configs/stm32f746-disco_defconfig | 1 +
include/configs/stm32f746-disco.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig
index 130b90fae3..0133867942 100644
--- a/configs/stm32f746-disco_defconfig
+++ b/configs/stm32f746-disco_defconfig
@@ -9,6 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
CONFIG_SPL_TEXT_BASE=0x8000000
CONFIG_STM32F7=y
CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
CONFIG_SYS_LOAD_ADDR=0x8008000
CONFIG_DISTRO_DEFAULTS=y
CONFIG_BOOTDELAY=3
diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h
index 8ad4bb99c8..b93acdcc1f 100644
--- a/include/configs/stm32f746-disco.h
+++ b/include/configs/stm32f746-disco.h
@@ -49,6 +49,7 @@
#define CONFIG_SYS_UBOOT_START 0x080083FD
#define CONFIG_SYS_UBOOT_BASE (CONFIG_SYS_FLASH_BASE + \
CONFIG_SYS_SPL_LEN)
+#define CONFIG_SPL_PAD_TO 0x8000
/* DT blob (fdt) address */
#define CONFIG_SYS_FDT_BASE (CONFIG_SYS_FLASH_BASE + \
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
2022-04-27 11:53 ` [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:45 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
` (9 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
The current stm32f746-disco_defconfig file supports SPL, rename it to
stm32f746-disco_spl_defconfig to reflect the supported configuration.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
board/st/stm32f746-disco/MAINTAINERS | 1 +
.../{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} | 0
2 files changed, 1 insertion(+)
rename configs/{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} (100%)
diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 3bbb513ad7..06d366e8a2 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -4,4 +4,5 @@ S: Maintained
F: board/st/stm32f746-disco
F: include/configs/stm32f746-disco.h
F: configs/stm32f746-disco_defconfig
+F: configs/stm32f746-disco_spl_defconfig
F: configs/stm32f769-disco_defconfig
diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_spl_defconfig
similarity index 100%
rename from configs/stm32f746-disco_defconfig
rename to configs/stm32f746-disco_spl_defconfig
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
2022-04-27 11:53 ` [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
2022-04-27 11:53 ` [PATCH v2 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:45 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
` (8 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
Add stm32f746-disco_defconfig for stm32f746 discovery board to
build U-Boot proper.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
configs/stm32f746-disco_defconfig | 64 +++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 configs/stm32f746-disco_defconfig
diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig
new file mode 100644
index 0000000000..2c70bac9cd
--- /dev/null
+++ b/configs/stm32f746-disco_defconfig
@@ -0,0 +1,64 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08000000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_LATE_INIT=y
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=640
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (2 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
` (7 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
The current stm32f769-disco_defconfig file supports SPL, rename it to
stm32f769-disco_spl_defconfig to reflect the supported configuration.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
board/st/stm32f746-disco/MAINTAINERS | 1 +
.../{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} | 0
2 files changed, 1 insertion(+)
rename configs/{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} (100%)
diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 06d366e8a2..68f61fd5ff 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -6,3 +6,4 @@ F: include/configs/stm32f746-disco.h
F: configs/stm32f746-disco_defconfig
F: configs/stm32f746-disco_spl_defconfig
F: configs/stm32f769-disco_defconfig
+F: configs/stm32f769-disco_spl_defconfig
diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_spl_defconfig
similarity index 100%
rename from configs/stm32f769-disco_defconfig
rename to configs/stm32f769-disco_spl_defconfig
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (3 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
` (6 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
Add stm32f769-disco_defconfig for stm32f769 discovery board to
build U-Boot proper.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
configs/stm32f769-disco_defconfig | 65 +++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 configs/stm32f769-disco_defconfig
diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_defconfig
new file mode 100644
index 0000000000..3c112882cc
--- /dev/null
+++ b/configs/stm32f769-disco_defconfig
@@ -0,0 +1,65 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08000000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32f769-disco"
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_DSI=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=800
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (4 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 07/12] configs: stm32f746-disco: " Patrice Chotard
` (5 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
Migrate SPL flags to stm32f769-disco_spl_defconfig
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
configs/stm32f769-disco_spl_defconfig | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/configs/stm32f769-disco_spl_defconfig b/configs/stm32f769-disco_spl_defconfig
index f151dab04f..672c1ec065 100644
--- a/configs/stm32f769-disco_spl_defconfig
+++ b/configs/stm32f769-disco_spl_defconfig
@@ -3,12 +3,19 @@ CONFIG_ARCH_STM32=y
CONFIG_SYS_TEXT_BASE=0x08008000
CONFIG_SYS_MALLOC_LEN=0x100000
CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_NR_DRAM_BANKS=1
CONFIG_ENV_SIZE=0x2000
CONFIG_DEFAULT_DEVICE_TREE="stm32f769-disco"
CONFIG_SPL_TEXT_BASE=0x8000000
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_DRIVERS_MISC=y
CONFIG_STM32F7=y
CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_SPL=y
+CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
CONFIG_SYS_LOAD_ADDR=0x8008000
CONFIG_DISTRO_DEFAULTS=y
CONFIG_BOOTDELAY=3
@@ -18,6 +25,11 @@ CONFIG_AUTOBOOT_STOP_STR=" "
CONFIG_USE_BOOTARGS=y
CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_XIP_SUPPORT=y
+CONFIG_SPL_DM_RESET=y
CONFIG_SYS_PROMPT="U-Boot > "
CONFIG_CMD_GPT=y
# CONFIG_RANDOM_UUID is not set
@@ -29,15 +41,16 @@ CONFIG_CMD_LINK_LOCAL=y
CONFIG_CMD_BMP=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_TIMER=y
-# CONFIG_SPL_DOS_PARTITION is not set
# CONFIG_ISO_PARTITION is not set
-# CONFIG_SPL_EFI_PARTITION is not set
CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_NETCONSOLE=y
-# CONFIG_SPL_BLK is not set
-# CONFIG_SPL_DM_MMC is not set
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_SPL_CLK=y
CONFIG_ARM_PL180_MMCI=y
CONFIG_MTD=y
CONFIG_DM_MTD=y
@@ -51,9 +64,13 @@ CONFIG_DM_ETH=y
CONFIG_ETH_DESIGNWARE=y
CONFIG_MII=y
# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPL_PINCTRL=y
+CONFIG_SPL_RAM=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_STM32_QSPI=y
+CONFIG_SPL_TIMER=y
CONFIG_DM_VIDEO=y
CONFIG_BACKLIGHT_GPIO=y
CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 07/12] configs: stm32f746-disco: Migrate SPL flags to defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (5 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
` (4 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot
Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Simon Glass,
Vikas Manocha
Migrate SPL flags to stm32f746-disco_spl_defconfig
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
arch/arm/mach-stm32/Kconfig | 20 --------------------
configs/stm32f746-disco_spl_defconfig | 24 ++++++++++++++++++++----
2 files changed, 20 insertions(+), 24 deletions(-)
diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index a439dbd10f..a44ebf2597 100644
--- a/arch/arm/mach-stm32/Kconfig
+++ b/arch/arm/mach-stm32/Kconfig
@@ -25,26 +25,6 @@ config STM32F7
select PINCTRL
select PINCTRL_STM32
select RAM
- select SPL
- select SPL_BOARD_INIT
- select SPL_CLK
- select SPL_DM
- select SPL_DM_RESET
- select SPL_DM_SEQ_ALIAS
- select SPL_DRIVERS_MISC
- select SPL_GPIO
- select SPL_LIBCOMMON_SUPPORT
- select SPL_LIBGENERIC_SUPPORT
- select SPL_MTD_SUPPORT
- select SPL_OF_CONTROL
- select SPL_OF_LIBFDT
- select SPL_OF_TRANSLATE
- select SPL_PINCTRL
- select SPL_RAM
- select SPL_SERIAL
- select SPL_SYS_MALLOC_SIMPLE
- select SPL_TIMER
- select SPL_XIP_SUPPORT
select STM32_RCC
select STM32_RESET
select STM32_SDRAM
diff --git a/configs/stm32f746-disco_spl_defconfig b/configs/stm32f746-disco_spl_defconfig
index 0133867942..9fef65fa7b 100644
--- a/configs/stm32f746-disco_spl_defconfig
+++ b/configs/stm32f746-disco_spl_defconfig
@@ -3,12 +3,18 @@ CONFIG_ARCH_STM32=y
CONFIG_SYS_TEXT_BASE=0x08008000
CONFIG_SYS_MALLOC_LEN=0x100000
CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_NR_DRAM_BANKS=1
CONFIG_ENV_SIZE=0x2000
CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
CONFIG_SPL_TEXT_BASE=0x8000000
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_DRIVERS_MISC=y
CONFIG_STM32F7=y
CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_SPL=y
CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
CONFIG_SYS_LOAD_ADDR=0x8008000
CONFIG_DISTRO_DEFAULTS=y
@@ -20,6 +26,11 @@ CONFIG_USE_BOOTARGS=y
CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_BOARD_LATE_INIT=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_XIP_SUPPORT=y
+CONFIG_SPL_DM_RESET=y
CONFIG_SYS_PROMPT="U-Boot > "
CONFIG_CMD_GPT=y
# CONFIG_RANDOM_UUID is not set
@@ -31,15 +42,16 @@ CONFIG_CMD_LINK_LOCAL=y
CONFIG_CMD_BMP=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_TIMER=y
-# CONFIG_SPL_DOS_PARTITION is not set
# CONFIG_ISO_PARTITION is not set
-# CONFIG_SPL_EFI_PARTITION is not set
CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_NETCONSOLE=y
-# CONFIG_SPL_BLK is not set
-# CONFIG_SPL_DM_MMC is not set
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_SPL_CLK=y
CONFIG_ARM_PL180_MMCI=y
CONFIG_MTD=y
CONFIG_DM_MTD=y
@@ -53,9 +65,13 @@ CONFIG_DM_ETH=y
CONFIG_ETH_DESIGNWARE=y
CONFIG_MII=y
# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPL_PINCTRL=y
+CONFIG_SPL_RAM=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_STM32_QSPI=y
+CONFIG_SPL_TIMER=y
CONFIG_DM_VIDEO=y
CONFIG_BACKLIGHT_GPIO=y
CONFIG_VIDEO_STM32=y
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (6 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 07/12] configs: stm32f746-disco: " Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
` (3 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow
dram_init() execution when using none SPL defconfig
(stm32f746-disco_defconfig).
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
board/st/stm32f746-disco/stm32f746-disco.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 69f657c54b..2ab23f2f4f 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -29,7 +29,7 @@ DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
-#ifndef CONFIG_SUPPORT_SPL
+#ifndef CONFIG_SPL_BUILD
int rv;
struct udevice *dev;
rv = uclass_get_device(UCLASS_RAM, 0, &dev);
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (7 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
` (2 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
As stm32f46-disco, stm32f769-disco and stm32746g-eval are very similar
except their respective device tree file. These 3 boards uses the same
TARGET_STM32F746_DISCO flag (so same include/configs/stm32f746-disco.h
and same board file board/st/stm32f746-disco/stm32f746-disco.c)
To be able to compile these 3 boards, replace the hard-coded device-tree
name in include/configs/stm32f746-disco.h by CONFIG_DEFAULT_DEVICE_TREE
which is set in each board defconfig file with the correct value.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
include/configs/stm32f746-disco.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h
index b93acdcc1f..cc3d4b4449 100644
--- a/include/configs/stm32f746-disco.h
+++ b/include/configs/stm32f746-disco.h
@@ -34,7 +34,7 @@
#include <config_distro_bootcmd.h>
#define CONFIG_EXTRA_ENV_SETTINGS \
"kernel_addr_r=0xC0008000\0" \
- "fdtfile=stm32f746-disco.dtb\0" \
+ "fdtfile="CONFIG_DEFAULT_DEVICE_TREE".dtb\0" \
"fdt_addr_r=0xC0408000\0" \
"scriptaddr=0xC0418000\0" \
"pxefile_addr_r=0xC0428000\0" \
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (8 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
@ 2022-04-27 11:53 ` Patrice Chotard
2022-05-10 8:49 ` Patrice CHOTARD
2022-04-27 11:54 ` [PATCH v2 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
2022-04-27 11:54 ` [PATCH v2 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:53 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
Add stm32746g-eval_defconfig for stm32746g evaluation board to
build U-Boot proper.
Full board description can be found here :
https://www.st.com/en/evaluation-tools/stm32746g-eval.html
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
board/st/stm32f746-disco/MAINTAINERS | 1 +
configs/stm32746g-eval_defconfig | 64 ++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
create mode 100644 configs/stm32746g-eval_defconfig
diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 68f61fd5ff..7f128a8b69 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -5,5 +5,6 @@ F: board/st/stm32f746-disco
F: include/configs/stm32f746-disco.h
F: configs/stm32f746-disco_defconfig
F: configs/stm32f746-disco_spl_defconfig
+F: configs/stm32746g-eval_defconfig
F: configs/stm32f769-disco_defconfig
F: configs/stm32f769-disco_spl_defconfig
diff --git a/configs/stm32746g-eval_defconfig b/configs/stm32746g-eval_defconfig
new file mode 100644
index 0000000000..9f79b5a2b4
--- /dev/null
+++ b/configs/stm32746g-eval_defconfig
@@ -0,0 +1,64 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08000000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32746g-eval"
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_LATE_INIT=y
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=640
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (9 preceding siblings ...)
2022-04-27 11:53 ` [PATCH v2 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
@ 2022-04-27 11:54 ` Patrice Chotard
2022-05-10 8:49 ` Patrice CHOTARD
2022-04-27 11:54 ` [PATCH v2 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
11 siblings, 1 reply; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:54 UTC (permalink / raw)
To: u-boot; +Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
Add stm32746g-eval_spl_defconfig for stm32746g evaluation board to
build SPL.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
(no changes since v1)
board/st/stm32f746-disco/MAINTAINERS | 1 +
configs/stm32746g-eval_spl_defconfig | 86 ++++++++++++++++++++++++++++
2 files changed, 87 insertions(+)
create mode 100644 configs/stm32746g-eval_spl_defconfig
diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index 7f128a8b69..bc0952c563 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -6,5 +6,6 @@ F: include/configs/stm32f746-disco.h
F: configs/stm32f746-disco_defconfig
F: configs/stm32f746-disco_spl_defconfig
F: configs/stm32746g-eval_defconfig
+F: configs/stm32746g-eval_spl_defconfig
F: configs/stm32f769-disco_defconfig
F: configs/stm32f769-disco_spl_defconfig
diff --git a/configs/stm32746g-eval_spl_defconfig b/configs/stm32746g-eval_spl_defconfig
new file mode 100644
index 0000000000..169a9c5b23
--- /dev/null
+++ b/configs/stm32746g-eval_spl_defconfig
@@ -0,0 +1,86 @@
+CONFIG_ARM=y
+CONFIG_ARCH_STM32=y
+CONFIG_SYS_TEXT_BASE=0x08008000
+CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0xE00
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DEFAULT_DEVICE_TREE="stm32746g-eval"
+CONFIG_SPL_TEXT_BASE=0x8000000
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_DRIVERS_MISC=y
+CONFIG_STM32F7=y
+CONFIG_TARGET_STM32F746_DISCO=y
+CONFIG_SPL=y
+CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_SYS_LOAD_ADDR=0x8008000
+CONFIG_BOOTDELAY=3
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_BOARD_LATE_INIT=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_XIP_SUPPORT=y
+CONFIG_SPL_DM_RESET=y
+CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_GPT=y
+# CONFIG_RANDOM_UUID is not set
+CONFIG_CMD_MMC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_SNTP=y
+CONFIG_CMD_DNS=y
+CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_TIMER=y
+# CONFIG_ISO_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_NETCONSOLE=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_SPL_CLK=y
+CONFIG_ARM_PL180_MMCI=y
+CONFIG_MTD=y
+CONFIG_DM_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_STM32_FLASH=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_SMSC=y
+CONFIG_DM_ETH=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_MII=y
+# CONFIG_PINCTRL_FULL is not set
+CONFIG_SPL_PINCTRL=y
+CONFIG_SPL_RAM=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_STM32_QSPI=y
+CONFIG_SPL_TIMER=y
+CONFIG_DM_VIDEO=y
+CONFIG_BACKLIGHT_GPIO=y
+CONFIG_VIDEO_STM32=y
+CONFIG_VIDEO_STM32_MAX_XRES=480
+CONFIG_VIDEO_STM32_MAX_YRES=640
+CONFIG_SPLASH_SCREEN=y
+CONFIG_SPLASH_SCREEN_ALIGN=y
+CONFIG_VIDEO_BMP_RLE8=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
+CONFIG_OF_LIBFDT_OVERLAY=y
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v2 12/12] doc: Add documentation for STM32 MCUs
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
` (10 preceding siblings ...)
2022-04-27 11:54 ` [PATCH v2 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
@ 2022-04-27 11:54 ` Patrice Chotard
2022-05-06 8:49 ` [Uboot-stm32] " Patrick DELAUNAY
2022-05-10 8:49 ` Patrice CHOTARD
11 siblings, 2 replies; 26+ messages in thread
From: Patrice Chotard @ 2022-04-27 11:54 UTC (permalink / raw)
To: u-boot
Cc: Patrice CHOTARD, Patrick DELAUNAY, U-Boot STM32, Dillon Min,
Kamil Lulko, Vikas Manocha
Add documentation for STM32 MCUs (F4, F7 and H7 series).
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
Changes in v2:
- fix documentation file stm32_MCU.rst
board/st/stm32f429-discovery/MAINTAINERS | 1 +
board/st/stm32f429-evaluation/MAINTAINERS | 1 +
board/st/stm32f469-discovery/MAINTAINERS | 1 +
board/st/stm32f746-disco/MAINTAINERS | 1 +
board/st/stm32h743-disco/MAINTAINERS | 1 +
board/st/stm32h743-eval/MAINTAINERS | 1 +
board/st/stm32h750-art-pi/MAINTAINERS | 1 +
doc/board/st/index.rst | 1 +
doc/board/st/stm32_MCU.rst | 186 ++++++++++++++++++++++
9 files changed, 194 insertions(+)
create mode 100644 doc/board/st/stm32_MCU.rst
diff --git a/board/st/stm32f429-discovery/MAINTAINERS b/board/st/stm32f429-discovery/MAINTAINERS
index fdb62e98e8..7661a15fdd 100644
--- a/board/st/stm32f429-discovery/MAINTAINERS
+++ b/board/st/stm32f429-discovery/MAINTAINERS
@@ -1,6 +1,7 @@
STM32F429-DISCOVERY BOARD
M: Kamil Lulko <kamil.lulko@gmail.com>
S: Maintained
+F: doc/board/st/
F: board/st/stm32f429-discovery/
F: include/configs/stm32f429-discovery.h
F: configs/stm32f429-discovery_defconfig
diff --git a/board/st/stm32f429-evaluation/MAINTAINERS b/board/st/stm32f429-evaluation/MAINTAINERS
index 29d00ef27e..b272893ef7 100644
--- a/board/st/stm32f429-evaluation/MAINTAINERS
+++ b/board/st/stm32f429-evaluation/MAINTAINERS
@@ -1,6 +1,7 @@
STM32F429-EVALUATION BOARD
M: Patrice Chotard <patrice.chotard@foss.st.com>
S: Maintained
+F: doc/board/st/
F: board/st/stm32f429-evaluation/
F: include/configs/stm32f429-evaluation.h
F: configs/stm32f429-evaluation_defconfig
diff --git a/board/st/stm32f469-discovery/MAINTAINERS b/board/st/stm32f469-discovery/MAINTAINERS
index 5a6a78b39e..a95f93f6f6 100644
--- a/board/st/stm32f469-discovery/MAINTAINERS
+++ b/board/st/stm32f469-discovery/MAINTAINERS
@@ -1,6 +1,7 @@
STM32F469-DISCOVERY BOARD
M: Patrice Chotard <patrice.chotard@foss.st.com>
S: Maintained
+F: doc/board/st/
F: board/st/stm32f469-discovery/
F: include/configs/stm32f469-discovery.h
F: configs/stm32f469-discovery_defconfig
diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
index bc0952c563..18e4c99c4f 100644
--- a/board/st/stm32f746-disco/MAINTAINERS
+++ b/board/st/stm32f746-disco/MAINTAINERS
@@ -1,6 +1,7 @@
STM32F746 DISCOVERY BOARD
M: Vikas Manocha <vikas.manocha@st.com>
S: Maintained
+F: doc/board/st/
F: board/st/stm32f746-disco
F: include/configs/stm32f746-disco.h
F: configs/stm32f746-disco_defconfig
diff --git a/board/st/stm32h743-disco/MAINTAINERS b/board/st/stm32h743-disco/MAINTAINERS
index 60fbe344f8..f4ecef3aa5 100644
--- a/board/st/stm32h743-disco/MAINTAINERS
+++ b/board/st/stm32h743-disco/MAINTAINERS
@@ -1,6 +1,7 @@
STM32H743 DISCOVERY BOARD
M: Patrice Chotard <patrice.chotard@foss.st.com>
S: Maintained
+F: doc/board/st/
F: board/st/stm32h743-disco
F: include/configs/stm32h743-disco.h
F: configs/stm32h743-disco_defconfig
diff --git a/board/st/stm32h743-eval/MAINTAINERS b/board/st/stm32h743-eval/MAINTAINERS
index fda93db777..b69e0d4abb 100644
--- a/board/st/stm32h743-eval/MAINTAINERS
+++ b/board/st/stm32h743-eval/MAINTAINERS
@@ -1,6 +1,7 @@
STM32H743 EVALUATION BOARD
M: Patrice Chotard <patrice.chotard@foss.st.com>
S: Maintained
+F: doc/board/st/
F: board/st/stm32h743-eval
F: include/configs/stm32h743-eval.h
F: configs/stm32h743-eval_defconfig
diff --git a/board/st/stm32h750-art-pi/MAINTAINERS b/board/st/stm32h750-art-pi/MAINTAINERS
index 9578833068..2fd69e6d1c 100644
--- a/board/st/stm32h750-art-pi/MAINTAINERS
+++ b/board/st/stm32h750-art-pi/MAINTAINERS
@@ -1,6 +1,7 @@
STM32H750 ART PI BOARD
M: Dillon Min <dillon.minfei@gmail.com>
S: Maintained
+F: doc/board/st/
F: board/st/stm32h750-art-pi
F: include/configs/stm32h750-art-pi.h
F: configs/stm32h750-art-pi_defconfig
diff --git a/doc/board/st/index.rst b/doc/board/st/index.rst
index 9bba42f1da..2a8a4ef3b8 100644
--- a/doc/board/st/index.rst
+++ b/doc/board/st/index.rst
@@ -8,3 +8,4 @@ STMicroelectronics
st-dt
stm32mp1
+ stm32_MCU
diff --git a/doc/board/st/stm32_MCU.rst b/doc/board/st/stm32_MCU.rst
new file mode 100644
index 0000000000..7ff7c730fa
--- /dev/null
+++ b/doc/board/st/stm32_MCU.rst
@@ -0,0 +1,186 @@
+.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
+.. sectionauthor:: Patrice Chotard <patrice.chotardy@foss.st.com>
+
+STM32 MCU boards
+=================
+
+This is a quick instruction for setup STM32 MCU boards.
+
+Supported devices
+-----------------
+
+U-Boot supports the following STMP32 MCU SoCs:
+
+ - STM32F429
+ - STM32F469
+ - STM32F746
+ - STM32F769
+ - STM32H743
+ - STM32H750
+
+SoCs information:
+-----------------
+STM32F4 series are Cortex-M4 MCU.
+STM32F7 and STM32H7 series are Cortex-M7 MCU.
+
+ + STM32F4 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f4-series.html
+ + STM32F7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f7-series.html
+ + STM32H7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32h7-series.html
+
+Currently the following boards are supported:
+
+ + stm32f429-discovery
+ + stm32f469-discovery
+ + stm32746g-evaluation
+ + stm32f746-discovery
+ + stm32f769-discovery
+ + stm32h743i-discovery
+ + stm32h743i-evaluation
+ + stm32h750i-art-pi
+
+Boot Sequences
+--------------
+
+For STM32F7 series, 2 boot configurations are supported with and without SPL
+
++------------------------+-------------------------+--------------+
+| **FSBL** | **SSBL** | **OS** |
++------------------------+-------------------------+--------------+
+| First Stage Bootloader | Second Stage Bootloader | Linux Kernel |
++------------------------+-------------------------+--------------+
+| embedded Flash | DDR |
++------------------------+-------------------------+--------------+
+
+The boot chain with SPL
+```````````````````````
+
+defconfig_file :
+ + **stm32746g-eval_spl_defconfig**
+ + **stm32f746-disco_spl_defconfig**
+ + **stm32f769-disco_spl_defconfig**
+
++------------+------------+-------+
+| FSBL | SSBL | OS |
++------------+------------+-------+
+|U-Boot SPL | U-Boot | Linux |
++------------+------------+-------+
+
+The boot chain without SPL
+``````````````````````````
+
+defconfig_file :
+ + **stm32f429-discovery_defconfig**
+ + **stm32f429-evaluation_defconfig**
+ + **stm32f469-discovery_defconfig**
+ + **stm32746g-eval_defconfig**
+ + **stm32f746-disco_defconfig**
+ + **stm32f769-disco_defconfig**
+ + **stm32h743-disco_defconfig**
+ + **stm32h743-eval_defconfig**
+ + **stm32h750-art-pi_defconfig**
+
++-----------+-------+
+| FSBL | OS |
++-----------+-------+
+|U-Boot | Linux |
++-----------+-------+
+
+Build Procedure
+---------------
+
+1. Install the required tools for U-Boot
+
+ * install package needed in U-Boot makefile
+ (libssl-dev, swig, libpython-dev...)
+
+ * install ARMv7 toolchain for 32bit Cortex-A (from Linaro,
+ from SDK for STM32MP15x, or any crosstoolchains from your distribution)
+ (you can use any gcc cross compiler compatible with U-Boot)
+
+2. Set the cross compiler::
+
+ # export CROSS_COMPILE=/path/to/toolchain/arm-linux-gnueabi-
+
+3. Select the output directory (optional)::
+
+ # export KBUILD_OUTPUT=/path/to/output
+
+ for example: use one output directory for each configuration::
+
+ # export KBUILD_OUTPUT=stm32f4
+ # export KBUILD_OUTPUT=stm32f7
+ # export KBUILD_OUTPUT=stm32h7
+
+ you can build outside of code directory::
+
+ # export KBUILD_OUTPUT=../build/stm32f4
+
+4. Configure U-Boot::
+
+ # make <defconfig_file>
+
+ For example with <defconfig_file>:
+
+ - For **stm32f429 discovery** board : **stm32f429-discovery_defconfig**
+ - For **stm32f769 discovery** board with SPL: **stm32f769-disco_spl_defconfig**
+ - For **stm32f769 discovery** board without SPL: **stm32f769-disco_defconfig**
+
+5. Configure the device-tree and build the U-Boot image::
+
+ # make DEVICE_TREE=<name> all
+
+ Examples:
+
+ a) boot with SPL on stm32f746 discovery board::
+
+ # export KBUILD_OUTPUT=stm32f746-disco
+ # make stm32f746-disco_spl_defconfig
+ # make all
+
+ b) boot without SPL on stm32f746 discovery board::
+
+ # export KBUILD_OUTPUT=stm32f746-disco
+ # make stm32f746-disco_defconfig
+ # make all
+
+ c) boot on stm32h743 discovery board::
+
+ # export KBUILD_OUTPUT=stm32h743-disco
+ # make stm32h743-disco_defconfig
+ # make all
+
+ d) boot on stm32h743 evaluation board::
+
+ # export KBUILD_OUTPUT=stm32h743-disco
+ # make stm32h743-eval_defconfig
+ # make all
+
+6. U-Boot Output files
+
+ So in the output directory (selected by KBUILD_OUTPUT),
+ you can found the needed U-Boot files, for example::
+
+ - stm32f746-disco_defconfig = **u-boot-dtb.bin** and **u-boot.dtb**
+
+ - FSBL = u-boot-dtb.bin
+
+ - stm32f746-disco_spl_defconfig = **u-boot-dtb.bin**, **u-boot.dtb** and **u-boot-with-spl.bin**
+
+ - FSBL + SSBL = u-boot-with-spl.bin
+ - SSBL = u-boot-dtb.bin
+
+7. Flash U-Boot files
+
+Plug STM32 MCUs board using the USB ST-Link connector, hence it will expose
+the flash area as a mass-storage. In this mass-storage you will find the
+following files:
+
+- DETAILS.TXT: give the bootrom version and build
+- MBED.HTM: shortcul to the hardware board description web page from st.com.
+
+Copy/paste the u-boot.bin or u-boot-with-spl.bin (in case of bootchain with SPL)
+to this mass-storage. The "COM" LED will blink alternatively red and green during
+the flash process. When done the board will reboot automatically.
+
+In case of boot with SPL, by default SPL will try to load either a Linux
+kernel (falcon mode) or, if the key "c" is maintained pressed, the main U-Boot.
--
2.25.1
^ permalink raw reply related [flat|nested] 26+ messages in thread
* Re: [Uboot-stm32] [PATCH v2 12/12] doc: Add documentation for STM32 MCUs
2022-04-27 11:54 ` [PATCH v2 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
@ 2022-05-06 8:49 ` Patrick DELAUNAY
2022-05-10 8:49 ` Patrice CHOTARD
1 sibling, 0 replies; 26+ messages in thread
From: Patrick DELAUNAY @ 2022-05-06 8:49 UTC (permalink / raw)
To: Patrice Chotard, u-boot
Cc: U-Boot STM32, Kamil Lulko, Dillon Min, Vikas Manocha
Hi,
On 4/27/22 13:54, Patrice Chotard wrote:
> Add documentation for STM32 MCUs (F4, F7 and H7 series).
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
>
> ---
>
> Changes in v2:
> - fix documentation file stm32_MCU.rst
>
> board/st/stm32f429-discovery/MAINTAINERS | 1 +
> board/st/stm32f429-evaluation/MAINTAINERS | 1 +
> board/st/stm32f469-discovery/MAINTAINERS | 1 +
> board/st/stm32f746-disco/MAINTAINERS | 1 +
> board/st/stm32h743-disco/MAINTAINERS | 1 +
> board/st/stm32h743-eval/MAINTAINERS | 1 +
> board/st/stm32h750-art-pi/MAINTAINERS | 1 +
> doc/board/st/index.rst | 1 +
> doc/board/st/stm32_MCU.rst | 186 ++++++++++++++++++++++
> 9 files changed, 194 insertions(+)
> create mode 100644 doc/board/st/stm32_MCU.rst
>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Thanks
Patrick
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries
2022-04-27 11:53 ` [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
@ 2022-05-10 8:45 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:45 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> This allows to concatenate spl and u-boot binaries together.
> Previously, both binaries has to be flashed separately at the correct
> offset (spl at offset 0 and u-boot at offset 0x8000).
> With this patch, only one binary is generated (u-boot-with-spl.bin)
> and has to be copied in flash at offset 0 using openocd for example
> or simply copied in exported mass storage.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> configs/stm32f746-disco_defconfig | 1 +
> include/configs/stm32f746-disco.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig
> index 130b90fae3..0133867942 100644
> --- a/configs/stm32f746-disco_defconfig
> +++ b/configs/stm32f746-disco_defconfig
> @@ -9,6 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
> CONFIG_SPL_TEXT_BASE=0x8000000
> CONFIG_STM32F7=y
> CONFIG_TARGET_STM32F746_DISCO=y
> +CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
> CONFIG_SYS_LOAD_ADDR=0x8008000
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_BOOTDELAY=3
> diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h
> index 8ad4bb99c8..b93acdcc1f 100644
> --- a/include/configs/stm32f746-disco.h
> +++ b/include/configs/stm32f746-disco.h
> @@ -49,6 +49,7 @@
> #define CONFIG_SYS_UBOOT_START 0x080083FD
> #define CONFIG_SYS_UBOOT_BASE (CONFIG_SYS_FLASH_BASE + \
> CONFIG_SYS_SPL_LEN)
> +#define CONFIG_SPL_PAD_TO 0x8000
>
> /* DT blob (fdt) address */
> #define CONFIG_SYS_FDT_BASE (CONFIG_SYS_FLASH_BASE + \
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig
2022-04-27 11:53 ` [PATCH v2 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
@ 2022-05-10 8:45 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:45 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> The current stm32f746-disco_defconfig file supports SPL, rename it to
> stm32f746-disco_spl_defconfig to reflect the supported configuration.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> board/st/stm32f746-disco/MAINTAINERS | 1 +
> .../{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} | 0
> 2 files changed, 1 insertion(+)
> rename configs/{stm32f746-disco_defconfig => stm32f746-disco_spl_defconfig} (100%)
>
> diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
> index 3bbb513ad7..06d366e8a2 100644
> --- a/board/st/stm32f746-disco/MAINTAINERS
> +++ b/board/st/stm32f746-disco/MAINTAINERS
> @@ -4,4 +4,5 @@ S: Maintained
> F: board/st/stm32f746-disco
> F: include/configs/stm32f746-disco.h
> F: configs/stm32f746-disco_defconfig
> +F: configs/stm32f746-disco_spl_defconfig
> F: configs/stm32f769-disco_defconfig
> diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_spl_defconfig
> similarity index 100%
> rename from configs/stm32f746-disco_defconfig
> rename to configs/stm32f746-disco_spl_defconfig
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig
2022-04-27 11:53 ` [PATCH v2 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
@ 2022-05-10 8:45 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:45 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> Add stm32f746-disco_defconfig for stm32f746 discovery board to
> build U-Boot proper.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> configs/stm32f746-disco_defconfig | 64 +++++++++++++++++++++++++++++++
> 1 file changed, 64 insertions(+)
> create mode 100644 configs/stm32f746-disco_defconfig
>
> diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig
> new file mode 100644
> index 0000000000..2c70bac9cd
> --- /dev/null
> +++ b/configs/stm32f746-disco_defconfig
> @@ -0,0 +1,64 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_STM32=y
> +CONFIG_SYS_TEXT_BASE=0x08000000
> +CONFIG_SYS_MALLOC_LEN=0x100000
> +CONFIG_SYS_MALLOC_F_LEN=0xE00
> +CONFIG_NR_DRAM_BANKS=1
> +CONFIG_ENV_SIZE=0x2000
> +CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
> +CONFIG_STM32F7=y
> +CONFIG_TARGET_STM32F746_DISCO=y
> +CONFIG_DISTRO_DEFAULTS=y
> +CONFIG_SYS_LOAD_ADDR=0x8008000
> +CONFIG_BOOTDELAY=3
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
> +CONFIG_AUTOBOOT_STOP_STR=" "
> +CONFIG_USE_BOOTARGS=y
> +CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
> +# CONFIG_DISPLAY_CPUINFO is not set
> +CONFIG_BOARD_LATE_INIT=y
> +CONFIG_SYS_PROMPT="U-Boot > "
> +CONFIG_CMD_GPT=y
> +# CONFIG_RANDOM_UUID is not set
> +CONFIG_CMD_MMC=y
> +# CONFIG_CMD_SETEXPR is not set
> +CONFIG_CMD_SNTP=y
> +CONFIG_CMD_DNS=y
> +CONFIG_CMD_LINK_LOCAL=y
> +CONFIG_CMD_BMP=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_TIMER=y
> +# CONFIG_ISO_PARTITION is not set
> +CONFIG_OF_CONTROL=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_NET_RANDOM_ETHADDR=y
> +CONFIG_NETCONSOLE=y
> +CONFIG_ARM_PL180_MMCI=y
> +CONFIG_MTD=y
> +CONFIG_DM_MTD=y
> +CONFIG_MTD_NOR_FLASH=y
> +CONFIG_STM32_FLASH=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +CONFIG_SPI_FLASH_STMICRO=y
> +CONFIG_PHY_SMSC=y
> +CONFIG_DM_ETH=y
> +CONFIG_ETH_DESIGNWARE=y
> +CONFIG_MII=y
> +# CONFIG_PINCTRL_FULL is not set
> +CONFIG_SPI=y
> +CONFIG_DM_SPI=y
> +CONFIG_STM32_QSPI=y
> +CONFIG_DM_VIDEO=y
> +CONFIG_BACKLIGHT_GPIO=y
> +CONFIG_VIDEO_STM32=y
> +CONFIG_VIDEO_STM32_MAX_XRES=480
> +CONFIG_VIDEO_STM32_MAX_YRES=640
> +CONFIG_SPLASH_SCREEN=y
> +CONFIG_SPLASH_SCREEN_ALIGN=y
> +CONFIG_VIDEO_BMP_RLE8=y
> +CONFIG_BMP_16BPP=y
> +CONFIG_BMP_24BPP=y
> +CONFIG_BMP_32BPP=y
> +CONFIG_OF_LIBFDT_OVERLAY=y
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig
2022-04-27 11:53 ` [PATCH v2 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
@ 2022-05-10 8:46 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:46 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> The current stm32f769-disco_defconfig file supports SPL, rename it to
> stm32f769-disco_spl_defconfig to reflect the supported configuration.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> board/st/stm32f746-disco/MAINTAINERS | 1 +
> .../{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} | 0
> 2 files changed, 1 insertion(+)
> rename configs/{stm32f769-disco_defconfig => stm32f769-disco_spl_defconfig} (100%)
>
> diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
> index 06d366e8a2..68f61fd5ff 100644
> --- a/board/st/stm32f746-disco/MAINTAINERS
> +++ b/board/st/stm32f746-disco/MAINTAINERS
> @@ -6,3 +6,4 @@ F: include/configs/stm32f746-disco.h
> F: configs/stm32f746-disco_defconfig
> F: configs/stm32f746-disco_spl_defconfig
> F: configs/stm32f769-disco_defconfig
> +F: configs/stm32f769-disco_spl_defconfig
> diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_spl_defconfig
> similarity index 100%
> rename from configs/stm32f769-disco_defconfig
> rename to configs/stm32f769-disco_spl_defconfig
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig
2022-04-27 11:53 ` [PATCH v2 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
@ 2022-05-10 8:46 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:46 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> Add stm32f769-disco_defconfig for stm32f769 discovery board to
> build U-Boot proper.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> configs/stm32f769-disco_defconfig | 65 +++++++++++++++++++++++++++++++
> 1 file changed, 65 insertions(+)
> create mode 100644 configs/stm32f769-disco_defconfig
>
> diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_defconfig
> new file mode 100644
> index 0000000000..3c112882cc
> --- /dev/null
> +++ b/configs/stm32f769-disco_defconfig
> @@ -0,0 +1,65 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_STM32=y
> +CONFIG_SYS_TEXT_BASE=0x08000000
> +CONFIG_SYS_MALLOC_LEN=0x100000
> +CONFIG_SYS_MALLOC_F_LEN=0xE00
> +CONFIG_NR_DRAM_BANKS=1
> +CONFIG_ENV_SIZE=0x2000
> +CONFIG_DEFAULT_DEVICE_TREE="stm32f769-disco"
> +CONFIG_STM32F7=y
> +CONFIG_TARGET_STM32F746_DISCO=y
> +CONFIG_DISTRO_DEFAULTS=y
> +CONFIG_SYS_LOAD_ADDR=0x8008000
> +CONFIG_BOOTDELAY=3
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
> +CONFIG_AUTOBOOT_STOP_STR=" "
> +CONFIG_USE_BOOTARGS=y
> +CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
> +# CONFIG_DISPLAY_CPUINFO is not set
> +CONFIG_SYS_PROMPT="U-Boot > "
> +CONFIG_CMD_GPT=y
> +# CONFIG_RANDOM_UUID is not set
> +CONFIG_CMD_MMC=y
> +# CONFIG_CMD_SETEXPR is not set
> +CONFIG_CMD_SNTP=y
> +CONFIG_CMD_DNS=y
> +CONFIG_CMD_LINK_LOCAL=y
> +CONFIG_CMD_BMP=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_TIMER=y
> +# CONFIG_ISO_PARTITION is not set
> +CONFIG_OF_CONTROL=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_NET_RANDOM_ETHADDR=y
> +CONFIG_NETCONSOLE=y
> +CONFIG_ARM_PL180_MMCI=y
> +CONFIG_MTD=y
> +CONFIG_DM_MTD=y
> +CONFIG_MTD_NOR_FLASH=y
> +CONFIG_STM32_FLASH=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +CONFIG_SPI_FLASH_STMICRO=y
> +CONFIG_PHY_SMSC=y
> +CONFIG_DM_ETH=y
> +CONFIG_ETH_DESIGNWARE=y
> +CONFIG_MII=y
> +# CONFIG_PINCTRL_FULL is not set
> +CONFIG_SPI=y
> +CONFIG_DM_SPI=y
> +CONFIG_STM32_QSPI=y
> +CONFIG_DM_VIDEO=y
> +CONFIG_BACKLIGHT_GPIO=y
> +CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
> +CONFIG_VIDEO_STM32=y
> +CONFIG_VIDEO_STM32_DSI=y
> +CONFIG_VIDEO_STM32_MAX_XRES=480
> +CONFIG_VIDEO_STM32_MAX_YRES=800
> +CONFIG_SPLASH_SCREEN=y
> +CONFIG_SPLASH_SCREEN_ALIGN=y
> +CONFIG_VIDEO_BMP_RLE8=y
> +CONFIG_BMP_16BPP=y
> +CONFIG_BMP_24BPP=y
> +CONFIG_BMP_32BPP=y
> +CONFIG_OF_LIBFDT_OVERLAY=y
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig
2022-04-27 11:53 ` [PATCH v2 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
@ 2022-05-10 8:46 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:46 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> Migrate SPL flags to stm32f769-disco_spl_defconfig
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> configs/stm32f769-disco_spl_defconfig | 25 +++++++++++++++++++++----
> 1 file changed, 21 insertions(+), 4 deletions(-)
>
> diff --git a/configs/stm32f769-disco_spl_defconfig b/configs/stm32f769-disco_spl_defconfig
> index f151dab04f..672c1ec065 100644
> --- a/configs/stm32f769-disco_spl_defconfig
> +++ b/configs/stm32f769-disco_spl_defconfig
> @@ -3,12 +3,19 @@ CONFIG_ARCH_STM32=y
> CONFIG_SYS_TEXT_BASE=0x08008000
> CONFIG_SYS_MALLOC_LEN=0x100000
> CONFIG_SYS_MALLOC_F_LEN=0xE00
> +CONFIG_SPL_GPIO=y
> +CONFIG_SPL_LIBCOMMON_SUPPORT=y
> +CONFIG_SPL_LIBGENERIC_SUPPORT=y
> CONFIG_NR_DRAM_BANKS=1
> CONFIG_ENV_SIZE=0x2000
> CONFIG_DEFAULT_DEVICE_TREE="stm32f769-disco"
> CONFIG_SPL_TEXT_BASE=0x8000000
> +CONFIG_SPL_SERIAL=y
> +CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_STM32F7=y
> CONFIG_TARGET_STM32F746_DISCO=y
> +CONFIG_SPL=y
> +CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
> CONFIG_SYS_LOAD_ADDR=0x8008000
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_BOOTDELAY=3
> @@ -18,6 +25,11 @@ CONFIG_AUTOBOOT_STOP_STR=" "
> CONFIG_USE_BOOTARGS=y
> CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
> # CONFIG_DISPLAY_CPUINFO is not set
> +CONFIG_SPL_BOARD_INIT=y
> +CONFIG_SPL_SYS_MALLOC_SIMPLE=y
> +CONFIG_SPL_MTD_SUPPORT=y
> +CONFIG_SPL_XIP_SUPPORT=y
> +CONFIG_SPL_DM_RESET=y
> CONFIG_SYS_PROMPT="U-Boot > "
> CONFIG_CMD_GPT=y
> # CONFIG_RANDOM_UUID is not set
> @@ -29,15 +41,16 @@ CONFIG_CMD_LINK_LOCAL=y
> CONFIG_CMD_BMP=y
> CONFIG_CMD_CACHE=y
> CONFIG_CMD_TIMER=y
> -# CONFIG_SPL_DOS_PARTITION is not set
> # CONFIG_ISO_PARTITION is not set
> -# CONFIG_SPL_EFI_PARTITION is not set
> CONFIG_OF_CONTROL=y
> +CONFIG_SPL_OF_CONTROL=y
> CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_NETCONSOLE=y
> -# CONFIG_SPL_BLK is not set
> -# CONFIG_SPL_DM_MMC is not set
> +CONFIG_SPL_DM=y
> +CONFIG_SPL_DM_SEQ_ALIAS=y
> +CONFIG_SPL_OF_TRANSLATE=y
> +CONFIG_SPL_CLK=y
> CONFIG_ARM_PL180_MMCI=y
> CONFIG_MTD=y
> CONFIG_DM_MTD=y
> @@ -51,9 +64,13 @@ CONFIG_DM_ETH=y
> CONFIG_ETH_DESIGNWARE=y
> CONFIG_MII=y
> # CONFIG_PINCTRL_FULL is not set
> +CONFIG_SPL_PINCTRL=y
> +CONFIG_SPL_RAM=y
> +CONFIG_SPECIFY_CONSOLE_INDEX=y
> CONFIG_SPI=y
> CONFIG_DM_SPI=y
> CONFIG_STM32_QSPI=y
> +CONFIG_SPL_TIMER=y
> CONFIG_DM_VIDEO=y
> CONFIG_BACKLIGHT_GPIO=y
> CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 07/12] configs: stm32f746-disco: Migrate SPL flags to defconfig
2022-04-27 11:53 ` [PATCH v2 07/12] configs: stm32f746-disco: " Patrice Chotard
@ 2022-05-10 8:46 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:46 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Simon Glass, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> Migrate SPL flags to stm32f746-disco_spl_defconfig
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> arch/arm/mach-stm32/Kconfig | 20 --------------------
> configs/stm32f746-disco_spl_defconfig | 24 ++++++++++++++++++++----
> 2 files changed, 20 insertions(+), 24 deletions(-)
>
> diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
> index a439dbd10f..a44ebf2597 100644
> --- a/arch/arm/mach-stm32/Kconfig
> +++ b/arch/arm/mach-stm32/Kconfig
> @@ -25,26 +25,6 @@ config STM32F7
> select PINCTRL
> select PINCTRL_STM32
> select RAM
> - select SPL
> - select SPL_BOARD_INIT
> - select SPL_CLK
> - select SPL_DM
> - select SPL_DM_RESET
> - select SPL_DM_SEQ_ALIAS
> - select SPL_DRIVERS_MISC
> - select SPL_GPIO
> - select SPL_LIBCOMMON_SUPPORT
> - select SPL_LIBGENERIC_SUPPORT
> - select SPL_MTD_SUPPORT
> - select SPL_OF_CONTROL
> - select SPL_OF_LIBFDT
> - select SPL_OF_TRANSLATE
> - select SPL_PINCTRL
> - select SPL_RAM
> - select SPL_SERIAL
> - select SPL_SYS_MALLOC_SIMPLE
> - select SPL_TIMER
> - select SPL_XIP_SUPPORT
> select STM32_RCC
> select STM32_RESET
> select STM32_SDRAM
> diff --git a/configs/stm32f746-disco_spl_defconfig b/configs/stm32f746-disco_spl_defconfig
> index 0133867942..9fef65fa7b 100644
> --- a/configs/stm32f746-disco_spl_defconfig
> +++ b/configs/stm32f746-disco_spl_defconfig
> @@ -3,12 +3,18 @@ CONFIG_ARCH_STM32=y
> CONFIG_SYS_TEXT_BASE=0x08008000
> CONFIG_SYS_MALLOC_LEN=0x100000
> CONFIG_SYS_MALLOC_F_LEN=0xE00
> +CONFIG_SPL_GPIO=y
> +CONFIG_SPL_LIBCOMMON_SUPPORT=y
> +CONFIG_SPL_LIBGENERIC_SUPPORT=y
> CONFIG_NR_DRAM_BANKS=1
> CONFIG_ENV_SIZE=0x2000
> CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco"
> CONFIG_SPL_TEXT_BASE=0x8000000
> +CONFIG_SPL_SERIAL=y
> +CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_STM32F7=y
> CONFIG_TARGET_STM32F746_DISCO=y
> +CONFIG_SPL=y
> CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
> CONFIG_SYS_LOAD_ADDR=0x8008000
> CONFIG_DISTRO_DEFAULTS=y
> @@ -20,6 +26,11 @@ CONFIG_USE_BOOTARGS=y
> CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
> # CONFIG_DISPLAY_CPUINFO is not set
> CONFIG_BOARD_LATE_INIT=y
> +CONFIG_SPL_BOARD_INIT=y
> +CONFIG_SPL_SYS_MALLOC_SIMPLE=y
> +CONFIG_SPL_MTD_SUPPORT=y
> +CONFIG_SPL_XIP_SUPPORT=y
> +CONFIG_SPL_DM_RESET=y
> CONFIG_SYS_PROMPT="U-Boot > "
> CONFIG_CMD_GPT=y
> # CONFIG_RANDOM_UUID is not set
> @@ -31,15 +42,16 @@ CONFIG_CMD_LINK_LOCAL=y
> CONFIG_CMD_BMP=y
> CONFIG_CMD_CACHE=y
> CONFIG_CMD_TIMER=y
> -# CONFIG_SPL_DOS_PARTITION is not set
> # CONFIG_ISO_PARTITION is not set
> -# CONFIG_SPL_EFI_PARTITION is not set
> CONFIG_OF_CONTROL=y
> +CONFIG_SPL_OF_CONTROL=y
> CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_NETCONSOLE=y
> -# CONFIG_SPL_BLK is not set
> -# CONFIG_SPL_DM_MMC is not set
> +CONFIG_SPL_DM=y
> +CONFIG_SPL_DM_SEQ_ALIAS=y
> +CONFIG_SPL_OF_TRANSLATE=y
> +CONFIG_SPL_CLK=y
> CONFIG_ARM_PL180_MMCI=y
> CONFIG_MTD=y
> CONFIG_DM_MTD=y
> @@ -53,9 +65,13 @@ CONFIG_DM_ETH=y
> CONFIG_ETH_DESIGNWARE=y
> CONFIG_MII=y
> # CONFIG_PINCTRL_FULL is not set
> +CONFIG_SPL_PINCTRL=y
> +CONFIG_SPL_RAM=y
> +CONFIG_SPECIFY_CONSOLE_INDEX=y
> CONFIG_SPI=y
> CONFIG_DM_SPI=y
> CONFIG_STM32_QSPI=y
> +CONFIG_SPL_TIMER=y
> CONFIG_DM_VIDEO=y
> CONFIG_BACKLIGHT_GPIO=y
> CONFIG_VIDEO_STM32=y
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config
2022-04-27 11:53 ` [PATCH v2 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
@ 2022-05-10 8:46 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:46 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow
> dram_init() execution when using none SPL defconfig
> (stm32f746-disco_defconfig).
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> board/st/stm32f746-disco/stm32f746-disco.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
> index 69f657c54b..2ab23f2f4f 100644
> --- a/board/st/stm32f746-disco/stm32f746-disco.c
> +++ b/board/st/stm32f746-disco/stm32f746-disco.c
> @@ -29,7 +29,7 @@ DECLARE_GLOBAL_DATA_PTR;
>
> int dram_init(void)
> {
> -#ifndef CONFIG_SUPPORT_SPL
> +#ifndef CONFIG_SPL_BUILD
> int rv;
> struct udevice *dev;
> rv = uclass_get_device(UCLASS_RAM, 0, &dev);
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile
2022-04-27 11:53 ` [PATCH v2 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
@ 2022-05-10 8:46 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:46 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> As stm32f46-disco, stm32f769-disco and stm32746g-eval are very similar
> except their respective device tree file. These 3 boards uses the same
> TARGET_STM32F746_DISCO flag (so same include/configs/stm32f746-disco.h
> and same board file board/st/stm32f746-disco/stm32f746-disco.c)
>
> To be able to compile these 3 boards, replace the hard-coded device-tree
> name in include/configs/stm32f746-disco.h by CONFIG_DEFAULT_DEVICE_TREE
> which is set in each board defconfig file with the correct value.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> include/configs/stm32f746-disco.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h
> index b93acdcc1f..cc3d4b4449 100644
> --- a/include/configs/stm32f746-disco.h
> +++ b/include/configs/stm32f746-disco.h
> @@ -34,7 +34,7 @@
> #include <config_distro_bootcmd.h>
> #define CONFIG_EXTRA_ENV_SETTINGS \
> "kernel_addr_r=0xC0008000\0" \
> - "fdtfile=stm32f746-disco.dtb\0" \
> + "fdtfile="CONFIG_DEFAULT_DEVICE_TREE".dtb\0" \
> "fdt_addr_r=0xC0408000\0" \
> "scriptaddr=0xC0418000\0" \
> "pxefile_addr_r=0xC0428000\0" \
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig
2022-04-27 11:53 ` [PATCH v2 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
@ 2022-05-10 8:49 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:49 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:53, Patrice Chotard wrote:
> Add stm32746g-eval_defconfig for stm32746g evaluation board to
> build U-Boot proper.
>
> Full board description can be found here :
> https://www.st.com/en/evaluation-tools/stm32746g-eval.html
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> board/st/stm32f746-disco/MAINTAINERS | 1 +
> configs/stm32746g-eval_defconfig | 64 ++++++++++++++++++++++++++++
> 2 files changed, 65 insertions(+)
> create mode 100644 configs/stm32746g-eval_defconfig
>
> diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
> index 68f61fd5ff..7f128a8b69 100644
> --- a/board/st/stm32f746-disco/MAINTAINERS
> +++ b/board/st/stm32f746-disco/MAINTAINERS
> @@ -5,5 +5,6 @@ F: board/st/stm32f746-disco
> F: include/configs/stm32f746-disco.h
> F: configs/stm32f746-disco_defconfig
> F: configs/stm32f746-disco_spl_defconfig
> +F: configs/stm32746g-eval_defconfig
> F: configs/stm32f769-disco_defconfig
> F: configs/stm32f769-disco_spl_defconfig
> diff --git a/configs/stm32746g-eval_defconfig b/configs/stm32746g-eval_defconfig
> new file mode 100644
> index 0000000000..9f79b5a2b4
> --- /dev/null
> +++ b/configs/stm32746g-eval_defconfig
> @@ -0,0 +1,64 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_STM32=y
> +CONFIG_SYS_TEXT_BASE=0x08000000
> +CONFIG_SYS_MALLOC_LEN=0x100000
> +CONFIG_SYS_MALLOC_F_LEN=0xE00
> +CONFIG_NR_DRAM_BANKS=1
> +CONFIG_ENV_SIZE=0x2000
> +CONFIG_DEFAULT_DEVICE_TREE="stm32746g-eval"
> +CONFIG_STM32F7=y
> +CONFIG_TARGET_STM32F746_DISCO=y
> +CONFIG_DISTRO_DEFAULTS=y
> +CONFIG_SYS_LOAD_ADDR=0x8008000
> +CONFIG_BOOTDELAY=3
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
> +CONFIG_AUTOBOOT_STOP_STR=" "
> +CONFIG_USE_BOOTARGS=y
> +CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
> +# CONFIG_DISPLAY_CPUINFO is not set
> +CONFIG_BOARD_LATE_INIT=y
> +CONFIG_SYS_PROMPT="U-Boot > "
> +CONFIG_CMD_GPT=y
> +# CONFIG_RANDOM_UUID is not set
> +CONFIG_CMD_MMC=y
> +# CONFIG_CMD_SETEXPR is not set
> +CONFIG_CMD_SNTP=y
> +CONFIG_CMD_DNS=y
> +CONFIG_CMD_LINK_LOCAL=y
> +CONFIG_CMD_BMP=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_TIMER=y
> +# CONFIG_ISO_PARTITION is not set
> +CONFIG_OF_CONTROL=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_NET_RANDOM_ETHADDR=y
> +CONFIG_NETCONSOLE=y
> +CONFIG_ARM_PL180_MMCI=y
> +CONFIG_MTD=y
> +CONFIG_DM_MTD=y
> +CONFIG_MTD_NOR_FLASH=y
> +CONFIG_STM32_FLASH=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +CONFIG_SPI_FLASH_STMICRO=y
> +CONFIG_PHY_SMSC=y
> +CONFIG_DM_ETH=y
> +CONFIG_ETH_DESIGNWARE=y
> +CONFIG_MII=y
> +# CONFIG_PINCTRL_FULL is not set
> +CONFIG_SPI=y
> +CONFIG_DM_SPI=y
> +CONFIG_STM32_QSPI=y
> +CONFIG_DM_VIDEO=y
> +CONFIG_BACKLIGHT_GPIO=y
> +CONFIG_VIDEO_STM32=y
> +CONFIG_VIDEO_STM32_MAX_XRES=480
> +CONFIG_VIDEO_STM32_MAX_YRES=640
> +CONFIG_SPLASH_SCREEN=y
> +CONFIG_SPLASH_SCREEN_ALIGN=y
> +CONFIG_VIDEO_BMP_RLE8=y
> +CONFIG_BMP_16BPP=y
> +CONFIG_BMP_24BPP=y
> +CONFIG_BMP_32BPP=y
> +CONFIG_OF_LIBFDT_OVERLAY=y
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig
2022-04-27 11:54 ` [PATCH v2 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
@ 2022-05-10 8:49 ` Patrice CHOTARD
0 siblings, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:49 UTC (permalink / raw)
To: u-boot; +Cc: Patrick DELAUNAY, U-Boot STM32, Vikas Manocha
On 4/27/22 13:54, Patrice Chotard wrote:
> Add stm32746g-eval_spl_defconfig for stm32746g evaluation board to
> build SPL.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> (no changes since v1)
>
> board/st/stm32f746-disco/MAINTAINERS | 1 +
> configs/stm32746g-eval_spl_defconfig | 86 ++++++++++++++++++++++++++++
> 2 files changed, 87 insertions(+)
> create mode 100644 configs/stm32746g-eval_spl_defconfig
>
> diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
> index 7f128a8b69..bc0952c563 100644
> --- a/board/st/stm32f746-disco/MAINTAINERS
> +++ b/board/st/stm32f746-disco/MAINTAINERS
> @@ -6,5 +6,6 @@ F: include/configs/stm32f746-disco.h
> F: configs/stm32f746-disco_defconfig
> F: configs/stm32f746-disco_spl_defconfig
> F: configs/stm32746g-eval_defconfig
> +F: configs/stm32746g-eval_spl_defconfig
> F: configs/stm32f769-disco_defconfig
> F: configs/stm32f769-disco_spl_defconfig
> diff --git a/configs/stm32746g-eval_spl_defconfig b/configs/stm32746g-eval_spl_defconfig
> new file mode 100644
> index 0000000000..169a9c5b23
> --- /dev/null
> +++ b/configs/stm32746g-eval_spl_defconfig
> @@ -0,0 +1,86 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_STM32=y
> +CONFIG_SYS_TEXT_BASE=0x08008000
> +CONFIG_SYS_MALLOC_LEN=0x100000
> +CONFIG_SYS_MALLOC_F_LEN=0xE00
> +CONFIG_SPL_GPIO=y
> +CONFIG_SPL_LIBCOMMON_SUPPORT=y
> +CONFIG_SPL_LIBGENERIC_SUPPORT=y
> +CONFIG_NR_DRAM_BANKS=1
> +CONFIG_ENV_SIZE=0x2000
> +CONFIG_DEFAULT_DEVICE_TREE="stm32746g-eval"
> +CONFIG_SPL_TEXT_BASE=0x8000000
> +CONFIG_SPL_SERIAL=y
> +CONFIG_SPL_DRIVERS_MISC=y
> +CONFIG_STM32F7=y
> +CONFIG_TARGET_STM32F746_DISCO=y
> +CONFIG_SPL=y
> +CONFIG_BUILD_TARGET="u-boot-with-spl.bin"
> +CONFIG_DISTRO_DEFAULTS=y
> +CONFIG_SYS_LOAD_ADDR=0x8008000
> +CONFIG_BOOTDELAY=3
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"
> +CONFIG_AUTOBOOT_STOP_STR=" "
> +CONFIG_USE_BOOTARGS=y
> +CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
> +# CONFIG_DISPLAY_CPUINFO is not set
> +CONFIG_BOARD_LATE_INIT=y
> +CONFIG_SPL_BOARD_INIT=y
> +CONFIG_SPL_SYS_MALLOC_SIMPLE=y
> +CONFIG_SPL_MTD_SUPPORT=y
> +CONFIG_SPL_XIP_SUPPORT=y
> +CONFIG_SPL_DM_RESET=y
> +CONFIG_SYS_PROMPT="U-Boot > "
> +CONFIG_CMD_GPT=y
> +# CONFIG_RANDOM_UUID is not set
> +CONFIG_CMD_MMC=y
> +# CONFIG_CMD_SETEXPR is not set
> +CONFIG_CMD_SNTP=y
> +CONFIG_CMD_DNS=y
> +CONFIG_CMD_LINK_LOCAL=y
> +CONFIG_CMD_BMP=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_TIMER=y
> +# CONFIG_ISO_PARTITION is not set
> +CONFIG_OF_CONTROL=y
> +CONFIG_SPL_OF_CONTROL=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_NET_RANDOM_ETHADDR=y
> +CONFIG_NETCONSOLE=y
> +CONFIG_SPL_DM=y
> +CONFIG_SPL_DM_SEQ_ALIAS=y
> +CONFIG_SPL_OF_TRANSLATE=y
> +CONFIG_SPL_CLK=y
> +CONFIG_ARM_PL180_MMCI=y
> +CONFIG_MTD=y
> +CONFIG_DM_MTD=y
> +CONFIG_MTD_NOR_FLASH=y
> +CONFIG_STM32_FLASH=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +CONFIG_SPI_FLASH_STMICRO=y
> +CONFIG_PHY_SMSC=y
> +CONFIG_DM_ETH=y
> +CONFIG_ETH_DESIGNWARE=y
> +CONFIG_MII=y
> +# CONFIG_PINCTRL_FULL is not set
> +CONFIG_SPL_PINCTRL=y
> +CONFIG_SPL_RAM=y
> +CONFIG_SPECIFY_CONSOLE_INDEX=y
> +CONFIG_SPI=y
> +CONFIG_DM_SPI=y
> +CONFIG_STM32_QSPI=y
> +CONFIG_SPL_TIMER=y
> +CONFIG_DM_VIDEO=y
> +CONFIG_BACKLIGHT_GPIO=y
> +CONFIG_VIDEO_STM32=y
> +CONFIG_VIDEO_STM32_MAX_XRES=480
> +CONFIG_VIDEO_STM32_MAX_YRES=640
> +CONFIG_SPLASH_SCREEN=y
> +CONFIG_SPLASH_SCREEN_ALIGN=y
> +CONFIG_VIDEO_BMP_RLE8=y
> +CONFIG_BMP_16BPP=y
> +CONFIG_BMP_24BPP=y
> +CONFIG_BMP_32BPP=y
> +CONFIG_OF_LIBFDT_OVERLAY=y
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 12/12] doc: Add documentation for STM32 MCUs
2022-04-27 11:54 ` [PATCH v2 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
2022-05-06 8:49 ` [Uboot-stm32] " Patrick DELAUNAY
@ 2022-05-10 8:49 ` Patrice CHOTARD
1 sibling, 0 replies; 26+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 8:49 UTC (permalink / raw)
To: u-boot
Cc: Patrick DELAUNAY, U-Boot STM32, Dillon Min, Kamil Lulko, Vikas Manocha
On 4/27/22 13:54, Patrice Chotard wrote:
> Add documentation for STM32 MCUs (F4, F7 and H7 series).
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
>
> ---
>
> Changes in v2:
> - fix documentation file stm32_MCU.rst
>
> board/st/stm32f429-discovery/MAINTAINERS | 1 +
> board/st/stm32f429-evaluation/MAINTAINERS | 1 +
> board/st/stm32f469-discovery/MAINTAINERS | 1 +
> board/st/stm32f746-disco/MAINTAINERS | 1 +
> board/st/stm32h743-disco/MAINTAINERS | 1 +
> board/st/stm32h743-eval/MAINTAINERS | 1 +
> board/st/stm32h750-art-pi/MAINTAINERS | 1 +
> doc/board/st/index.rst | 1 +
> doc/board/st/stm32_MCU.rst | 186 ++++++++++++++++++++++
> 9 files changed, 194 insertions(+)
> create mode 100644 doc/board/st/stm32_MCU.rst
>
> diff --git a/board/st/stm32f429-discovery/MAINTAINERS b/board/st/stm32f429-discovery/MAINTAINERS
> index fdb62e98e8..7661a15fdd 100644
> --- a/board/st/stm32f429-discovery/MAINTAINERS
> +++ b/board/st/stm32f429-discovery/MAINTAINERS
> @@ -1,6 +1,7 @@
> STM32F429-DISCOVERY BOARD
> M: Kamil Lulko <kamil.lulko@gmail.com>
> S: Maintained
> +F: doc/board/st/
> F: board/st/stm32f429-discovery/
> F: include/configs/stm32f429-discovery.h
> F: configs/stm32f429-discovery_defconfig
> diff --git a/board/st/stm32f429-evaluation/MAINTAINERS b/board/st/stm32f429-evaluation/MAINTAINERS
> index 29d00ef27e..b272893ef7 100644
> --- a/board/st/stm32f429-evaluation/MAINTAINERS
> +++ b/board/st/stm32f429-evaluation/MAINTAINERS
> @@ -1,6 +1,7 @@
> STM32F429-EVALUATION BOARD
> M: Patrice Chotard <patrice.chotard@foss.st.com>
> S: Maintained
> +F: doc/board/st/
> F: board/st/stm32f429-evaluation/
> F: include/configs/stm32f429-evaluation.h
> F: configs/stm32f429-evaluation_defconfig
> diff --git a/board/st/stm32f469-discovery/MAINTAINERS b/board/st/stm32f469-discovery/MAINTAINERS
> index 5a6a78b39e..a95f93f6f6 100644
> --- a/board/st/stm32f469-discovery/MAINTAINERS
> +++ b/board/st/stm32f469-discovery/MAINTAINERS
> @@ -1,6 +1,7 @@
> STM32F469-DISCOVERY BOARD
> M: Patrice Chotard <patrice.chotard@foss.st.com>
> S: Maintained
> +F: doc/board/st/
> F: board/st/stm32f469-discovery/
> F: include/configs/stm32f469-discovery.h
> F: configs/stm32f469-discovery_defconfig
> diff --git a/board/st/stm32f746-disco/MAINTAINERS b/board/st/stm32f746-disco/MAINTAINERS
> index bc0952c563..18e4c99c4f 100644
> --- a/board/st/stm32f746-disco/MAINTAINERS
> +++ b/board/st/stm32f746-disco/MAINTAINERS
> @@ -1,6 +1,7 @@
> STM32F746 DISCOVERY BOARD
> M: Vikas Manocha <vikas.manocha@st.com>
> S: Maintained
> +F: doc/board/st/
> F: board/st/stm32f746-disco
> F: include/configs/stm32f746-disco.h
> F: configs/stm32f746-disco_defconfig
> diff --git a/board/st/stm32h743-disco/MAINTAINERS b/board/st/stm32h743-disco/MAINTAINERS
> index 60fbe344f8..f4ecef3aa5 100644
> --- a/board/st/stm32h743-disco/MAINTAINERS
> +++ b/board/st/stm32h743-disco/MAINTAINERS
> @@ -1,6 +1,7 @@
> STM32H743 DISCOVERY BOARD
> M: Patrice Chotard <patrice.chotard@foss.st.com>
> S: Maintained
> +F: doc/board/st/
> F: board/st/stm32h743-disco
> F: include/configs/stm32h743-disco.h
> F: configs/stm32h743-disco_defconfig
> diff --git a/board/st/stm32h743-eval/MAINTAINERS b/board/st/stm32h743-eval/MAINTAINERS
> index fda93db777..b69e0d4abb 100644
> --- a/board/st/stm32h743-eval/MAINTAINERS
> +++ b/board/st/stm32h743-eval/MAINTAINERS
> @@ -1,6 +1,7 @@
> STM32H743 EVALUATION BOARD
> M: Patrice Chotard <patrice.chotard@foss.st.com>
> S: Maintained
> +F: doc/board/st/
> F: board/st/stm32h743-eval
> F: include/configs/stm32h743-eval.h
> F: configs/stm32h743-eval_defconfig
> diff --git a/board/st/stm32h750-art-pi/MAINTAINERS b/board/st/stm32h750-art-pi/MAINTAINERS
> index 9578833068..2fd69e6d1c 100644
> --- a/board/st/stm32h750-art-pi/MAINTAINERS
> +++ b/board/st/stm32h750-art-pi/MAINTAINERS
> @@ -1,6 +1,7 @@
> STM32H750 ART PI BOARD
> M: Dillon Min <dillon.minfei@gmail.com>
> S: Maintained
> +F: doc/board/st/
> F: board/st/stm32h750-art-pi
> F: include/configs/stm32h750-art-pi.h
> F: configs/stm32h750-art-pi_defconfig
> diff --git a/doc/board/st/index.rst b/doc/board/st/index.rst
> index 9bba42f1da..2a8a4ef3b8 100644
> --- a/doc/board/st/index.rst
> +++ b/doc/board/st/index.rst
> @@ -8,3 +8,4 @@ STMicroelectronics
>
> st-dt
> stm32mp1
> + stm32_MCU
> diff --git a/doc/board/st/stm32_MCU.rst b/doc/board/st/stm32_MCU.rst
> new file mode 100644
> index 0000000000..7ff7c730fa
> --- /dev/null
> +++ b/doc/board/st/stm32_MCU.rst
> @@ -0,0 +1,186 @@
> +.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
> +.. sectionauthor:: Patrice Chotard <patrice.chotardy@foss.st.com>
> +
> +STM32 MCU boards
> +=================
> +
> +This is a quick instruction for setup STM32 MCU boards.
> +
> +Supported devices
> +-----------------
> +
> +U-Boot supports the following STMP32 MCU SoCs:
> +
> + - STM32F429
> + - STM32F469
> + - STM32F746
> + - STM32F769
> + - STM32H743
> + - STM32H750
> +
> +SoCs information:
> +-----------------
> +STM32F4 series are Cortex-M4 MCU.
> +STM32F7 and STM32H7 series are Cortex-M7 MCU.
> +
> + + STM32F4 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f4-series.html
> + + STM32F7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32f7-series.html
> + + STM32H7 series: https://www.st.com/en/microcontrollers-microprocessors/stm32h7-series.html
> +
> +Currently the following boards are supported:
> +
> + + stm32f429-discovery
> + + stm32f469-discovery
> + + stm32746g-evaluation
> + + stm32f746-discovery
> + + stm32f769-discovery
> + + stm32h743i-discovery
> + + stm32h743i-evaluation
> + + stm32h750i-art-pi
> +
> +Boot Sequences
> +--------------
> +
> +For STM32F7 series, 2 boot configurations are supported with and without SPL
> +
> ++------------------------+-------------------------+--------------+
> +| **FSBL** | **SSBL** | **OS** |
> ++------------------------+-------------------------+--------------+
> +| First Stage Bootloader | Second Stage Bootloader | Linux Kernel |
> ++------------------------+-------------------------+--------------+
> +| embedded Flash | DDR |
> ++------------------------+-------------------------+--------------+
> +
> +The boot chain with SPL
> +```````````````````````
> +
> +defconfig_file :
> + + **stm32746g-eval_spl_defconfig**
> + + **stm32f746-disco_spl_defconfig**
> + + **stm32f769-disco_spl_defconfig**
> +
> ++------------+------------+-------+
> +| FSBL | SSBL | OS |
> ++------------+------------+-------+
> +|U-Boot SPL | U-Boot | Linux |
> ++------------+------------+-------+
> +
> +The boot chain without SPL
> +``````````````````````````
> +
> +defconfig_file :
> + + **stm32f429-discovery_defconfig**
> + + **stm32f429-evaluation_defconfig**
> + + **stm32f469-discovery_defconfig**
> + + **stm32746g-eval_defconfig**
> + + **stm32f746-disco_defconfig**
> + + **stm32f769-disco_defconfig**
> + + **stm32h743-disco_defconfig**
> + + **stm32h743-eval_defconfig**
> + + **stm32h750-art-pi_defconfig**
> +
> ++-----------+-------+
> +| FSBL | OS |
> ++-----------+-------+
> +|U-Boot | Linux |
> ++-----------+-------+
> +
> +Build Procedure
> +---------------
> +
> +1. Install the required tools for U-Boot
> +
> + * install package needed in U-Boot makefile
> + (libssl-dev, swig, libpython-dev...)
> +
> + * install ARMv7 toolchain for 32bit Cortex-A (from Linaro,
> + from SDK for STM32MP15x, or any crosstoolchains from your distribution)
> + (you can use any gcc cross compiler compatible with U-Boot)
> +
> +2. Set the cross compiler::
> +
> + # export CROSS_COMPILE=/path/to/toolchain/arm-linux-gnueabi-
> +
> +3. Select the output directory (optional)::
> +
> + # export KBUILD_OUTPUT=/path/to/output
> +
> + for example: use one output directory for each configuration::
> +
> + # export KBUILD_OUTPUT=stm32f4
> + # export KBUILD_OUTPUT=stm32f7
> + # export KBUILD_OUTPUT=stm32h7
> +
> + you can build outside of code directory::
> +
> + # export KBUILD_OUTPUT=../build/stm32f4
> +
> +4. Configure U-Boot::
> +
> + # make <defconfig_file>
> +
> + For example with <defconfig_file>:
> +
> + - For **stm32f429 discovery** board : **stm32f429-discovery_defconfig**
> + - For **stm32f769 discovery** board with SPL: **stm32f769-disco_spl_defconfig**
> + - For **stm32f769 discovery** board without SPL: **stm32f769-disco_defconfig**
> +
> +5. Configure the device-tree and build the U-Boot image::
> +
> + # make DEVICE_TREE=<name> all
> +
> + Examples:
> +
> + a) boot with SPL on stm32f746 discovery board::
> +
> + # export KBUILD_OUTPUT=stm32f746-disco
> + # make stm32f746-disco_spl_defconfig
> + # make all
> +
> + b) boot without SPL on stm32f746 discovery board::
> +
> + # export KBUILD_OUTPUT=stm32f746-disco
> + # make stm32f746-disco_defconfig
> + # make all
> +
> + c) boot on stm32h743 discovery board::
> +
> + # export KBUILD_OUTPUT=stm32h743-disco
> + # make stm32h743-disco_defconfig
> + # make all
> +
> + d) boot on stm32h743 evaluation board::
> +
> + # export KBUILD_OUTPUT=stm32h743-disco
> + # make stm32h743-eval_defconfig
> + # make all
> +
> +6. U-Boot Output files
> +
> + So in the output directory (selected by KBUILD_OUTPUT),
> + you can found the needed U-Boot files, for example::
> +
> + - stm32f746-disco_defconfig = **u-boot-dtb.bin** and **u-boot.dtb**
> +
> + - FSBL = u-boot-dtb.bin
> +
> + - stm32f746-disco_spl_defconfig = **u-boot-dtb.bin**, **u-boot.dtb** and **u-boot-with-spl.bin**
> +
> + - FSBL + SSBL = u-boot-with-spl.bin
> + - SSBL = u-boot-dtb.bin
> +
> +7. Flash U-Boot files
> +
> +Plug STM32 MCUs board using the USB ST-Link connector, hence it will expose
> +the flash area as a mass-storage. In this mass-storage you will find the
> +following files:
> +
> +- DETAILS.TXT: give the bootrom version and build
> +- MBED.HTM: shortcul to the hardware board description web page from st.com.
> +
> +Copy/paste the u-boot.bin or u-boot-with-spl.bin (in case of bootchain with SPL)
> +to this mass-storage. The "COM" LED will blink alternatively red and green during
> +the flash process. When done the board will reboot automatically.
> +
> +In case of boot with SPL, by default SPL will try to load either a Linux
> +kernel (falcon mode) or, if the key "c" is maintained pressed, the main U-Boot.
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2022-05-10 8:50 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 11:53 [PATCH v2 00/12] stm32: add new board support, defconfig and documentation Patrice Chotard
2022-04-27 11:53 ` [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries Patrice Chotard
2022-05-10 8:45 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig Patrice Chotard
2022-05-10 8:45 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig Patrice Chotard
2022-05-10 8:45 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 07/12] configs: stm32f746-disco: " Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile Patrice Chotard
2022-05-10 8:46 ` Patrice CHOTARD
2022-04-27 11:53 ` [PATCH v2 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig Patrice Chotard
2022-05-10 8:49 ` Patrice CHOTARD
2022-04-27 11:54 ` [PATCH v2 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig Patrice Chotard
2022-05-10 8:49 ` Patrice CHOTARD
2022-04-27 11:54 ` [PATCH v2 12/12] doc: Add documentation for STM32 MCUs Patrice Chotard
2022-05-06 8:49 ` [Uboot-stm32] " Patrick DELAUNAY
2022-05-10 8:49 ` Patrice CHOTARD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.