Oliver Graute | abf0e7b | 2023-04-21 12:11:50 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | NXP i.MX8QM DMSSE20-a1 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 | - Flash the binary into the SD card |
| 14 | - Boot |
| 15 | |
| 16 | Get and Build the ARM Trusted Firmware |
| 17 | -------------------------------------- |
| 18 | |
| 19 | .. code-block:: bash |
| 20 | |
| 21 | $ git clone https://github.com/nxp-imx/imx-atf |
| 22 | $ cd imx-atf/ |
| 23 | $ git checkout lf-5.10.72-2.2.0 -b lf-5.10.72-2.2.0 |
| 24 | $ make PLAT=imx8qm bl31 |
| 25 | $ cp build/imx8qm/release/bl31.bin $(builddir) |
| 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.11.0.bin |
| 33 | $ chmod +x imx-sc-firmware-1.11.0.bin |
| 34 | $ ./imx-sc-firmware-1.11.0.bin |
| 35 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-3.8.5.bin |
| 36 | $ chmod +x imx-seco-3.8.5.bin |
| 37 | $ ./imx-seco-3.8.5.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.11.0.bin of=imx-sc-firmware-1.11.0.tar.bz2 bs=42757 skip=1 |
| 45 | $ tar -xf imx-sc-firmware-1.11.0.tar.bz2 |
| 46 | $ cp imx-sc-firmware-1.11.0/mx8qm-val-scfw-tcm.bin $(builddir) |
| 47 | $ dd if=imx-seco-3.8.5.bin of=imx-seco-3.8.5.tar.bz2 bs=43978 skip=1 |
| 48 | $ tar -xf imx-seco-3.8.5.tar.bz2 |
| 49 | $ cp imx-seco-3.8.5/firmware/seco/mx8qmb0-ahab-container.img $(builddir) |
| 50 | |
| 51 | Build U-Boot |
| 52 | ------------ |
| 53 | .. code-block:: bash |
| 54 | |
| 55 | $ export ATF_LOAD_ADDR=0x80000000 |
| 56 | $ export BL33_LOAD_ADDR=0x80020000 |
| 57 | $ make imx8qm_dmsse20a1_defconfig |
| 58 | $ make |