| .. SPDX-License-Identifier: GPL-2.0+ |
| U-Boot for the Cloos i.MX8MM PHG board |
| - Get and Build the ARM Trusted firmware |
| - Flash U-Boot into the eMMC |
| Get and Build the ARM Trusted firmware |
| -------------------------------------- |
| Note: builddir is U-Boot build directory (source directory for in-tree builds) |
| Get ATF from: https://github.com/nxp-imx/imx-atf |
| $ cp build/imx8mm/release/bl31.bin $(builddir) |
| $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin |
| $ chmod +x firmware-imx-8.9.bin |
| $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir) |
| $ export CROSS_COMPILE=aarch64-poky-linux- |
| $ make imx8mm_phg_defconfig |
| Flash U-Boot into the eMMC |
| -------------------------- |
| Program flash.bin to the eMMC at offset 33KB: |
| $ sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=33; sync |