grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video: Allow to set pure 'text' mode in case of EFI
@ 2017-10-13  2:18 Dennis Chen
  0 siblings, 0 replies; only message in thread
From: Dennis Chen @ 2017-10-13  2:18 UTC (permalink / raw)
  To: grub-devel; +Cc: nd, Dennis Chen

Current code doesn't accept a pure text mode when booting
from UEFI firmware on i386 platform, this will result in
below error message even we already have 'set gfxpayload=text'
configured: "no suitable video mode found". This often happens
when we boot a VM which UEFI firmware doesn't include 'suitable'
video modes.

UEFI spec doesn't tell it will not support pure text mode explicitly,
if GRUB2 strictly forbid this mode that means UEFI has to provide
a so-called 'suitable video mode'.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
---
 grub-core/loader/i386/linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c
index 5fdfea3..8cf1086 100644
--- a/grub-core/loader/i386/linux.c
+++ b/grub-core/loader/i386/linux.c
@@ -49,7 +49,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
 #include <grub/efi/efi.h>
 #define HAS_VGA_TEXT 0
 #define DEFAULT_VIDEO_MODE "auto"
-#define ACCEPTS_PURE_TEXT 0
+#define ACCEPTS_PURE_TEXT 1
 #elif defined (GRUB_MACHINE_IEEE1275)
 #include <grub/ieee1275/ieee1275.h>
 #define HAS_VGA_TEXT 0
-- 
2.7.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-13  6:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-13  2:18 [PATCH] video: Allow to set pure 'text' mode in case of EFI Dennis Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).