
From: Simon Glass <sjg@chromium.org> Use simplefb on ARM devices so that we see a console earlier, assuming that 'console=tty0' is passed to Linux. Signed-off-by: Simon Glass <sjg@chromium.org> --- configs/efi-arm_app64_defconfig | 1 + lib/efi_client/efi_app.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/configs/efi-arm_app64_defconfig b/configs/efi-arm_app64_defconfig index 7e7a033311c..31658c17275 100644 --- a/configs/efi-arm_app64_defconfig +++ b/configs/efi-arm_app64_defconfig @@ -15,6 +15,7 @@ CONFIG_FIT=y CONFIG_BOOTSTD_FULL=y CONFIG_SHOW_BOOT_PROGRESS=y CONFIG_OF_SYSTEM_SETUP=y +CONFIG_FDT_SIMPLEFB=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTCOMMAND="bootflow scan -lbp" CONFIG_SYS_PBSIZE=532 diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 28f6610e0eb..81d60f9404a 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -17,6 +17,7 @@ #include <efi_api.h> #include <efi_stub.h> #include <errno.h> +#include <fdt_simplefb.h> #include <image.h> #include <init.h> #include <malloc.h> @@ -339,6 +340,12 @@ int ft_system_setup(void *fdt, struct bd_info *bd) return ret; } + ret = fdt_simplefb_add_node(fdt); + if (ret) { + printf("failed to set up simplefb\n"); + return ret; + } + free(map); return 0; -- 2.43.0