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/ |
| 17 | $ git checkout origin/imx_4.9.88_imx8qxp_beta2 -b imx_4.9.88_imx8qxp_beta2 |
| 18 | $ make PLAT=imx8qxp bl31 |
| 19 | |
| 20 | Get scfw_tcm.bin and ahab-container.img |
| 21 | ============================== |
| 22 | |
| 23 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-0.7.bin |
| 24 | $ chmod +x imx-sc-firmware-0.7.bin |
| 25 | $ ./imx-sc-firmware-0.7.bin |
| 26 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.6.bin |
| 27 | $ chmod +x firmware-imx-7.6.bin |
| 28 | $ ./firmware-imx-7.6.bin |
| 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 | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 32 | $ cp imx-atf/build/imx8qxp/release/bl31.bin . |
| 33 | $ cp u-boot/u-boot.bin . |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 34 | |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 35 | Copy the following firmwares U-Boot folder : |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 36 | |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 37 | $ cp firmware-imx-7.6/firmware/seco/ahab-container.img . |
| 38 | $ cp imx-sc-firmware-0.7/mx8qx-mek-scfw-tcm.bin . |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 39 | |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 40 | Build U-Boot |
| 41 | ============ |
Peng Fan | f1a02a9 | 2018-12-21 06:21:37 +0000 | [diff] [blame] | 42 | $ export ATF_LOAD_ADDR=0x80000000 |
| 43 | $ export BL33_LOAD_ADDR=0x80020000 |
Peng Fan | 79b393d | 2018-10-16 04:50:39 +0000 | [diff] [blame] | 44 | $ make imx8qxp_mek_defconfig |
Peng Fan | f1a02a9 | 2018-12-21 06:21:37 +0000 | [diff] [blame] | 45 | $ make flash.bin |
| 46 | $ dd if=u-boot.itb of=flash.bin bs=512 seek=528 |
Peng Fan | 702c6dc | 2018-10-18 14:28:37 +0200 | [diff] [blame] | 47 | |
| 48 | Flash the binary into the SD card |
| 49 | ================================= |
| 50 | |
| 51 | Burn the flash.bin binary to SD card offset 32KB: |
| 52 | |
Peng Fan | f1a02a9 | 2018-12-21 06:21:37 +0000 | [diff] [blame] | 53 | $ 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] | 54 | |
| 55 | Boot |
| 56 | ==== |
| 57 | Set Boot switch SW2: 1100. |