Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 1 | U-Boot for the NXP i.MX8QXP EVK board |
| 2 | |
| 3 | Quick Start |
| 4 | =========== |
| 5 | |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 6 | - Build the ARM Trusted firmware binary |
| 7 | - Get scfw_tcm.bin and ahab-container.img |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 8 | - Build U-Boot |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 9 | - Flash the binary into the SD card |
| 10 | - Boot |
| 11 | |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 12 | Get and Build the ARM Trusted firmware |
| 13 | ====================================== |
| 14 | |
| 15 | $ git clone https://source.codeaurora.org/external/imx/imx-atf |
| 16 | $ cd imx-atf/ |
Peng Fan | 43b4ce1 | 2020-01-08 01:33:31 +0000 | [diff] [blame] | 17 | $ git checkout origin/imx_4.19.35_1.1.0 -b imx_4.19.35_1.1.0 |
| 18 | $ make PLAT=imx8qx bl31 |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 19 | |
| 20 | Get scfw_tcm.bin and ahab-container.img |
| 21 | ============================== |
| 22 | |
Peng Fan | 43b4ce1 | 2020-01-08 01:33:31 +0000 | [diff] [blame] | 23 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.2.7.1.bin |
| 24 | $ chmod +x imx-sc-firmware-1.2.7.1.bin |
| 25 | $ ./imx-sc-firmware-1.2.7.1.bin |
| 26 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-2.3.1.bin |
| 27 | $ chmod +x imx-seco-2.3.1.bin |
| 28 | $ ./imx-seco-2.3.1.bin |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 29 | |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 30 | Copy the following binaries to U-Boot folder: |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 31 | |
Peng Fan | 43b4ce1 | 2020-01-08 01:33:31 +0000 | [diff] [blame] | 32 | $ cp imx-atf/build/imx8qx/release/bl31.bin . |
| 33 | $ cp imx-seco-2.3.1/firmware/seco/mx8qx-ahab-container.img ./ahab-container.img |
| 34 | $ cp imx-sc-firmware-1.2.7.1/mx8qx-mek-scfw-tcm.bin . |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 35 | |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 36 | Build U-Boot |
| 37 | ============ |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 38 | $ make imx8qxp_mek_defconfig |
Peng Fan | f1a02a9 | 2018-12-21 06:21:37 +0000 | [diff] [blame] | 39 | $ make flash.bin |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 40 | |
| 41 | Flash the binary into the SD card |
| 42 | ================================= |
| 43 | |
| 44 | Burn the flash.bin binary to SD card offset 32KB: |
| 45 | |
Peng Fan | f1a02a9 | 2018-12-21 06:21:37 +0000 | [diff] [blame] | 46 | $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 47 | |
| 48 | Boot |
| 49 | ==== |
| 50 | Set Boot switch SW2: 1100. |