summaryrefslogtreecommitdiff
path: root/package/grub
diff options
context:
space:
mode:
Diffstat (limited to 'package/grub')
-rw-r--r--package/grub/Makefile19
-rw-r--r--package/grub/files/grub-efi-dual-serial.cfg (renamed from package/grub/files/grub-dual.cfg)8
-rw-r--r--package/grub/files/grub-efi-serial.cfg (renamed from package/grub/files/grub.cfg)0
-rw-r--r--package/grub/files/grub-pc-serial.cfg14
-rw-r--r--package/grub/files/grub-pc-vga.cfg2
5 files changed, 33 insertions, 10 deletions
diff --git a/package/grub/Makefile b/package/grub/Makefile
index d37472b8c..3d7f8d868 100644
--- a/package/grub/Makefile
+++ b/package/grub/Makefile
@@ -66,6 +66,11 @@ GRUB_PREFIX= (hd0,msdos1)/boot/grub
GRUB_TARGET= i386
GRUB_PLATFORM= pc
GRUB_MODULES= boot linux ext2 fat part_msdos part_gpt normal biosdisk
+ifeq ($(ADK_TARGET_QEMU_WITH_GRAPHIC),y)
+GRUB_CFG= grub-pc-vga.cfg
+else
+GRUB_CFG= grub-pc-serial.cfg
+endif
endif
ifeq ($(ADK_PACKAGE_GRUB_EFI_X86),y)
@@ -77,6 +82,11 @@ GRUB_PREFIX= /EFI/BOOT
GRUB_TARGET= i386
GRUB_PLATFORM= efi
GRUB_MODULES= boot linux ext2 fat part_msdos part_gpt normal efi_gop
+ifeq ($(ADK_TARGET_DUAL_BOOT),y)
+GRUB_CFG= grub-efi-serial-dual.cfg
+else
+GRUB_CFG= grub-efi-serial.cfg
+endif
endif
ifeq ($(ADK_PACKAGE_GRUB_EFI_X86_64),y)
@@ -88,15 +98,10 @@ GRUB_PREFIX= /EFI/BOOT
GRUB_TARGET= x86_64
GRUB_PLATFORM= efi
GRUB_MODULES= boot linux ext2 fat part_msdos part_gpt normal efi_gop
-endif
-
ifeq ($(ADK_TARGET_DUAL_BOOT),y)
-GRUB_CFG= grub-dual.cfg
-else
-ifeq ($(ADK_TARGET_QEMU_WITH_GRAPHIC),y)
-GRUB_CFG= grub-pc-vga.cfg
+GRUB_CFG= grub-efi-dual-serial.cfg
else
-GRUB_CFG= grub.cfg
+GRUB_CFG= grub-efi-serial.cfg
endif
endif
diff --git a/package/grub/files/grub-dual.cfg b/package/grub/files/grub-efi-dual-serial.cfg
index 46b5451ad..fde844e09 100644
--- a/package/grub/files/grub-dual.cfg
+++ b/package/grub/files/grub-efi-dual-serial.cfg
@@ -1,13 +1,17 @@
+serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
+terminal_input serial
+terminal_output serial
+
if [ "x\${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
- set timeout=0
+ set timeout=2
fi
else
if sleep --interruptible 2; then
- set timeout=0
+ set timeout=2
fi
fi
fi
diff --git a/package/grub/files/grub.cfg b/package/grub/files/grub-efi-serial.cfg
index 3fdc48eda..3fdc48eda 100644
--- a/package/grub/files/grub.cfg
+++ b/package/grub/files/grub-efi-serial.cfg
diff --git a/package/grub/files/grub-pc-serial.cfg b/package/grub/files/grub-pc-serial.cfg
new file mode 100644
index 000000000..4b6a0616c
--- /dev/null
+++ b/package/grub/files/grub-pc-serial.cfg
@@ -0,0 +1,14 @@
+serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
+terminal_input serial
+terminal_output serial
+
+set default=0
+set timeout=3
+
+menuentry "OpenADK" {
+ insmod msdospart
+ insmod ext2
+ set root='hd0,1'
+ echo "Loading OpenADK"
+ linux /boot/kernel root=/dev/sda1 rootfstype=ext4 rootwait panic=10
+}
diff --git a/package/grub/files/grub-pc-vga.cfg b/package/grub/files/grub-pc-vga.cfg
index b0259ddb3..72af5abce 100644
--- a/package/grub/files/grub-pc-vga.cfg
+++ b/package/grub/files/grub-pc-vga.cfg
@@ -6,5 +6,5 @@ menuentry "OpenADK" {
insmod ext2
set root='hd0,1'
echo "Loading OpenADK"
- linux /boot/kernel root=/dev/sda1 rootfstype=ext4 rootwait panic=10
+ linux /boot/kernel console=tty0 root=/dev/sda1 rootfstype=ext4 rootwait panic=10
}