Yannic Moog | 3bc5952 | 2023-06-14 09:12:19 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | phyCORE-i.MX 8M Mini |
| 4 | ==================== |
| 5 | |
| 6 | The phyCORE-i.MX 8M Mini with 2GB of main memory is supported. |
| 7 | |
| 8 | Quick Start |
| 9 | ----------- |
| 10 | |
| 11 | - Build the ARM Trusted firmware binary |
| 12 | - Get ddr firmware |
| 13 | - Build U-Boot |
| 14 | - Boot |
| 15 | |
| 16 | Build the ARM Trusted firmware binary |
| 17 | ------------------------------------- |
| 18 | |
| 19 | .. code-block:: bash |
| 20 | |
| 21 | $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git |
| 22 | $ cd trusted-firmware-a |
| 23 | $ export CROSS_COMPILE=aarch64-linux-gnu |
| 24 | $ export IMX_BOOT_UART_BASE=0x30880000 |
| 25 | $ make PLAT=imx8mm bl31 |
| 26 | |
| 27 | Get the ddr firmware |
| 28 | -------------------- |
| 29 | |
| 30 | .. code-block:: bash |
| 31 | |
| 32 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.19.bin |
| 33 | $ chmod +x firmware-imx-8.19.bin |
| 34 | $ ./firmware-imx-8.19.bin |
| 35 | |
| 36 | Build U-Boot for SD card |
| 37 | ------------------------ |
| 38 | |
| 39 | Copy binaries |
| 40 | ^^^^^^^^^^^^^ |
| 41 | |
| 42 | .. code-block:: bash |
| 43 | |
| 44 | $ cp <TF-A dir>/build/imx8mm/release/bl31.bin . |
| 45 | $ cp firmware-imx-8.19/firmware/ddr/synopsys/lpddr4*.bin . |
| 46 | |
| 47 | Build U-Boot |
| 48 | ^^^^^^^^^^^^ |
| 49 | |
| 50 | .. code-block:: bash |
| 51 | |
| 52 | $ make phycore-imx8mm_defconfig |
| 53 | $ make flash.bin |
| 54 | |
| 55 | Flash SD card |
| 56 | ^^^^^^^^^^^^^ |
| 57 | |
| 58 | .. code-block:: bash |
| 59 | |
| 60 | $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=sync |