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 | ====================================== |
Fabio Estevam | b874c73 | 2023-01-12 21:52:23 -0300 | [diff] [blame^] | 13 | $ git clone https://github.com/nxp-imx/imx-atf |
Tim Harvey | 256dba0 | 2021-03-02 14:00:21 -0800 | [diff] [blame] | 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 |
Tim Harvey | 697ef63 | 2022-01-07 12:41:35 -0800 | [diff] [blame] | 28 | $ make CROSS_COMPILE=aarch64-linux-gnu- |
Tim Harvey | 256dba0 | 2021-03-02 14:00:21 -0800 | [diff] [blame] | 29 | |
| 30 | Update eMMC |
| 31 | =========== |
| 32 | => tftpboot $loadaddr flash.bin |
| 33 | => setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200 |
Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 34 | => mmc dev 2 && mmc write $loadaddr 0x42 $blkcnt # for IMX8MM |
| 35 | => mmc dev 2 && mmc write $loadaddr 0x40 $blkcnt # for IMX8MN |