1 .. SPDX-License-Identifier: GPL-2.0+
3 Apalis iMX8X V1.1A Module
4 ==========================
9 - Build the ARM trusted firmware binary
10 - Get scfw_tcm.bin and ahab-container.img
12 - Load U-Boot binary using uuu
13 - Flash U-Boot binary into the eMMC
16 Get and Build the ARM Trusted Firmware
17 --------------------------------------
21 $ git clone -b toradex_imx_5.4.24_2.1.0 http://git.toradex.com/cgit/imx-atf.git
23 $ make PLAT=imx8qx bl31
25 Get scfw_tcm.bin and ahab-container.img
26 ---------------------------------------
30 $ wget https://github.com/toradex/i.MX-System-Controller-Firmware/blob/master/src/scfw_export_mx8qx_b0/build_mx8qx_b0/mx8qx-apalis-scfw-tcm.bin
31 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-3.6.3.bin
32 $ chmod +x imx-seco-3.6.3.bin
33 $ ./imx-seco-3.6.3.bin
35 Copy the following binaries to the U-Boot folder:
39 $ cp imx-atf/build/imx8qx/release/bl31.bin .
40 $ cp imx-seco-3.6.3/firmware/seco/mx8qxb0-ahab-container.img mx8qx-ahab-container.imx8_defconfig
46 $ make apalis-imx8x_defconfig
49 Load the U-Boot Binary Using UUU
50 --------------------------------
52 Get the latest version of the universal update utility (uuu) aka ``mfgtools 3.0``:
54 https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FNXPmicro%2Fmfgtools%2Freleases
56 Put the module into USB recovery aka serial downloader mode, connect USB device
57 to your host and execute uuu:
61 sudo ./uuu u-boot/u-boot-dtb.imx
63 Flash the U-Boot Binary into the eMMC
64 -------------------------------------
66 Burn the ``u-boot-dtb.imx`` binary to the primary eMMC hardware boot area
71 load mmc 1:1 $loadaddr u-boot-dtb.imx
72 setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200
74 mmc write ${loadaddr} 0x0 ${blkcnt}