Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 1 | U-Boot for the NXP i.MX8QM EVK board |
| 2 | |
| 3 | Quick Start |
| 4 | =========== |
| 5 | |
| 6 | - Build the ARM Trusted firmware binary |
| 7 | - Get scfw_tcm.bin and ahab-container.img |
| 8 | - Build U-Boot |
| 9 | - Flash the binary into the SD card |
| 10 | - Boot |
| 11 | |
| 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.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga |
| 18 | $ make PLAT=imx8qm bl31 |
| 19 | |
Priit Laes | 8a85f83 | 2021-03-08 17:19:12 +0200 | [diff] [blame] | 20 | And copy the resulting bl31.bin to u-boot directory: |
| 21 | |
| 22 | $ cp build/imx8qm/release/bl31.bin path/to/u-boot/ |
| 23 | |
Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 24 | Get scfw_tcm.bin and ahab-container.img |
Priit Laes | 8a85f83 | 2021-03-08 17:19:12 +0200 | [diff] [blame] | 25 | ======================================= |
Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 26 | |
| 27 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.1.bin |
| 28 | $ chmod +x imx-sc-firmware-1.1.bin |
| 29 | $ ./imx-sc-firmware-1.1.bin |
| 30 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin |
| 31 | $ chmod +x firmware-imx-8.0.bin |
| 32 | $ ./firmware-imx-8.0.bin |
| 33 | |
Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 34 | |
Priit Laes | 8a85f83 | 2021-03-08 17:19:12 +0200 | [diff] [blame] | 35 | And copy the following firmwares to U-Boot folder: |
Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 36 | |
Priit Laes | 8a85f83 | 2021-03-08 17:19:12 +0200 | [diff] [blame] | 37 | * `imx-sc-firmware-1.1/mx8qm-mek-scfw-tcm.bin` |
| 38 | * `firmware-imx-8.0/firmware/seco/mx8qm-ahab-container.img` |
Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 39 | |
| 40 | Build U-Boot |
| 41 | ============ |
Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 42 | $ make imx8qm_mek_defconfig |
| 43 | $ make flash.bin |
Peng Fan | 203a227 | 2019-03-05 02:32:49 +0000 | [diff] [blame] | 44 | |
| 45 | Flash the binary into the SD card |
| 46 | ================================= |
| 47 | |
| 48 | Burn the flash.bin binary to SD card offset 32KB: |
| 49 | |
| 50 | $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 |
| 51 | |
| 52 | Boot |
| 53 | ==== |
Priit Laes | 8a85f83 | 2021-03-08 17:19:12 +0200 | [diff] [blame] | 54 | Set Boot switch SW2: 001100. |