Oliver Graute | dafcd99 | 2019-09-20 07:08:41 +0000 | [diff] [blame] | 1 | U-Boot for the NXP i.MX8QM ROM 7720a1 board |
| 2 | |
| 3 | Quick Start |
| 4 | =========== |
| 5 | |
| 6 | - Build the ARM Trusted firmware binary |
| 7 | - Get scfw_tcm.bin and ahab-container.img |
| 8 | - Get imx-mkimage |
| 9 | - Build U-Boot |
| 10 | - Build imx-mkimage |
| 11 | - Flash the binary into the SD card |
| 12 | - Boot |
| 13 | |
| 14 | Get and Build the ARM Trusted firmware |
| 15 | ====================================== |
| 16 | |
| 17 | $ git clone https://source.codeaurora.org/external/imx/imx-atf |
| 18 | $ cd imx-atf/ |
| 19 | $ git checkout origin/imx_4.14.78_1.0.0_ga -b imx_4.14.78_1.0.0_ga |
| 20 | $ make PLAT=imx8qm bl31 |
| 21 | |
| 22 | Get scfw_tcm.bin and ahab-container.img |
| 23 | ============================== |
| 24 | |
| 25 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-sc-firmware-1.1.bin |
| 26 | $ chmod +x imx-sc-firmware-1.1.bin |
| 27 | $ ./imx-sc-firmware-1.1.bin |
| 28 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin |
| 29 | $ chmod +x firmware-imx-8.0.bin |
| 30 | $ ./firmware-imx-8.0.bin |
| 31 | |
Oliver Graute | 1384e44 | 2020-05-20 13:47:06 +0200 | [diff] [blame] | 32 | Or use this to avoid running random scripts from the internet, |
| 33 | but note that you must agree to the license the script displays: |
| 34 | |
| 35 | $ dd if=imx-sc-firmware-1.1.bin of=imx-sc-firmware-1.1.tar.bz2 bs=37185 skip=1 |
| 36 | $ tar -xf imx-sc-firmware-1.1.tar.bz2 |
| 37 | $ cp imx-sc-firmware-1.1/mx8qm-val-scfw-tcm.bin $(builddir) |
| 38 | |
| 39 | $ dd if=firmware-imx-8.0.bin of=firmware-imx-8.0.tar.bz2 bs=37180 skip=1 |
| 40 | $ tar -xf firmware-imx-8.0.tar.bz2 |
| 41 | $ cp firmware-imx-8.0/firmware/seco/mx8qm-ahab-container.img $(builddir) |
| 42 | |
Oliver Graute | dafcd99 | 2019-09-20 07:08:41 +0000 | [diff] [blame] | 43 | Build U-Boot |
| 44 | ============ |
| 45 | |
| 46 | $ export ATF_LOAD_ADDR=0x80000000 |
| 47 | $ export BL33_LOAD_ADDR=0x80020000 |
| 48 | $ make imx8qm_rom7720_a1_4G_defconfig |
| 49 | $ make u-boot.bin |
| 50 | $ make flash.bin |
| 51 | |
| 52 | Flash the binary into the SD card |
| 53 | ================================= |
| 54 | |
| 55 | Burn the flash.bin binary to SD card offset 32KB: |
| 56 | |
| 57 | $ sudo dd if=flash.bin of=/dev/sd[x] bs=1k seek=32 conv=fsync |
| 58 | |
| 59 | Boot |
| 60 | ==== |
| 61 | Set Boot switch SW2: 1100. |