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

Add Windows support #22

Open
Q-Magnet opened this issue Jul 12, 2024 · 26 comments
Open

Add Windows support #22

Q-Magnet opened this issue Jul 12, 2024 · 26 comments
Assignees
Labels
enhancement New feature or request

Comments

@Q-Magnet
Copy link

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
Copy link
Member

-m 4096M?

@Q-Magnet
Copy link
Author

tried

@VisualEhrmanntraut
Copy link
Member

and the result is...?

@Q-Magnet
Copy link
Author

wait a second

@Q-Magnet
Copy link
Author

image

@VisualEhrmanntraut
Copy link
Member

what about -m 4000M

@Q-Magnet
Copy link
Author

same

@VisualEhrmanntraut
Copy link
Member

How about not specifying it at all?

@VisualEhrmanntraut
Copy link
Member

Wait, how much RAM does your system even have?

@Q-Magnet
Copy link
Author

5GB not used

@VisualEhrmanntraut
Copy link
Member

? As in you have 5GB RAM free?

@Q-Magnet
Copy link
Author

yes

@VisualEhrmanntraut
Copy link
Member

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

@Q-Magnet Q-Magnet changed the title qemu-system-aarch64.exe: cannot set up guest memory 'DRAM': Invalid argument DRAM error on Windows Jul 15, 2024
@Q-Magnet
Copy link
Author

It may be an issue with qemu_anon_ram_alloc

@VisualEhrmanntraut
Copy link
Member

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
Copy link
Author

So, does it work normally on linux?

@VisualEhrmanntraut
Copy link
Member

Yes, and macOS.

@Q-Magnet
Copy link
Author

I' m going to check t8030.c

@Q-Magnet
Copy link
Author

How many warnings do you get while building on Linux?

@chris-pcguy
Copy link

chris-pcguy commented Jul 15, 2024

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
Copy link
Author

@chris-pcguy msys2 windows11 x64

@chris-pcguy
Copy link

chris-pcguy commented Jul 15, 2024

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

@Q-Magnet
Copy link
Author

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

@Q-Magnet
Copy link
Author

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

@Q-Magnet
Copy link
Author

I compiled with the regular way to compile qemu

@VisualEhrmanntraut
Copy link
Member

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

@VisualEhrmanntraut VisualEhrmanntraut changed the title DRAM error on Windows Add Windows support Jul 20, 2024
@VisualEhrmanntraut VisualEhrmanntraut added the enhancement New feature or request label Jul 20, 2024
@VisualEhrmanntraut VisualEhrmanntraut self-assigned this Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants