From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Subject: [PATCH] default terminals on i386-pc / i386-ieee1275
Date: Wed, 12 Nov 2008 19:11:28 +0100 [thread overview]
Message-ID: <20081112181128.GA10129@thorin> (raw)
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]
Hi,
I think it would be good to make at_keyboard the default input terminal on
i386-ieee1275, after the kernel has loaded (via grub-mkconfig). The AT
keyboard is the only choice on OLPC anyway, and avoids ofconsole bugs
(this used to be the old behaviour before the terminal split).
Also, I think it would be good to make vga_text the default output terminal
on i386-pc, provided that gfxterm auto-setup (in grub-mkconfig.in) wasn't
possible. BIOS output is occasionally buggy (seen in a recent thread), and
this way we avoid problems.
See attached patch.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
[-- Attachment #2: mkconfig_defaults.diff --]
[-- Type: text/x-diff, Size: 1152 bytes --]
2008-11-12 Robert Millan <rmh@aybabtu.com>
* util/grub.d/00_header.in: Default input terminal to at_keyboard for
i386-ieee1275, and default output terminal to vga_text on i386-pc.
Index: util/grub.d/00_header.in
===================================================================
--- util/grub.d/00_header.in (revision 1910)
+++ util/grub.d/00_header.in (working copy)
@@ -22,6 +22,8 @@ prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
grub_prefix=`echo /boot/grub | sed ${transform}`
+target_cpu=@target_cpu@
+platform=@platform@
. ${libdir}/grub/grub-mkconfig_lib
@@ -40,6 +42,18 @@ set default=${GRUB_DEFAULT}
set timeout=${GRUB_TIMEOUT}
EOF
+# Platform-specific overrides
+case ${target_cpu}-${platform} in
+ i386-ieee1275)
+ # AT keyboard is the only choice on OLPC anyway.
+ GRUB_TERMINAL_INPUT=${GRUB_TERMINAL_INPUT:-at_keyboard}
+ ;;
+ i386-pc)
+ # Garanteed to work (and sometimes avoids BIOS bugs)
+ GRUB_TERMINAL_OUTPUT=${GRUB_TERMINAL_OUTPUT:-vga_text}
+ ;;
+esac
+
case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in
serial:* | *:serial)
if ! test -e ${grub_prefix}/serial.mod ; then
next reply other threads:[~2008-11-12 18:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 18:11 Robert Millan [this message]
2008-11-13 17:42 ` [PATCH] default terminals on i386-pc / i386-ieee1275 Vesa Jääskeläinen
2008-11-22 19:57 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081112181128.GA10129@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox