Building U-Boot Print


Installing U-Boot to the STM32H7-EVAL explains how to install the U-Boot firmware to the board for the first time. Having installed U-Boot, U-Boot is immediately available on the STM32H753i-EVAL board as a primary firmware monitor.

The default U-Boot configuration is a capable Linux bootloader so typically our customers do not require re-building and re-installing U-Boot. However, certain projects still do require customizations to the U-Boot firmware, which implies making changes to the U-Boot code, rebuilding the U-Boot binary and then updating it on the STM32H753i-EVAL board.

Building U-Boot

The full U-Boot source for the STM32H753i-EVAL board is included in the software distribution available from the Emcraft web site. Refer to the u-boot/ sub-directory in the software distribution tree.

The key board specific-configuration files for the STM32H753i-EVAL board are as follows:

  • u-boot/configs/stm32h753-eval_defconfig - default U-Boot configuration;
  • u-boot/include/configs/stm32h753-eval.h - configuration options;
  • u-boot/include/configs/stm32h753-eval.h - board-specific initialization code.

Step through the following procedure to build U-Boot for the STM32H753i-EVAL board:

  1. On the Linux development host, activate the cross-build environment as described in Installing and activating cross development environment:
  2. $ . ./ACTIVATE.sh

  3. Change to the U-Boot top directory:
  4. $ cd u-boot

  5. Configure U-Boot for the STM32H753i-EVAL board:
  6. $ make distclean
    $ make stm32h753-eval_defconfig

  7. Run make to create the u-boot.img binary:
  8. $ make -s