From: patrick Date: Thu, 8 Dec 2022 00:29:06 +0000 (+0000) Subject: Forcibly set console output to the framebuffer on the Lenovo x13s. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a36d06b9e40430f5be0c39969fa4ef73cd6eed11;p=openbsd Forcibly set console output to the framebuffer on the Lenovo x13s. We should actually do something like checking that both stdout-path and serial0 don't exist to realize we have to switch, but this hack gets us going for now. ok kettenis@ --- diff --git a/sys/arch/arm64/stand/efiboot/conf.c b/sys/arch/arm64/stand/efiboot/conf.c index ae2813eee16..627271abf24 100644 --- a/sys/arch/arm64/stand/efiboot/conf.c +++ b/sys/arch/arm64/stand/efiboot/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.42 2022/12/07 23:04:26 patrick Exp $ */ +/* $OpenBSD: conf.c,v 1.43 2022/12/08 00:29:06 patrick Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -46,7 +46,7 @@ #include "efipxe.h" #include "softraid_arm64.h" -const char version[] = "1.14"; +const char version[] = "1.15"; int debug = 0; struct fs_ops file_system[] = { diff --git a/sys/arch/arm64/stand/efiboot/efiboot.c b/sys/arch/arm64/stand/efiboot/efiboot.c index 970b8fa0a35..7629136f2ff 100644 --- a/sys/arch/arm64/stand/efiboot/efiboot.c +++ b/sys/arch/arm64/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.45 2022/12/07 23:04:26 patrick Exp $ */ +/* $OpenBSD: efiboot.c,v 1.46 2022/12/08 00:29:06 patrick Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko @@ -1104,9 +1104,12 @@ efi_fdt(void) return fdt_sys; if (strcmp(hw_vendor, "LENOVO") == 0 && - strncmp(hw_prod, "21BX", 4) == 0) + strncmp(hw_prod, "21BX", 4) == 0) { fdt_load_override(FW_PATH "qcom/sc8280xp-lenovo-thinkpad-x13s.dtb"); + /* TODO: find a better mechanism */ + cnset(ttydev("fb0")); + } return fdt_override ? fdt_override : fdt_sys; }