]> Git Repo - J-u-boot.git/blob - doc/board/congatec/cgtqmx8.rst
imx: imx8qm: cgtqmx8: switch to binman
[J-u-boot.git] / doc / board / congatec / cgtqmx8.rst
1 .. SPDX-License-Identifier: GPL-2.0+
2
3 U-Boot for the Congatec conga-QMX8 board
4 ========================================
5
6 Quick Start
7 -----------
8
9 - Build the ARM Trusted firmware binary
10 - Get scfw_tcm.bin and ahab-container.img
11 - Get imx-mkimage
12 - Build U-Boot
13 - Build imx-mkimage
14 - Flash the binary into the SD card
15 - Boot
16
17 Get and Build the ARM Trusted firmware
18 --------------------------------------
19
20 .. code-block:: bash
21
22      $ git clone https://source.codeaurora.org/external/imx/imx-atf
23      $ cd 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
26
27 Get scfw_tcm.bin and ahab-container.img
28 ---------------------------------------
29
30 .. code-block:: bash
31
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
38
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:
41
42 .. code-block:: bash
43
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)
47
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)
51
52 Build U-Boot
53 ------------
54
55 .. code-block:: bash
56
57      $ export ATF_LOAD_ADDR=0x80000000
58      $ export BL33_LOAD_ADDR=0x80020000
59      $ make cgtqmx8_defconfig
60      $ make
61
62 Flash the binary into the SD card
63 ---------------------------------
64
65 Burn the flash.bin binary to SD card offset 32KB:
66
67 .. code-block:: bash
68
69      $ sudo dd if=flash.bin of=/dev/sd[x] bs=1k seek=32 conv=fsync
This page took 0.028918 seconds and 4 git commands to generate.