Building U-Boot Print

 

This application note explains how to build the U-Boot image for booting the Emcraft STM32MP1 System-On-Module from SD card. Step through the following procedure:

  1. Deploy the Yocto build as explained in Building Bootable Linux Images, but don't run bitbake yet.
  2. Run:
  3. $ bitbake u-boot-stm32mp
    ...

  4. Results will be in the deploy directory:
  5. $ ls -l tmp-glibc/deploy/images/stm32mp1-som/bootloader/
    ...
    -rw-r--r-- 1 psl psl 663332 Apr 16 20:55 u-boot-stm32mp1-som-trusted.stm32
    $

  6. To install the binary to eMMC, copy it to the SOM via scp, the run:
  7. [email protected]:~# dd if=u-boot-stm32mp1-som-trusted.stm32 of=/dev/mmcblk1p1 bs=1k conv=fdatasync