Mathieu Othacehe | 2415f1d | 2023-12-29 11:55:23 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | imx93_var_som |
Fabio Estevam | 0b3e01d | 2024-01-08 18:11:38 -0300 | [diff] [blame] | 4 | ============= |
Mathieu Othacehe | 2415f1d | 2023-12-29 11:55:23 +0100 | [diff] [blame] | 5 | |
| 6 | U-Boot for the Variscite VAR-SOM-MX93 Symphony evaluation board |
| 7 | |
| 8 | Quick Start |
| 9 | ----------- |
| 10 | |
| 11 | - Get and Build the ARM Trusted firmware |
| 12 | - Get the DDR firmware |
| 13 | - Get ahab-container.img |
| 14 | - Build U-Boot |
| 15 | - Boot |
| 16 | |
| 17 | Get and Build the ARM Trusted firmware |
| 18 | -------------------------------------- |
| 19 | |
| 20 | Note: srctree is U-Boot source directory |
| 21 | Get ATF from: https://github.com/nxp-imx/imx-atf/ |
| 22 | branch: lf_v2.8 |
| 23 | |
| 24 | .. code-block:: bash |
| 25 | |
| 26 | $ unset LDFLAGS |
| 27 | $ make PLAT=imx93 bl31 |
| 28 | $ cp build/imx93/release/bl31.bin $(srctree) |
| 29 | |
| 30 | Get the DDR firmware |
| 31 | -------------------- |
| 32 | |
| 33 | .. code-block:: bash |
| 34 | |
| 35 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.21.bin |
| 36 | $ chmod +x firmware-imx-8.21.bin |
| 37 | $ ./firmware-imx-8.21.bin |
| 38 | $ cp firmware-imx-8.21/firmware/ddr/synopsys/lpddr4*.bin $(srctree) |
| 39 | |
| 40 | Get ahab-container.img |
Fabio Estevam | 0b3e01d | 2024-01-08 18:11:38 -0300 | [diff] [blame] | 41 | ---------------------- |
Mathieu Othacehe | 2415f1d | 2023-12-29 11:55:23 +0100 | [diff] [blame] | 42 | |
| 43 | .. code-block:: bash |
| 44 | |
Mathieu Othacehe | 4c7f0d2 | 2024-02-26 18:48:34 +0100 | [diff] [blame] | 45 | $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-sentinel-0.11.bin |
| 46 | $ chmod +x firmware-sentinel-0.11.bin |
| 47 | $ ./firmware-sentinel-0.11.bin |
| 48 | $ cp firmware-sentinel-0.11/mx93a1-ahab-container.img $(srctree) |
Mathieu Othacehe | 2415f1d | 2023-12-29 11:55:23 +0100 | [diff] [blame] | 49 | |
| 50 | Build U-Boot |
| 51 | ------------ |
| 52 | |
| 53 | .. code-block:: bash |
| 54 | |
| 55 | $ export CROSS_COMPILE=aarch64-poky-linux- |
| 56 | $ make imx93_var_som_defconfig |
| 57 | $ make |
| 58 | |
| 59 | Burn the flash.bin to MicroSD card offset 32KB: |
| 60 | |
| 61 | .. code-block:: bash |
| 62 | |
| 63 | $ dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc |
| 64 | |
| 65 | Boot |
| 66 | ---- |
| 67 | |
| 68 | Set Boot switch to SD boot |