[PATCH 67/67] upl: Add an 'addr' property for Tianocore

Simon Glass sjg at chromium.org
Wed Jan 1 23:09:53 CET 2025


Tianocore expects this property to specify the entry address. Add it
until it can be updated to follow the spec in this area, i.e. use an
'entry' property in the relevant upl-image node.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 boot/upl_write.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/boot/upl_write.c b/boot/upl_write.c
index 5db5d02e6e8..a9d25f607fe 100644
--- a/boot/upl_write.c
+++ b/boot/upl_write.c
@@ -307,6 +307,12 @@ static int add_upl_images(const struct upl *upl, ofnode options)
 						  img->description);
 		if (ret)
 			return log_msg_ret("sim", ret);
+
+		/* temporary hack for Tinaocore, until March 2025 */
+		ret = write_addr(upl, node, "addr", upl->fit.base);
+		if (ret < 0)
+			return log_msg_ret("uma", ret);
+
 	}
 
 	return 0;
-- 
2.43.0



More information about the U-Boot mailing list