You are not logged in.

#1 2019-04-05 15:57:34

C-Ren
Member
Registered: 2019-03-21
Posts: 19

[SOLVED] Cannot make GRUB boot into Android x86

I installed Android x86 (8.1-r1) on the second primary partition of my storage drive, the first partition being an extended partition which includes my Arch Linux partition and swap partition. I followed the GRUB Arch Wiki article to learn how to add new OS entries to GRUB. I installed os-prober, ran  sudo os-prober  , then  sudo grub-mkconfig -o /boot/grub/grub.cfg  . No detection. So I decided to go for a manual method. I edited my  /etc/grub.d/40_custom  file to include the following:

menuentry "Android x86" {
        set root=(hd0,2)
        linux /android-8.1-r1/kernel
        initrd /android-8.1-r1/initrd.img
}

This way I got an entry on the GRUB menu for "Android x86". When I select it, the screen goes black, then I'm presented with a terminal output. The last line says "Looking for Android x86... Found at /dev/sda2" or something very similar. Then my PC powers off and reboots into GRUB as though nothing untoward has happened.

I've no prior experience with using GRUB, so I'm pretty sure I'm missing something obvious, and I'd appreciate some advice. Thanks.

Last edited by C-Ren (2019-04-10 18:32:19)

Offline

#2 2019-04-05 16:09:59

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Cannot make GRUB boot into Android x86

Looks like you may need some extra kernel parameters: https://ubuntuforums.org/showthread.php … st13412632

Did you not search before posting? I found that thread very quickly.

I'm not sure if this thread is suitable for these boards, can you not ask on the Android-x86 mailing lists?

https://groups.google.com/forum/#!forum/android-x86

Offline

#3 2019-04-05 19:03:35

C-Ren
Member
Registered: 2019-03-21
Posts: 19

Re: [SOLVED] Cannot make GRUB boot into Android x86

After consulting more resources I've come up with this:

menuentry "Android x86" {
        set root='(hd0,2)'
        linux /android-8.1-r1/kernel quiet root=/dev/ram0 acpi_sleep=s3_bios,s3_mode SRC=/android-8.1-r1
        initrd /android-8.1-r1/initrd.img
}

Still doesn't work. I've also tried all sorts of values for the  androidboot.hardware  parameter, but still nothing doing. It just reboots straight away. I've requested to join that Google Group you linked, thanks for making me aware of it. (Yes, this isn't quite the right forum for this issue, but it's the best one I knew of.)

Last edited by C-Ren (2019-04-05 19:03:51)

Offline

#4 2019-04-10 18:32:05

C-Ren
Member
Registered: 2019-03-21
Posts: 19

Re: [SOLVED] Cannot make GRUB boot into Android x86

This has been solved now. In case anyone finds this topic by a web search: the missing parameter, and its correct value, is:

androidboot.selinux=permissive

Thanks for your advice Head_on_a_Stick.

Offline

Board footer

Powered by FluxBB