All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] imx8: switch missing boards to binman
@ 2022-11-02 15:56 Oliver Graute
  2022-11-02 15:56 ` [PATCH v5] imx: imx8qm-rom7720: switch " Oliver Graute
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Oliver Graute @ 2022-11-02 15:56 UTC (permalink / raw)
  To: sbabic
  Cc: oliver.graute, oliver.graute, festevam, peng.fan, uboot-imx,
	Marcel Ziswiler, Ye Li, Horia Geantă,
	Gaurav Jain, Denys Drozdov, u-boot

This patchsets switches the remaining imx8 boards to binman.

Oliver Graute (8):
  imx: imx8qm-rom7720: switch to binman
  imx: imx8qm: cgtqmx8: switch to binman
  imx: imx8qxp: imx8qxp_mek switch to binman
  imx: imx8qm: imx8qm_mek switch to binman
  imx: imx8qxp: giedi switch to binman
  imx: imx8qxp: deneb switch to binman
  imx: imx8x: colibri: switch to binman
  imx: imx8: apalis: switch to binman

 arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi    | 104 ++++++++++++++
 arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi       |   2 +
 arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi  | 104 ++++++++++++++
 arch/arm/dts/fsl-imx8qxp-mek-u-boot.dtsi      | 127 +++++++++++++++++
 arch/arm/dts/imx8qm-cgtqmx8.dts               |   1 +
 arch/arm/dts/imx8qm-rom7720-a1.dts            |   1 +
 arch/arm/dts/imx8qm-u-boot.dtsi               | 133 ++++++++++++++++++
 arch/arm/dts/imx8qxp-capricorn-u-boot.dtsi    | 127 +++++++++++++++++
 arch/arm/mach-imx/imx8/Kconfig                |   8 ++
 .../advantech/imx8qm_rom7720_a1/imximage.cfg  |   4 +-
 board/congatec/cgtqmx8/imximage.cfg           |   4 +-
 board/freescale/imx8qm_mek/README             |   2 +-
 board/freescale/imx8qxp_mek/imximage.cfg      |   3 +-
 board/siemens/capricorn/imximage.cfg          |   2 +-
 configs/apalis-imx8_defconfig                 |   1 +
 configs/cgtqmx8_defconfig                     |   4 +-
 configs/colibri-imx8x_defconfig               |   1 +
 configs/deneb_defconfig                       |   2 +
 configs/giedi_defconfig                       |   2 +
 configs/imx8qm_mek_defconfig                  |   2 +
 configs/imx8qm_rom7720_a1_4G_defconfig        |   3 +-
 configs/imx8qxp_mek_defconfig                 |   2 +
 doc/board/advantech/imx8qm-rom7720-a1.rst     |   3 +-
 doc/board/congatec/cgtqmx8.rst                |   3 +-
 doc/board/nxp/imx8qxp_mek.rst                 |   2 +-
 25 files changed, 632 insertions(+), 15 deletions(-)
 create mode 100644 arch/arm/dts/imx8qm-u-boot.dtsi

-- 
2.17.1


^ permalink raw reply	[flat|nested] 17+ messages in thread
* [PATCH v1] imx: imx8qxp: giedi switch to binman
@ 2022-10-26  8:44 Oliver Graute
  2022-10-26  8:44 ` [PATCH v1] imx: imx8qxp: deneb " Oliver Graute
  0 siblings, 1 reply; 17+ messages in thread
From: Oliver Graute @ 2022-10-26  8:44 UTC (permalink / raw)
  To: sbabic
  Cc: festevam, peng.fan, oliver.graute, uboot-imx, agust, u-boot,
	Denys Drozdov, Gaurav Jain, Ye Li, Marcel Ziswiler,
	Horia Geantă

Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com>
---
 arch/arm/dts/imx8qxp-capricorn-u-boot.dtsi | 127 +++++++++++++++++++++
 arch/arm/mach-imx/imx8/Kconfig             |   1 +
 board/siemens/capricorn/imximage.cfg       |   2 +-
 configs/giedi_defconfig                    |   2 +
 4 files changed, 131 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/imx8qxp-capricorn-u-boot.dtsi b/arch/arm/dts/imx8qxp-capricorn-u-boot.dtsi
index 1cf58fc3f9..020f58fd0f 100644
--- a/arch/arm/dts/imx8qxp-capricorn-u-boot.dtsi
+++ b/arch/arm/dts/imx8qxp-capricorn-u-boot.dtsi
@@ -3,6 +3,133 @@
  * Copyright 2019 Siemens AG
  */
 
