1 .. SPDX-License-Identifier: GPL-2.0+
6 U-Boot for the NXP i.MX8MM EVK board
11 - Build the ARM Trusted firmware binary
16 Get and Build the ARM Trusted firmware
17 --------------------------------------
19 Note: builddir is U-Boot build directory (source directory for in-tree builds)
20 Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
21 branch: imx_5.4.47_2.2.0
25 $ make PLAT=imx8mm bl31
26 $ cp build/imx8mm/release/bl31.bin $(builddir)
33 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
34 $ chmod +x firmware-imx-8.9.bin
36 $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
38 Build U-Boot for sd card
39 --------------------------
43 $ export CROSS_COMPILE=aarch64-poky-linux-
44 $ make imx8mm_evk_defconfig
47 Burn the flash.bin to MicroSD card offset 33KB:
51 $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc
55 Set Boot switch to SD boot
57 Build U-Boot for qspi flash card
58 ------------------------------------
62 $ export CROSS_COMPILE=aarch64-poky-linux-
63 $ make imx8mm_evk_fspi_defconfig
66 Currently, there is no direct support to write to QSPI Flash.
67 Copy flash.bin to ${loadaddr} either from sd card or over network and then copy to
70 From sd card to memory
75 $mmc read ${loadaddr} 0x00 <size_of_flash.bin/512>
80 $ sf erase 0 <size_of_flash.bin_in_hex>
81 $ sf write $loadaddr 0x00 <size_of_flash.bin_in_hex>
84 -----------------------
85 Set Boot Switch to QSPI Flash
87 Pin configuration for imx8mm_revC evk to boot from qspi flash