Replies: 2 comments 1 reply
-
I've done this already before releasing the emulator ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Sam2159 FYI, you could export your changes to a
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
By adding some little changes, the ios emulator can start on Android using Termux and Termux:X11. It's laggy and a lot of times crashes on start giving an "Illegal instruction" error, but it's a start for making ios run on phones not made by apple. The phone that i used is a Redmagic 9s pro with the "Diablo mode" and "Acquire wakelock" of Termux enabled. Here's the things that are needed to make it work:
First of all, install Termux and Termux:X11 from github (I don't know if the Google Play version work). Then install all the dependencies required
Then clone the Repository and build it
The "--disable-guest-agent" flag is used to avoid an error that would have occurred later.
Before the make command, we need to do some changes:
Open 9p-local.c using nano
add this on top
find the lines 629-630 using ctrl + f
and replace with
Save and close the file using ctrl + x
Open 9p-marshal.h using nano
add this on top
Save and close the file using ctrl + x
Open file-posix.c using nano
find the lines 2175-2198 using ctrl + f
and replace with
Save and close the file using ctrl + x
Open ivshmem-server.c using nano
add this on top
find the line 278 using ctrl + f
and set to false
find the lines 295-306 using ctrl + f
replace with
find lines 357 and 377 using ctrl + f and add // before shm_unlink, like this
Save and close the file using ctrl + x
Open ivshmem-test.c using nano
add this after the #include lines
find the line 438 using ctrl + f
replace with
find the lines 466-467 using ctrl + f
replace with
Save and close the file using ctrl + x
Open libvhost-user.c using nano
add this on top
find the lines 1878-1888 using ctrl + f
replace with
Save and close the file using ctrl + x
Open oslib-posix.c using nano
add this after the #include lines
find line 978 using ctrl + f
and remove "shm_" from "shm_open"
find line 990 using ctrl + f
and remove "shm_" from "shm_unlink"
Save and close the file using ctrl + x and finally run the make command
From there, I created the other files (like the disks) using an Ubuntu machine, but you could also try to do it directly from Termux, however I haven't tested it.
For starting the vm, run
then open Termux:X11, open the terminal and run
If it crash with the "Illegal instruction" error, just wait 30 seconds and retry (it will take some attempts).
Beta Was this translation helpful? Give feedback.
All reactions