summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-14 13:44:03 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-14 13:44:03 -0800
commit919a84b4c6580a0da181b68803cc351c74156871 (patch)
tree1dacff503234ae1ad1c2b3100f9850fa457d7849
parent59c50771a80bd57b9f0c82505799909b022d3023 (diff)
downloadvyatta-cfg-quagga-919a84b4c6580a0da181b68803cc351c74156871.tar.gz
vyatta-cfg-quagga-919a84b4c6580a0da181b68803cc351c74156871.zip
Re-enable frame-buffer on console
The frame-buffer allows for Vyatta logo, scrollback, and more lines of text on VGA console.
-rwxr-xr-xscripts/install-system5
-rwxr-xr-xscripts/vyatta-grub-setup19
2 files changed, 8 insertions, 16 deletions
diff --git a/scripts/install-system b/scripts/install-system
index fd55b102..d214d93d 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -83,9 +83,8 @@ SPID=$$
# Grub options
GRUB_OPTIONS="quiet"
-# Output to both console (last device is /dev/console)
-VTY_CONSOLE="console=ttyS0,9600 console=tty0"
-SERIAL_CONSOLE="console=tty0 console=ttyS0,9600"
+# Enable Vesa framebuffer mode (comment out to disable)
+VGA_LOGO="vga=0x314" # 800 x 600 (16bit colors)
# trap signals so we can kill runaway progress indicators
trap 'progress_indicator stop; exit 1' 1
diff --git a/scripts/vyatta-grub-setup b/scripts/vyatta-grub-setup
index 487356c4..68d12614 100755
--- a/scripts/vyatta-grub-setup
+++ b/scripts/vyatta-grub-setup
@@ -60,16 +60,9 @@ serial_console="console=tty0 console=ttyS0,9600"
# If vga_logo is set, enable use of the VGA monitor for displaying the
# logo during boot. The "vga=" boot command specifies a VGA mode that
# is encoded as shown below. We pick a value that is likely to work
-# on most systems:
-#
-# Color depth | 640x480 | 800x600 | 1024x768 | 1280x1024
-# -----------------+---------+---------+----------+----------
-# 256 (8bit) | 769 771 773 775
-# 32000 (15bit) | 784 787 790 793
-# 65000 (16bit) | 785 788 791 794
-# 16.7 Mill.(24bit)| 786 789 792 795
-#
-#vga_logo="vga=785"
+# on most systems. (Disabled on Xen)
+# See kernel Documentation/fb/vesafb.txt for resolution constants
+#VGA_LOGO="vga=785"
# get list of kernels, except Xen
kernel_versions=$(ls $ROOTFSDIR/boot/vmlinuz-* 2> /dev/null | grep -v xen | awk -F/ '{ print $5 }' | sed 's/vmlinuz//g' | sort -r)
@@ -185,7 +178,7 @@ fi
echo
echo -e "menuentry \"Vyatta Xen linux$xversion dom0\" {"
echo -e "\tmultiboot /boot/$xen_version dom0_mem=512M"
- echo -e "\tmodule /boot/vmlinuz$xversion $GRUB_OPTIONS $vga_logo $vty_console"
+ echo -e "\tmodule /boot/vmlinuz$xversion $GRUB_OPTIONS $vty_console"
echo -e "\tmodule /boot/initrd.img$xversion"
echo -e "}"
done
@@ -197,7 +190,7 @@ fi
echo
echo -e "menuentry \"Vyatta Xen linux$xversion dom0\" {"
echo -e "\tmultiboot /boot/$livedir/$union_xen_version dom0_mem=512M"
- echo -e "\tmodule /boot/$livedir/vmlinuz$xversion $GRUB_OPTIONS $vga_logo $vty_console"
+ echo -e "\tmodule /boot/$livedir/vmlinuz$xversion $GRUB_OPTIONS $vty_console"
echo -e "\tmodule /boot/$livedir/initrd.img$xversion"
echo -e "}"
done
@@ -206,7 +199,7 @@ fi
if [ -f "$ROOTFSDIR/boot/vmlinuz" ] && ! eval $UNION ; then
# Set first system boot option. Make KVM the default console in this one.
echo -e "menuentry \"Vyatta (KVM console)\" {"
- echo -e "\tlinux /boot/vmlinuz $GRUB_OPTIONS $vga_logo $vty_console"
+ echo -e "\tlinux /boot/vmlinuz $GRUB_OPTIONS $VGA_LOGO $vty_console"
echo -e "\tinitrd /boot/initrd.img"
echo -e "}"