Skip to contentSkip to conversation

imx8mp: binman: rename spl and u-boot nodes

PATCH In review Rasmus Villemoes 4 participants 4 messages Sep 19, 2023 – Oct 16, 2023

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

PATCH 1/1 imx8mp: binman: rename spl and u-boot nodes

The hab signing script doc/imx/habv4/csf_examples/mx8m/csf.sh does

fdtget -t x u-boot.dtb /binman/imx-boot/uboot offset

to figure out the offset of u-boot.itb inside flash.bin. That works fine for imx8mm, imx8mn, imx8mq, but fails for imx8mp because in that case 'uboot' is merely a label and not actually the node name.

Homogenize these cases and make imx8mp the same as the other imx8m* variants. The binman type is explicitly given and no longer derived from the node name, and the csf.sh script will work for all four SOCs.

---
 arch/arm/dts/imx8mp-u-boot.dtsi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/dts/imx8mp-u-boot.dtsi +4 -2
index 200938a980..355af16cf3 100644
@@ -171,14 +171,16 @@
 		filename = "flash.bin";
 		pad-byte = <0x00>;
 
-		spl: blob-ext@1 {
+		spl {
 			filename = "spl.bin";
 			offset = <0x0>;
+			type = "blob-ext";
 		};
 
-		uboot: blob-ext@2 {
+		binman_uboot: uboot {
 			filename = "u-boot.itb";
 			offset = <0x58000>;
+			type = "blob-ext";
 		};
 	};
 };
Signature · 1 line
2.37.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 30 lines · Rasmus Villemoes

The hab signing script doc/imx/habv4/csf_examples/mx8m/csf.sh does

fdtget -t x u-boot.dtb /binman/imx-boot/uboot offset

to figure out the offset of u-boot.itb inside flash.bin. That works fine for imx8mm, imx8mn, imx8mq, but fails for imx8mp because in that case 'uboot' is merely a label and not actually the node name.

Homogenize these cases and make imx8mp the same as the other imx8m* variants. The binman type is explicitly given and no longer derived from the node name, and the csf.sh script will work for all four SOCs.

---
  arch/arm/dts/imx8mp-u-boot.dtsi | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/dts/imx8mp-u-boot.dtsi +2 -1
index 200938a980..355af16cf3 100644
@@ -171,14 +171,16 @@
  		filename = "flash.bin";
  		pad-byte = <0x00>;
 
-		spl: blob-ext@1 {
+		spl {
  			filename = "spl.bin";
  			offset = <0x0>;
+			type = "blob-ext";

arch/arm/dts/imx8mp-u-boot.dtsi line 186

Quoted 10 lines
arch/arm/dts/imx8mp-u-boot.dtsi +2 -1
  		};
 
-		uboot: blob-ext@2 {
+		binman_uboot: uboot {
  			filename = "u-boot.itb";
  			offset = <0x58000>;
+			type = "blob-ext";
  		};
  	};
  };
reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Rasmus Villemoes
Quoted 9 lines · Rasmus Villemoes

The hab signing script doc/imx/habv4/csf_examples/mx8m/csf.sh does

fdtget -t x u-boot.dtb /binman/imx-boot/uboot offset

to figure out the offset of u-boot.itb inside flash.bin. That works fine for imx8mm, imx8mn, imx8mq, but fails for imx8mp because in that case 'uboot' is merely a label and not actually the node name.

Quoted 5 lines

Homogenize these cases and make imx8mp the same as the other imx8m* variants. The binman type is explicitly given and no longer derived from the node name, and the csf.sh script will work for all four SOCs.

#3 lore raw

PATCH 1/1 imx8mp: binman: rename spl and u-boot nodes

In reply to Rasmus Villemoes
Quoted 11 lines

The hab signing script doc/imx/habv4/csf_examples/mx8m/csf.sh does
fdtget -t x u-boot.dtb /binman/imx-boot/uboot offset
to figure out the offset of u-boot.itb inside flash.bin. That works fine for imx8mm, imx8mn, imx8mq, but fails for imx8mp because in that case 'uboot' is merely a label and not actually the node name. Homogenize these cases and make imx8mp the same as the other imx8m* variants. The binman type is explicitly given and no longer derived from the node name, and the csf.sh script will work for all four SOCs.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================