|
@@ -1,60 +1,36 @@
|
|
-From patchwork Mon Mar 21 23:22:23 2022
|
|
|
|
-Content-Type: text/plain; charset="utf-8"
|
|
|
|
-MIME-Version: 1.0
|
|
|
|
-Content-Transfer-Encoding: 7bit
|
|
|
|
-X-Patchwork-Submitter: Daniel Golle <[email protected]>
|
|
|
|
-X-Patchwork-Id: 1607954
|
|
|
|
-Return-Path: <[email protected]>
|
|
|
|
-X-Original-To: [email protected]
|
|
|
|
-Delivered-To: [email protected]
|
|
|
|
-Date: Mon, 21 Mar 2022 23:22:23 +0000
|
|
|
|
|
|
+From 5f2d5915f8ea4785bc2b8a26955e176a7898c15b Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <[email protected]>
|
|
From: Daniel Golle <[email protected]>
|
|
-To: [email protected]
|
|
|
|
-Cc: Simon Glass <[email protected]>, Alexandru Gagniuc <[email protected]>,
|
|
|
|
- Patrick Delaunay <[email protected]>,
|
|
|
|
- Heinrich Schuchardt <[email protected]>
|
|
|
|
|
|
+Date: Tue, 12 Apr 2022 21:00:43 +0100
|
|
Subject: [PATCH] image-fdt: save name of FIT configuration in '/chosen' node
|
|
Subject: [PATCH] image-fdt: save name of FIT configuration in '/chosen' node
|
|
-Message-ID: <[email protected]>
|
|
|
|
-MIME-Version: 1.0
|
|
|
|
-Content-Disposition: inline
|
|
|
|
-X-BeenThere: [email protected]
|
|
|
|
-X-Mailman-Version: 2.1.39
|
|
|
|
-Precedence: list
|
|
|
|
-List-Id: U-Boot discussion <u-boot.lists.denx.de>
|
|
|
|
-List-Unsubscribe: <https://lists.denx.de/options/u-boot>,
|
|
|
|
- <mailto:[email protected]?subject=unsubscribe>
|
|
|
|
-List-Archive: <https://lists.denx.de/pipermail/u-boot/>
|
|
|
|
-List-Post: <mailto:[email protected]>
|
|
|
|
-List-Help: <mailto:[email protected]?subject=help>
|
|
|
|
-List-Subscribe: <https://lists.denx.de/listinfo/u-boot>,
|
|
|
|
- <mailto:[email protected]?subject=subscribe>
|
|
|
|
-Errors-To: [email protected]
|
|
|
|
-Sender: "U-Boot" <[email protected]>
|
|
|
|
|
|
|
|
It can be useful for the OS (Linux) to know which configuration has
|
|
It can be useful for the OS (Linux) to know which configuration has
|
|
been chosen by U-Boot when launching a FIT image.
|
|
been chosen by U-Boot when launching a FIT image.
|
|
Store the name of the FIT configuration node used in a new string
|
|
Store the name of the FIT configuration node used in a new string
|
|
-attribute called 'bootconf' in the '/chosen' node in device tree.
|
|
|
|
|
|
+property called 'u-boot,bootconf' in the '/chosen' node in device tree.
|
|
|
|
|
|
Signed-off-by: Daniel Golle <[email protected]>
|
|
Signed-off-by: Daniel Golle <[email protected]>
|
|
|
|
+Reviewed-by: Tom Rini <[email protected]>
|
|
---
|
|
---
|
|
boot/image-fdt.c | 6 ++++++
|
|
boot/image-fdt.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
1 file changed, 6 insertions(+)
|
|
|
|
|
|
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
|
|
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
|
|
-index 692a9ad3e4..4017bc94a6 100644
|
|
|
|
|
|
+index 692a9ad3e4..fdb69926a2 100644
|
|
--- a/boot/image-fdt.c
|
|
--- a/boot/image-fdt.c
|
|
+++ b/boot/image-fdt.c
|
|
+++ b/boot/image-fdt.c
|
|
@@ -601,6 +601,12 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
|
|
@@ -601,6 +601,12 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
|
|
goto err;
|
|
goto err;
|
|
}
|
|
}
|
|
|
|
|
|
-+ /* Store name of configuration node as bootconf in /chosen node */
|
|
|
|
|
|
++ /* Store name of configuration node as u-boot,bootconf in /chosen node */
|
|
+ if (images->fit_uname_cfg)
|
|
+ if (images->fit_uname_cfg)
|
|
-+ fdt_find_and_setprop(blob, "/chosen", "bootconf",
|
|
|
|
|
|
++ fdt_find_and_setprop(blob, "/chosen", "u-boot,bootconf",
|
|
+ images->fit_uname_cfg,
|
|
+ images->fit_uname_cfg,
|
|
+ strlen(images->fit_uname_cfg) + 1, 1);
|
|
+ strlen(images->fit_uname_cfg) + 1, 1);
|
|
+
|
|
+
|
|
/* Update ethernet nodes */
|
|
/* Update ethernet nodes */
|
|
fdt_fixup_ethernet(blob);
|
|
fdt_fixup_ethernet(blob);
|
|
#if CONFIG_IS_ENABLED(CMD_PSTORE)
|
|
#if CONFIG_IS_ENABLED(CMD_PSTORE)
|
|
|
|
+--
|
|
|
|
+2.35.3
|
|
|
|
+
|