Adam Ford | f36f8bc | 2020-05-03 08:11:33 -0500 | [diff] [blame] | 1 | U-Boot for the Beacon EmbeddedWorks 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 | |
| 14 | $ git clone https://source.codeaurora.org/external/imx/imx-atf |
| 15 | $ git checkout imx_4.19.35_1.0.0 |
| 16 | $ make PLAT=imx8mm bl31 ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- |
| 17 | $ cp build/imx8mm/release/bl31.bin $(srctree) |
| 18 | |
| 19 | Get the DDR firmware |
| 20 | ==================== |
| 21 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin |
| 22 | $ chmod +x firmware-imx-8.5.bin |
| 23 | $ ./firmware-imx-8.5 |
| 24 | $ cp firmware-imx-8.5/firmware/ddr/synopsys/lpddr4*.bin $(srctree) |
| 25 | |
| 26 | Build U-Boot |
| 27 | ============ |
| 28 | $ make imx8mm_beacon_defconfig |
Tom Rini | 2b41e19 | 2020-05-26 14:36:49 -0400 | [diff] [blame] | 29 | $ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x920000 |
Adam Ford | f36f8bc | 2020-05-03 08:11:33 -0500 | [diff] [blame] | 30 | |
| 31 | Burn U-Boot to microSD Card |
| 32 | =========================== |
| 33 | $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 |
| 34 | |
| 35 | Boot |
| 36 | ==== |
| 37 | Set Boot switch to SD boot |