Adam Ford | d42247d | 2020-12-11 06:01:46 -0600 | [diff] [blame] | 1 | U-Boot for the Beacon EmbeddedWorks i.MX8M Nano Devkit |
| 2 | |
| 3 | Quick Start |
| 4 | =========== |
| 5 | - Build the ARM Trusted firmware binary |
| 6 | - Get ddr firmware |
| 7 | - Build U-Boot |
| 8 | - Boot |
| 9 | |
| 10 | Get and Build the ARM Trusted firmware |
| 11 | ====================================== |
| 12 | Note: $(srctree) is U-Boot source directory |
| 13 | |
Fabio Estevam | b874c73 | 2023-01-12 21:52:23 -0300 | [diff] [blame] | 14 | $ git clone https://github.com/nxp-imx/imx-atf |
Adam Ford | f3c8620 | 2022-01-22 14:48:40 -0600 | [diff] [blame] | 15 | $ git lf-5.10.72-2.2.0 |
Adam Ford | d42247d | 2020-12-11 06:01:46 -0600 | [diff] [blame] | 16 | $ make PLAT=imx8mn bl31 CROSS_COMPILE=aarch64-linux-gnu- |
Adam Ford | f3c8620 | 2022-01-22 14:48:40 -0600 | [diff] [blame] | 17 | $ cp build/imx8mn/release/bl31.bin $(srctree) |
Adam Ford | d42247d | 2020-12-11 06:01:46 -0600 | [diff] [blame] | 18 | |
| 19 | Get the DDR firmware |
| 20 | ==================== |
| 21 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin |
| 22 | $ chmod +x firmware-imx-8.9.bin |
| 23 | $ ./firmware-imx-8.9 |
| 24 | $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree) |
| 25 | |
| 26 | Build U-Boot |
| 27 | ============ |
| 28 | $ make imx8mn_beacon_defconfig |
Adam Ford | f3c8620 | 2022-01-22 14:48:40 -0600 | [diff] [blame] | 29 | $ make CROSS_COMPILE=aarch64-linux-gnu- |
Adam Ford | d42247d | 2020-12-11 06:01:46 -0600 | [diff] [blame] | 30 | |
| 31 | Burn U-Boot to microSD Card |
| 32 | =========================== |
| 33 | $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 |
| 34 | |
| 35 | Boot |
| 36 | ==== |
| 37 | Set baseboard DIP switch: |
| 38 | S17: 1100XXXX |