Skip to contentSkip to conversation

imx: imx8qxp: giedi switch to binman

PATCH New Oliver Graute 2 participants 3 messages Oct 26, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: imx8qxp: giedi switch to binman

---
 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(-)
arch/arm/dts/imx8qxp-capricorn-u-boot.dtsi +127 -0
index 1cf58fc3f9..020f58fd0f 100644
@@ -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;
arch/arm/mach-imx/imx8/Kconfig +1 -0
index 4ccbabf506..63d99ea23e 100644
@@ -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
board/siemens/capricorn/imximage.cfg +1 -1
index fa871bac21..4350e2967c 100644
@@ -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 */
configs/giedi_defconfig +2 -0
index ab7fa51172..fdc6b0b2b3 100644
@@ -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
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 imx: imx8qxp: deneb switch to binman

---
 arch/arm/mach-imx/imx8/Kconfig | 1 +
 configs/deneb_defconfig        | 2 ++
 2 files changed, 3 insertions(+)
arch/arm/mach-imx/imx8/Kconfig +1 -0
index 63d99ea23e..018b87b85b 100644
@@ -56,6 +56,7 @@ config TARGET_COLIBRI_IMX8X
 
 config TARGET_DENEB
 	bool "Support i.MX8QXP Capricorn Deneb board"
+	select BINMAN
 	select BOARD_LATE_INIT
 	select FACTORYSET
 	select IMX8QXP
configs/deneb_defconfig +2 -0
index 2497b5d922..22efc998f6 100644
@@ -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
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH v1] imx: imx8qxp: deneb switch to binman

Quoted 23 lines · Oliver Graute
---
  arch/arm/mach-imx/imx8/Kconfig | 1 +
  configs/deneb_defconfig        | 2 ++
  2 files changed, 3 insertions(+)
arch/arm/mach-imx/imx8/Kconfig +1 -0
index 63d99ea23e..018b87b85b 100644
@@ -56,6 +56,7 @@ config TARGET_COLIBRI_IMX8X
 
  config TARGET_DENEB
  	bool "Support i.MX8QXP Capricorn Deneb board"
+	select BINMAN
  	select BOARD_LATE_INIT
  	select FACTORYSET
  	select IMX8QXP
configs/deneb_defconfig +0 -0
index 2497b5d922..22efc998f6 100644

configs/deneb_defconfig CONFIG_SYS_LOAD_ADDR=0x80280000 · line 33

Quoted 8 lines
configs/deneb_defconfig +2 -0
@@ -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