Fabio Estevam | 2ef69ef | 2023-01-10 17:18:08 -0300 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | Cloos i.MX8MM PHG board |
| 4 | ======================= |
| 5 | |
| 6 | U-Boot for the Cloos i.MX8MM PHG board |
| 7 | |
| 8 | Quick Start |
| 9 | ----------- |
| 10 | |
| 11 | - Get and Build the ARM Trusted firmware |
| 12 | - Get the DDR firmware |
| 13 | - Build U-Boot |
| 14 | - Flash U-Boot into the eMMC |
| 15 | |
| 16 | Get and Build the ARM Trusted firmware |
| 17 | -------------------------------------- |
| 18 | |
| 19 | Note: builddir is U-Boot build directory (source directory for in-tree builds) |
| 20 | Get ATF from: https://github.com/nxp-imx/imx-atf |
| 21 | branch: lf_v2.6 |
| 22 | |
| 23 | .. code-block:: bash |
| 24 | |
| 25 | $ make PLAT=imx8mm bl31 |
| 26 | $ cp build/imx8mm/release/bl31.bin $(builddir) |
| 27 | |
| 28 | Get the DDR firmware |
| 29 | -------------------- |
| 30 | |
| 31 | .. code-block:: bash |
| 32 | |
| 33 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin |
| 34 | $ chmod +x firmware-imx-8.9.bin |
| 35 | $ ./firmware-imx-8.9 |
| 36 | $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir) |
| 37 | |
| 38 | Build U-Boot |
| 39 | ------------ |
| 40 | |
| 41 | .. code-block:: bash |
| 42 | |
| 43 | $ export CROSS_COMPILE=aarch64-poky-linux- |
| 44 | $ make imx8mm_phg_defconfig |
| 45 | $ make |
| 46 | |
| 47 | Flash U-Boot into the eMMC |
| 48 | -------------------------- |
| 49 | |
| 50 | Program flash.bin to the eMMC at offset 33KB: |
| 51 | |
| 52 | .. code-block:: bash |
| 53 | |
| 54 | $ ums 0 mmc 0 |
| 55 | $ sudo dd if=flash.bin of=/dev/sd[x] bs=1K seek=33; sync |