Ariel D'Alessandro | 93add53 | 2022-04-12 10:31:38 -0300 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | imx8mn_bsh_smm_s2 |
| 4 | ================= |
| 5 | |
| 6 | U-Boot for the BSH SystemMaster (SMM) S2 board family. |
| 7 | |
| 8 | Quick Start |
| 9 | ----------- |
| 10 | |
| 11 | - Build the ARM Trusted firmware binary |
| 12 | - Get firmware-imx package |
| 13 | - Build U-Boot |
| 14 | - Boot |
| 15 | |
| 16 | Get and Build the ARM Trusted firmware |
| 17 | -------------------------------------- |
| 18 | |
| 19 | Note: srctree is U-Boot source directory |
| 20 | Get ATF from: https://github.com/ARM-software/arm-trusted-firmware |
| 21 | tag: v2.5 |
| 22 | |
| 23 | .. code-block:: bash |
| 24 | |
| 25 | $ make PLAT=imx8mn IMX_BOOT_UART_BASE=0x30a60000 bl31 |
| 26 | $ cp build/imx8mn/release/bl31.bin $(srctree) |
| 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/ddr3*.bin $(srctree) |
| 37 | |
| 38 | Build U-Boot |
| 39 | ------------ |
| 40 | |
| 41 | .. code-block:: bash |
| 42 | |
| 43 | $ export CROSS_COMPILE=aarch64-linux-gnu- |
| 44 | $ make imx8mn_bsh_smm_s2_defconfig |
| 45 | $ make |
| 46 | |
| 47 | Burn the flash.bin to MicroSD card offset 32KB: |
| 48 | |
| 49 | .. code-block:: bash |
| 50 | |
| 51 | $ dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc |
| 52 | |
| 53 | Boot |
| 54 | ---- |
| 55 | |
| 56 | Start the board in USB serial downloader mode, plug-in the USB-OTG port and |
| 57 | load flash.bin using Freescale/NXP UUU tool: |
| 58 | |
| 59 | .. code-block:: bash |
| 60 | |
| 61 | $ uuu -v flash.bin |