+/ {
+	binman: binman {
+		multiple-images;
+	};
+};
+
+&binman {
+	u-boot-spl-ddr {
+		align = <4>;
+		align-size = <4>;
+		filename = "u-boot-spl-ddr.bin";
+		pad-byte = <0xff>;
+
+		u-boot-spl {
+			align-end = <4>;
+			filename = "u-boot-spl.bin";
+		};
+	};
+
+	spl {
+		filename = "spl.bin";
+
+		mkimage {
+			args = "-n spl/u-boot-spl.cfgout -T imx8image -e 0x100000";
+
+			blob {
+				filename = "u-boot-spl-ddr.bin";
+			};
+		};
+	};
+
+	itb {
+		filename = "u-boot.itb";
+
+		fit {
+			description = "Configuration to load ATF before U-Boot";
+			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
+			fit,fdt-list = "of-list";
+			#address-cells = <1>;
+
+			images {
+				uboot {
+					arch = "arm64";
+					compression = "none";
+					description = "U-Boot (64-bit)";
+					load = <CONFIG_SYS_TEXT_BASE>;
+					type = "standalone";
+
+					uboot-blob {
+						filename = "u-boot-nodtb.bin";
+						type = "blob-ext";
+					};
+				};
+
+				atf {
+					arch = "arm64";
+					compression = "none";
+					description = "ARM Trusted Firmware";
+					entry = <0x00910000>;
+					load =  <0x00091000>;
+					type = "firmware";
+
+					atf-blob {
+						filename = "bl31.bin";
+						type = "atf-bl31";
+					};
+				};
+
+				scfw {
+					arch = "arm64";
+					compression = "none";
+					description = "System Controler Firmware";
+					type = "firmware";
+
+					scfw_blob {
+						filename = "mx8qx-mek-scfw-tcm.bin";
+						type = "blob-ext";
+					};
+				};
+
+				seco {
+					arch = "arm64";
+					compression = "none";
+					description = "Seco Firmware";
+					type = "firmware";
+
+					seco_blob {
+						filename = "mx8qxc0-ahab-container.img";
+						type = "blob-ext";
+					};
+				};
+
+				fdt {
+					type = "flat_dt";
+					compression = "none";
+
+					uboot-fdt-blob {
+						filename = "u-boot.dtb";
+						type = "blob-ext";
+					};
+				};
+			};
+
+			configurations {
+				default = "conf";
+
+				conf {
+					fdt = "fdt";
+					firmware = "uboot";
+					loadables = "atf";
+				};
+			};
+		};
+	};
+
+	imx-boot {
+		filename = "flash.bin";
+		pad-byte = <0x00>;
+
+		spl {
+			filename = "spl.bin";
+			offset = <0x0>;
+			type = "blob-ext";
+		};
+	};
+};
+
 &{/imx8qx-pm} {
 
 	u-boot,dm-spl;
diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
index 4ccbabf506..63d99ea23e 100644
--- a/arch/arm/mach-imx/imx8/Kconfig
+++ b/arch/arm/mach-imx/imx8/Kconfig
@@ -62,6 +62,7 @@ config TARGET_DENEB
 
 config TARGET_GIEDI
 	bool "Support i.MX8QXP Capricorn Giedi board"
+	select BINMAN
 	select BOARD_LATE_INIT
 	select FACTORYSET
 	select IMX8QXP
diff --git a/board/siemens/capricorn/imximage.cfg b/board/siemens/capricorn/imximage.cfg
index fa871bac21..4350e2967c 100644
--- a/board/siemens/capricorn/imximage.cfg
+++ b/board/siemens/capricorn/imximage.cfg
@@ -8,7 +8,7 @@
 
 
 /* Boot from SD, sector size 0x400 */
-BOOT_FROM SD 0x400
+BOOT_FROM	sd
 /* SoC type IMX8QX */
 SOC_TYPE IMX8QX
 /* Append seco container image */
diff --git a/configs/giedi_defconfig b/configs/giedi_defconfig
index ab7fa51172..fdc6b0b2b3 100644
--- a/configs/giedi_defconfig
+++ b/configs/giedi_defconfig
@@ -26,6 +26,8 @@ CONFIG_SYS_LOAD_ADDR=0x80280000
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
 CONFIG_REMAKE_ELF=y
+CONFIG_FIT=y
+CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_BOOTDELAY=3
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-11-04 13:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02 15:56 [PATCH 0/8] imx8: switch missing boards to binman Oliver Graute
2022-11-02 15:56 ` [PATCH v5] imx: imx8qm-rom7720: switch " Oliver Graute
2022-11-02 15:56 ` [PATCH v6] imx: imx8qm: cgtqmx8: " Oliver Graute
2022-11-02 15:56 ` [PATCH v1] imx: imx8qxp: imx8qxp_mek " Oliver Graute
2022-11-02 15:56 ` [PATCH v2] imx: imx8qm: imx8qm_mek " Oliver Graute
2022-11-02 15:56 ` [PATCH v1] imx: imx8qxp: giedi " Oliver Graute
2022-11-02 15:56 ` [PATCH v1] imx: imx8qxp: deneb " Oliver Graute
2022-11-02 15:56 ` [PATCH v1] imx: imx8x: colibri: " Oliver Graute
2022-11-02 15:56 ` [PATCH v1] imx: imx8: apalis: " Oliver Graute
2022-11-02 16:16   ` Fabio Estevam
2022-11-04 12:38     ` Oliver Graute
2022-11-04 12:58       ` Fabio Estevam
2022-11-04 13:07         ` Oliver Graute
2022-11-04 13:03       ` Oliver Graute
2022-11-02 16:07 ` [PATCH 0/8] imx8: switch missing boards " Fabio Estevam
  -- strict thread matches above, loose matches on Subject: below --
2022-10-26  8:44 [PATCH v1] imx: imx8qxp: giedi switch " Oliver Graute
2022-10-26  8:44 ` [PATCH v1] imx: imx8qxp: deneb " Oliver Graute
2022-10-26  9:18   ` Peng Fan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.