Tim Harvey | fb602f6 | 2023-02-13 09:44:27 -0800 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | imx8mp_venice |
| 4 | ============= |
| 5 | |
| 6 | U-Boot for the Gateworks i.MX8M Plus Venice Development Kit boards |
| 7 | |
| 8 | Quick Start |
| 9 | ----------- |
| 10 | - Build the ARM Trusted firmware binary |
| 11 | - Get DDR firmware |
| 12 | - Build U-Boot |
| 13 | - Flash to eMMC |
| 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.git -b lf_v2.4 |
| 22 | $ make PLAT=imx8mp bl31 CROSS_COMPILE=aarch64-linux-gnu- |
| 23 | $ cp build/imx8mp/release/bl31.bin . |
| 24 | |
| 25 | Get the DDR Firmware |
| 26 | -------------------- |
| 27 | |
| 28 | .. code-block:: bash |
| 29 | |
| 30 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin |
| 31 | $ chmod +x firmware-imx-8.9.bin |
| 32 | $ ./firmware-imx-8.9.bin |
| 33 | $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin . |
| 34 | |
| 35 | Build U-Boot |
| 36 | ------------ |
| 37 | |
| 38 | .. code-block:: bash |
| 39 | |
| 40 | $ make imx8mp_venice_defconfig |
| 41 | $ make CROSS_COMPILE=aarch64-linux-gnu- |
| 42 | |
| 43 | Update eMMC |
| 44 | ----------- |
| 45 | |
| 46 | .. code-block:: bash |
| 47 | |
| 48 | => tftpboot $loadaddr flash.bin |
| 49 | => setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200 |
| 50 | => mmc dev 2 && mmc write $loadaddr 0x40 $blkcnt |