of_print_cmdline() is passed a devicetree, so use this one instead of the internal devicetree. This fixes the cmdline printout when bootm on ARM is used with an external devicetree. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- common/oftree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/oftree.c b/common/oftree.c index aff4c28..f2a3169 100644 --- a/common/oftree.c +++ b/common/oftree.c @@ -100,7 +100,7 @@ void of_print_property(const void *data, int len) void of_print_cmdline(struct device_node *root) { - struct device_node *node = of_find_node_by_path("/chosen"); + struct device_node *node = of_find_node_by_path_from(root, "/chosen"); const char *cmdline; if (!node) { -- 1.8.3.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox