summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-03-08 05:33:23 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-17 04:00:53 +0100
commit7a260082297c19bbdba555d9aa530ccff1c77644 (patch)
tree2d96794c454c8650b0c3f483f42f1001cb6258c5
parente89ac6b9143e95b40cab8cdcf891cc928c8c5a43 (diff)
package/grub: Fix grub.cfg
When trying qemu-x86_64 target with full disk image, grub wasn't able to read the rootfs. After comparing it's config with the one used on my notebook, I was able to get it right. Apart from fixing the failure, this also enables serial output so grub menu becomes accessible when calling qemu with -nographic option. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--package/grub/files/grub.cfg10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/grub/files/grub.cfg b/package/grub/files/grub.cfg
index d87a52cac..8d20ab243 100644
--- a/package/grub/files/grub.cfg
+++ b/package/grub/files/grub.cfg
@@ -1,8 +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 part_msdos
+ insmod ext2
+ set root='hd0,msdos1'
echo "Loading OpenADK"
- set root=(hd0,2)
- linux (hd0,2)/boot/kernel root=/dev/sda2 rootfstype=ext4 rootwait panic=10
+ linux16 /boot/kernel root=/dev/sda1 rootfstype=ext4 rootwait panic=10
}