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."
2008-11-12 Robert Millan <[EMAIL PROTECTED]>
* 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 @@ [EMAIL PROTECTED]@
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@
grub_prefix=`echo /boot/grub | sed ${transform}`
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@
. ${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
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel