]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8mm_venice: switch to use binman to pack images
authorTim Harvey <tharvey@gateworks.com>
Fri, 7 Jan 2022 20:41:35 +0000 (12:41 -0800)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jan 2022 20:49:13 +0000 (15:49 -0500)
Use binman to pack images.

Note that imx8mm_venice supports several boards via multiple DTB's thus
in the fit node we must use:
- fit,fdt-list = "of-list"
- fdt-SEQ
- config-SEQ

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/imx8m/Kconfig
board/gateworks/venice/Kconfig
board/gateworks/venice/README
board/gateworks/venice/imximage-8mm-lpddr4.cfg [new file with mode: 0644]
configs/imx8mm_venice_defconfig

index d630a73f13ba2a8bb18eaadb408f9e7c319f651f..d6a869068a3c1fa28a6be84db37b8df7a25f8ec9 100644 (file)
@@ -73,6 +73,7 @@ config TARGET_IMX8MM_ICORE_MX8MM
 
 config TARGET_IMX8MM_VENICE
        bool "Support Gateworks Venice iMX8M Mini module"
+       select BINMAN
        select IMX8MM
        select SUPPORT_SPL
        select IMX8M_LPDDR4
index 639bf35d205049b99820fd1123ab94adc5045fbc..687b94f24dd3ccfd3869a5a64347f109b0a2e4e5 100644 (file)
@@ -10,6 +10,5 @@ config SYS_CONFIG_NAME
        default "imx8mm_venice"
 
 config IMX_CONFIG
-       default "arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg"
-
+       default "board/gateworks/venice/imximage-8mm-lpddr4.cfg"
 endif
index 6a0ab1ef10ac611ecdb3ae996dd444f48269f7a8..773cc09e87247cedaeaf698c0ce77727c70ab5f3 100644 (file)
@@ -25,7 +25,7 @@ $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin .
 Build U-Boot
 ============
 $ make imx8mm_venice_defconfig
-$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x920000
+$ make CROSS_COMPILE=aarch64-linux-gnu-
 
 Update eMMC
 ===========
diff --git a/board/gateworks/venice/imximage-8mm-lpddr4.cfg b/board/gateworks/venice/imximage-8mm-lpddr4.cfg
new file mode 100644 (file)
index 0000000..ccaa765
--- /dev/null
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2021 Gateworks Corporation
+ */
+
+#define __ASSEMBLY__
+
+BOOT_FROM      sd
+LOADER         u-boot-spl-ddr.bin      0x7E1000
index c4c75d2a38eb350766092ff846b41063c7346c71..6f522880d70d3e98894065e8002fb214376827a6 100644 (file)
@@ -25,7 +25,7 @@ CONFIG_SYS_LOAD_ADDR=0x40480000
 CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
-CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-imx/mkimage_fit_atf.sh"
+# CONFIG_USE_SPL_FIT_GENERATOR is not set
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_SYSTEM_SETUP=y
 # CONFIG_USE_BOOTCOMMAND is not set
@@ -56,7 +56,7 @@ CONFIG_CMD_EXT4_WRITE=y
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
-CONFIG_OF_LIST="imx8mm-venice-gw71xx-0x imx8mm-venice-gw72xx-0x imx8mm-venice-gw73xx-0x imx8mm-venice-gw7901 imx8mm-venice-gw7902"
+CONFIG_OF_LIST="imx8mm-venice imx8mm-venice-gw71xx-0x imx8mm-venice-gw72xx-0x imx8mm-venice-gw73xx-0x imx8mm-venice-gw7901 imx8mm-venice-gw7902"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y