Configuring a Grub2 bootloader that can
boot Android-x86 was not that hard for me, providing that you have
a (Linux) system that can mount your Android-x86 disk and that has
grub2 available.
I use some Ubuntu system, on which I mount my Android x86 disk
(it's a USB disk, you can also connect an HDD to a USB adapter
etc...)
When you have your Linux and the Android disk mounted, you just
have to run grub-install:
grub-install --force --no-floppy
--boot-directory=/media/Androidx86System/boot /dev/sdb
where
/media/Androidx86System
is your mount point
and
/dev/sdb
your android_x86 device
Then, you have to create a grub.cfg configuration file in the
/boot/grub/ directory of your android disk.
It should be similar to:
#=======================
set default="0"
set timeout=8
menuentry "Android-x86 4.4 2014-05-21" {
insmod ext2
set root=(hd0,1)
linux /android-2014-05-21/kernel quiet root=/dev/ram0
androidboot.hardware=android_x86 video=-16 SRC=/android-2014-05-21
initrd /android-2014-05-21/initrd.img
}
menuentry "Android-x86 4.4 (Debug Mode)" {
insmod ext2
set root=(hd0,1)
linux /android-2014-05-21/kernel root=/dev/ram0
androidboot.hardware=android_x86 video=-16 DEBUG=2
SRC=/android-2014-05-21
initrd /android-2014-05-21/initrd.img
}
menuentry "Android-x86 4.4 (Debug nomodeset)" {
insmod ext2
set root=(hd0,1)
linux /android-2014-05-21/kernel nomodeset root=/dev/ram0
androidboot.hardware=android_x86 video=-16 DEBUG=2
SRC=/android-2014-05-21
initrd /android-2014-05-21/initrd.img
}
menuentry "Android-x86 4.4 (Debug video=LVDS-1:d)" {
insmod ext2
set root=(hd0,1)
linux /android-2014-05-21/kernel video=LVDS-1:d root=/dev/ram0
androidboot.hardware=android_x86 video=-16 DEBUG=2
SRC=/android-2014-05-21
initrd /android-2014-05-21/initrd.img
}
#===========================
(my android_x86 is installed in /android-2014-05-21/ of the
android HDD, which is on the 1st partition of the disk (hd0,1).
You would have to adapt the cfg file to your own install)
Of course, your Android HDD must be partitioned so that the active
(bootable) partition is the one that holds the /boot folder (1st
partition of the disk in my case).
Note that I did use an EFI compliant system (HP t610) that can
boot off (USB) HDD in Legacy mode.