1 .. SPDX-License-Identifier: GPL-2.0+
3 U-Boot for the Congatec conga-QMX8 board
4 ========================================
9 - Build the ARM Trusted firmware binary
10 - Get scfw_tcm.bin and ahab-container.img
14 - Flash the binary into the SD card
17 Get and Build the ARM Trusted firmware
18 --------------------------------------
22 $ git clone https://source.codeaurora.org/external/imx/imx-atf
24 $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga
25 $ make PLAT=imx8qm bl31
27 Get scfw_tcm.bin and ahab-container.img
28 ---------------------------------------
32 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.1.bin
33 $ chmod +x imx-sc-firmware-1.1.bin
34 $ ./imx-sc-firmware-1.1.bin
35 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin
36 $ chmod +x firmware-imx-8.0.bin
37 $ ./firmware-imx-8.0.bin
39 Or use this to avoid running random scripts from the internet,
40 but note that you must agree to the license the script displays:
44 $ dd if=imx-sc-firmware-1.1.bin of=imx-sc-firmware-1.1.tar.bz2 bs=37185 skip=1
45 $ tar -xf imx-sc-firmware-1.1.tar.bz2
46 $ cp imx-sc-firmware-1.1/mx8qx-val-scfw-tcm.bin $(builddir)
48 $ dd if=firmware-imx-8.0.bin of=firmware-imx-8.0.tar.bz2 bs=37180 skip=1
49 $ tar -xf firmware-imx-8.0.tar.bz2
50 $ cp firmware-imx-8.0/firmware/seco/mx8qm-ahab-container.img $(builddir)
57 $ export ATF_LOAD_ADDR=0x80000000
58 $ export BL33_LOAD_ADDR=0x80020000
59 $ make cgtqmx8_defconfig
62 Flash the binary into the SD card
63 ---------------------------------
65 Burn the flash.bin binary to SD card offset 32KB:
69 $ sudo dd if=flash.bin of=/dev/sd[x] bs=1k seek=32 conv=fsync