]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx9: imx93_evk: Add binman support.
authorMathieu Othacehe <m.othacehe@gmail.com>
Thu, 4 Jan 2024 15:30:09 +0000 (16:30 +0100)
committerFabio Estevam <festevam@gmail.com>
Mon, 8 Jan 2024 17:37:55 +0000 (14:37 -0300)
Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
arch/arm/dts/imx93-11x11-evk-u-boot.dtsi
arch/arm/mach-imx/imx9/Kconfig
configs/imx93_11x11_evk_defconfig
configs/imx93_11x11_evk_ld_defconfig
doc/board/nxp/imx93_11x11_evk.rst [new file with mode: 0644]
doc/board/nxp/index.rst

index 4ecb53ed8be1a30ab110d33ba13289bc3c06cd61..a99ba99bfb4f2c08752472536f2450c8e79fb87e 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright 2022 NXP
  */
 
+#include "imx93-u-boot.dtsi"
+
 / {
        wdt-reboot {
                compatible = "wdt-reboot";
index c51f80f311af4a7a395c13e4c30559ce154b62e1..7ba3835539827fc8794cbd5413a6d2217bc3ff47 100644 (file)
@@ -29,6 +29,7 @@ choice
 
 config TARGET_IMX93_11X11_EVK
        bool "imx93_11x11_evk"
+        select BINMAN
        select IMX93
 
 endchoice
index 3c9b09eec7af321bf56f9fb7f21a742f8c2bde4a..e53eea120d715410d28e6acd070f138067df93f5 100644 (file)
@@ -8,6 +8,8 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_ENV_SIZE=0x4000
 CONFIG_ENV_OFFSET=0x700000
+CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx9/imximage.cfg"
+CONFIG_IMX_CONTAINER_CFG="arch/arm/mach-imx/imx9/container.cfg"
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="imx93-11x11-evk"
 CONFIG_SPL_TEXT_BASE=0x2049A000
index 37aa1efa7fd6e620091215f2957133c8fc5273f7..c24b722600c5496ed9ac5aa7f9a8c39029cb09ed 100644 (file)
@@ -8,6 +8,8 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_ENV_SIZE=0x4000
 CONFIG_ENV_OFFSET=0x400000
+CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx9/imximage.cfg"
+CONFIG_IMX_CONTAINER_CFG="arch/arm/mach-imx/imx9/container.cfg"
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="imx93-11x11-evk"
 CONFIG_SPL_TEXT_BASE=0x2049A000
diff --git a/doc/board/nxp/imx93_11x11_evk.rst b/doc/board/nxp/imx93_11x11_evk.rst
new file mode 100644 (file)
index 0000000..fb0ecf8
--- /dev/null
@@ -0,0 +1,68 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+imx93_11x11_evk
+=======================
+
+U-Boot for the NXP i.MX93 EVK on the 11x11mm board
+
+Quick Start
+-----------
+
+- Get and Build the ARM Trusted firmware
+- Get the DDR firmware
+- Get ahab-container.img
+- Build U-Boot
+- Boot
+
+Get and Build the ARM Trusted firmware
+--------------------------------------
+
+Note: srctree is U-Boot source directory
+Get ATF from: https://github.com/nxp-imx/imx-atf/
+branch: lf_v2.8
+
+.. code-block:: bash
+
+   $ unset LDFLAGS
+   $ make PLAT=imx93 bl31
+   $ cp build/imx93/release/bl31.bin $(srctree)
+
+Get the DDR firmware
+--------------------
+
+.. code-block:: bash
+
+   $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.21.bin
+   $ chmod +x firmware-imx-8.21.bin
+   $ ./firmware-imx-8.21.bin
+   $ cp firmware-imx-8.21/firmware/ddr/synopsys/lpddr4*.bin $(srctree)
+
+Get ahab-container.img
+---------------------------------------
+
+.. code-block:: bash
+
+   $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-sentinel-0.10.bin
+   $ chmod +x firmware-sentinel-0.10.bin
+   $ ./firmware-sentinel-0.10.bin
+   $ cp firmware-sentinel-0.10/mx93a0-ahab-container.img $(srctree)
+
+Build U-Boot
+------------
+
+.. code-block:: bash
+
+   $ export CROSS_COMPILE=aarch64-poky-linux-
+   $ make imx93_11x11_evk_defconfig
+   $ make
+
+Burn the flash.bin to MicroSD card offset 32KB:
+
+.. code-block:: bash
+
+   $ dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc
+
+Boot
+----
+
+Set Boot switch to SD boot
index 4514b8951ba45ffc7b49f834053181a9611b0398..3bd9ed3c8731b46d8e6d7d17a218baf9b66d63cb 100644 (file)
@@ -11,6 +11,7 @@ NXP Semiconductors
    imx8mp_evk
    imx8mq_evk
    imx8qxp_mek
+   imx93_11x11_evk
    imxrt1020-evk
    imxrt1050-evk
    ls1046ardb