ChefKissInc / QEMUAppleSilicon

Apple Silicon devices emulated on QEMU, currently only iPhone 11. With SEP and SpringBoard, eventually
https://chefkissinc.github.io/applehax/qemu-as/
Other
245 stars 17 forks source link

Add Windows support #22

Open Q-Magnet opened 3 months ago

Q-Magnet commented 3 months ago

image When the machine is set to "t8030", it shows cannot set up guest memory 'DRAM': Invalid argument. However when the machine is set to any other model like virt works normally

VisualEhrmanntraut commented 3 months ago

-m 4096M?

Q-Magnet commented 3 months ago

tried

VisualEhrmanntraut commented 3 months ago

and the result is...?

Q-Magnet commented 3 months ago

wait a second

Q-Magnet commented 3 months ago

image

VisualEhrmanntraut commented 3 months ago

what about -m 4000M

Q-Magnet commented 3 months ago

same

VisualEhrmanntraut commented 3 months ago

How about not specifying it at all?

VisualEhrmanntraut commented 3 months ago

Wait, how much RAM does your system even have?

Q-Magnet commented 3 months ago

5GB not used

VisualEhrmanntraut commented 3 months ago

? As in you have 5GB RAM free?

Q-Magnet commented 3 months ago

yes

VisualEhrmanntraut commented 3 months ago

Well, I really don't see what's going on here.

Q-Magnet commented 2 months ago

It may be an issue with qemu_anon_ram_alloc

VisualEhrmanntraut commented 2 months ago

Yeah, it seems to be failing to allocate that memory region for some reason. I don’t understand why that would be the case though, potential upstream bug?

Q-Magnet commented 2 months ago

So, does it work normally on linux?

VisualEhrmanntraut commented 2 months ago

Yes, and macOS.

Q-Magnet commented 2 months ago

I' m going to check t8030.c

Q-Magnet commented 2 months ago

How many warnings do you get while building on Linux?

chris-pcguy commented 2 months ago

Depending on the used compiler quite a few. What Windows version, architecture and compiler are you using? How many cores and how much memory has your system? I'll try to reproduce it in a VM.

Q-Magnet commented 2 months ago

@chris-pcguy msys2 windows11 x64

chris-pcguy commented 2 months ago

How many cores and how much memory? Where did you sourced the compiler? Are you running an unmodified copy of master?

Q-Magnet commented 2 months ago

Original copy wont work. bzero is unavailable on windows and there are some other compatibly issues.

Q-Magnet commented 2 months ago

ice lake i5-1035g4 8c16t 8gb ram @chris-pcguy

Q-Magnet commented 2 months ago

I compiled with the regular way to compile qemu

VisualEhrmanntraut commented 2 months ago

Chris cannot replicate this dram error with latest commit, but emulator also does not run, seemingly because of a bug with the kernel allocations (device tree is invalid). also, even if we fix this you can't install iOS because the companion uses a UNIX socket to connect to the virtualised iPhone