Default Bootloader "stm32mp15xx-dhcor-testbench"
From Wiki-DB
Each DHCOR STM32MP1 module comes with preprogrammed default bootloader.
Features/Suported interfaces
- Bootloader console (UART4)
- PMIC (STPMIC1APQR)
- DDR3 Memory (size is coded by DDR3 coding pins)
- CPU type (STM32MP151, STM32MP153 and STM32MP157)
- On-Board I2C (I2C4)
- microSD (SDMMC1)
- eMMC (SDMMC2)
- SPI boot Flash (QSPI_BK1)
- Gbit Ethernet KSZ9031 (ETH1)
- USB Host and Device
Sources
https://github.com/dh-electronics/u-boot-stm32mp1/tree/v2022.07_testbench
Download/Build U-Boot SPL and U-Boot binaries
There are two ways to get the required U-Boot binaries. These can either be downloaded or built from the sources by yourself. Follow one of the two steps below.
Download prebuilt binaries
Dropbox: u-boot_stm32mp1-testbench_2022.07_gbc993c1d.zip (source)
Build binaries from source
Checkout source code
git clone -b v2022.07_testbench https://github.com/dh-electronics/u-boot-stm32mp1.git
cd u-boot-stm32mp1
Download and extract toolchain Toolchain from: https://developer.arm.com/downloads/-/gnu-a
wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf.tar.xz
tar xf gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf.tar.xz -C /opt/toolchains
Set env variables
export ARCH=arm
export CROSS_COMPILE=/opt/toolchains/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
export SOURCE_DATE_EPOCH=1664184598 # Mon Sep 26 09:29:58 2022 UTC
Create config, set testbench as default and build
make stm32mp15_dhcor_basic_defconfig
sed -i 's/stm32mp15xx-dhcor-avenger96/stm32mp15xx-dhcor-testbench/g' .config
make -j16
Check sha256 sums and compare with sha256sum.txt
sha256sum u-boot.itb u-boot-spl.stm32