[u-boot PATCH 2/3] tools/fdtgrep: Include __symbols__ table

Roger Quadros rogerq at kernel.org
Mon May 9 09:29:35 CEST 2022


This is required for overlays to work at SPL.

Signed-off-by: Roger Quadros <rogerq at kernel.org>
---
 tools/fdtgrep.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c
index 641d6a2e3e..d904f679ae 100644
--- a/tools/fdtgrep.c
+++ b/tools/fdtgrep.c
@@ -1230,6 +1230,10 @@ int main(int argc, char *argv[])
 		disp.fout = stdout;
 	}
 
+	/* include symbol table */
+	if (value_add(&disp, &disp.value_head, FDT_IS_NODE, 1, "/__symbols__"))
+		usage("Cannot add __symbols__ value");
+
 	/* Run the grep and output the results */
 	ret = do_fdtgrep(&disp, filename);
 	if (disp.output_fname)
-- 
2.17.1



More information about the U-Boot mailing list