1 U-Boot for the NXP i.MX8QM ROM 7720a1 board
6 - Build the ARM Trusted firmware binary
7 - Get scfw_tcm.bin and ahab-container.img
11 - Flash the binary into the SD card
14 Get and Build the ARM Trusted firmware
15 ======================================
17 $ git clone https://source.codeaurora.org/external/imx/imx-atf
19 $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga
20 $ make PLAT=imx8qm bl31
22 Get scfw_tcm.bin and ahab-container.img
23 ==============================
25 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.1.bin
26 $ chmod +x imx-sc-firmware-1.1.bin
27 $ ./imx-sc-firmware-1.1.bin
28 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin
29 $ chmod +x firmware-imx-8.0.bin
30 $ ./firmware-imx-8.0.bin
32 Or use this to avoid running random scripts from the internet,
33 but note that you must agree to the license the script displays:
35 $ dd if=imx-sc-firmware-1.1.bin of=imx-sc-firmware-1.1.tar.bz2 bs=37185 skip=1
36 $ tar -xf imx-sc-firmware-1.1.tar.bz2
37 $ cp imx-sc-firmware-1.1/mx8qm-val-scfw-tcm.bin $(builddir)
39 $ dd if=firmware-imx-8.0.bin of=firmware-imx-8.0.tar.bz2 bs=37180 skip=1
40 $ tar -xf firmware-imx-8.0.tar.bz2
41 $ cp firmware-imx-8.0/firmware/seco/mx8qm-ahab-container.img $(builddir)
46 $ export ATF_LOAD_ADDR=0x80000000
47 $ export BL33_LOAD_ADDR=0x80020000
48 $ make imx8qm_rom7720_a1_4G_defconfig
52 Flash the binary into the SD card
53 =================================
55 Burn the flash.bin binary to SD card offset 32KB:
57 $ sudo dd if=flash.bin of=/dev/sd[x] bs=1k seek=32 conv=fsync
61 Set Boot switch SW2: 1100.