Tim Harvey | 256dba0 | 2021-03-02 14:00:21 -0800 | [diff] [blame^] | 1 | U-Boot for the Gateworks i.MX8M Mini Venice Development Kit boards |
| 2 | |
| 3 | Quick Start |
| 4 | =========== |
| 5 | - Build the ARM Trusted firmware binary |
| 6 | - Get ddr firmware |
| 7 | - Build U-Boot |
| 8 | - Flash to eMMC |
| 9 | - Boot |
| 10 | |
| 11 | Get and Build the ARM Trusted firmware |
| 12 | ====================================== |
| 13 | $ git clone https://source.codeaurora.org/external/imx/imx-atf |
| 14 | $ git checkout imx_5.4.47_2.2.0 |
| 15 | $ make PLAT=imx8mm CROSS_COMPILE=aarch64-linux-gnu- bl31 |
| 16 | $ cp build/imx8mm/release/bl31.bin . |
| 17 | |
| 18 | Get the DDR Firmware |
| 19 | ==================== |
| 20 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin |
| 21 | $ chmod +x firmware-imx-8.9.bin |
| 22 | $ ./firmware-imx-8.9.bin |
| 23 | $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin . |
| 24 | |
| 25 | Build U-Boot |
| 26 | ============ |
| 27 | $ make imx8mm_venice_defconfig |
| 28 | $ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x920000 |
| 29 | |
| 30 | Update eMMC |
| 31 | =========== |
| 32 | => tftpboot $loadaddr flash.bin |
| 33 | => setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200 |
| 34 | => mmc dev 2 && mmc write $loadaddr 0x42 $blkcnt |