Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this with qemu ? #5

Closed
beppe9000 opened this issue Mar 19, 2020 · 15 comments
Closed

How to use this with qemu ? #5

beppe9000 opened this issue Mar 19, 2020 · 15 comments

Comments

@beppe9000
Copy link

I would like to accelerate an aosp iso for android x86

@Taogle2018
Copy link
Collaborator

QEMU patch is not ready yet. Adding support to QEMU is not a priority here. However, I do have a patched QEMU. I can share with you if you like. But it is not tested much.

@beppe9000
Copy link
Author

That's fine. I can try it a little.

@Taogle2018
Copy link
Collaborator

OK. Let me share with you.
But please do remember the QEMU is NOT a google supported work as this Android Emulator Hypervisor Driver. It is a work in my spare time and more for people who want to play with QEMU for fun. :)

@Taogle2018
Copy link
Collaborator

Taogle2018 commented May 11, 2020

  • Download and install msys2

  • Start C:\msys64\mingw64.exe

  • Updates (then close window and restart mingw64.exe): pacman -Syu

  • Updates: pacman -Su

  • Install basic packets: pacman -S base-devel mingw-w64-x86_64-toolchain git python

  • Install QEMU specific packets: pacman -S mingw-w64-x86_64-glib2 mingw-w64-x86_64-gtk3 mingw-w64-x86_64-SDL2

  • Get QEMU sources:

git clone git://github.com/qemu-gvm/qemu-gvm.git
cd qemu-gvm
git submodule update --init ui/keycodemapdb
git submodule update --init capstone
git submodule update --init dtc

  • Build QEMU:

./configure --enable-gtk --enable-sdl --target-list=x86_64-softmmu --disable-werror --disable-capstone
make
Run in qemu/x86_64-softmmu ./qemu-system-x86_64 -L ./../pc-bios -accel gvm

@beppe9000
Copy link
Author

Thanks I will try!

@Taogle2018
Copy link
Collaborator

Let me close this issue. I am waiting for beppe9000's feedback. Now at least I know thesword53 can run the patched QEMU.

@beppe9000
Copy link
Author

beppe9000 commented Jun 9, 2020

I was unable to compile because of some msys errors... during package install (i had to add --needed to install base-devel), configure (unrecognized host os) and make (error 1, asking to do configure). I'm still waiting to try on another machine. It's a bit difficult right now with covid but I iwll eventually do it.

@Taogle2018
Copy link
Collaborator

https://1drv.ms/u/s!AljlID0ntVyugeg-BN5EnNV7Y2U2Hw?e=p3v1Ix
This is the one I built yesterday.

@beppe9000
Copy link
Author

beppe9000 commented Jun 10, 2020

Thanks, I tried like this and got here. Maybe my problem is that I'm not running android-x86 correctly, since I get no video after selecting the boot option.

image

It just stays like this, with a blinking cursor...

image

@Taogle2018
Copy link
Collaborator

It is the bios problem. Use this https://1drv.ms/u/s!AljlID0ntVyugehD4wb1psbX8_DCGA?e=67sBkM
and replace the same file in qemu-gvm-bin and try again.

@Taogle2018
Copy link
Collaborator

Or you can save the old one and rename to something else, in case you will need later to boot Windows 7 or 10. The old one is a UEFI bios. @thesword53 told me how bios matters. If you keep both, you are able to use "-bios xxxxx" to the command line.

@beppe9000
Copy link
Author

Ok, I tried replacing the file and making a backup of the old one. Now I get a kernel panic... which is better than no output. 🤷

image

@thesword53
Copy link

@beppe9000 Download the file OVMF_CODE.fd and add "-bios /path/to/OVMF_CODE.fd" to command line.

@Taogle2018
Copy link
Collaborator

I was able to boot android-x86_64-9.0-r1.iso on my Ryzen 2700 and Intel i9. I would like to help but it seems I can not reproduce it. Actually I was able to run 9.0-r2 and 14.1 as well.
Perhaps your AMD FX CPU makes difference here? Did you ever try to run the livecd directly on the hardware?

@beppe9000
Copy link
Author

beppe9000 commented Jun 12, 2020

add "-bios /path/to/OVMF_CODE.fd" to command line.

i tried this but it keeps rebooting after selecting the livecd option

Perhaps your AMD FX CPU makes difference here? Did you ever try to run the livecd directly on the hardware?

i am going to try booting that iso from a usb key to check it for sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants