From 781dc30c1b6704ead3aec12a01fc2bdeae3b3185 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sun, 2 Dec 2018 02:20:35 +0000 Subject: [PATCH] ubldr: Force 'usefdt' variable to 1 for powerpc The fdt is gated, on powerpc, with a 'usefdt' environment variable. Force enable it in ubldr, so that the fdt is passed through the metadata. --- stand/uboot/common/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stand/uboot/common/main.c b/stand/uboot/common/main.c index c7ca501c7a45..50a12cd425fb 100644 --- a/stand/uboot/common/main.c +++ b/stand/uboot/common/main.c @@ -497,6 +497,9 @@ main(int argc, char **argv) do_interact: setenv("LINES", "24", 1); /* optional */ setenv("prompt", "loader>", 1); +#ifdef __powerpc__ + setenv("usefdt", "1", 1); +#endif archsw.arch_loadaddr = uboot_loadaddr; archsw.arch_getdev = uboot_getdev;