QEMU and Apple M4

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Typan
Posts: 17
Joined: Mon Sep 29, 2025 10:12 am
Libera.chat IRC: Typan

QEMU and Apple M4

Post by Typan »

Hello,

I am trying to create my own 64 bit kernel on a M4 Apple MacBook. When I setup paging and start the interrupts it crashes / stuck and I get a black screen. Is there anybody who knows if QEMU had a problem with MacBook M4 ?

Thank you for helping :-)

Kind regards,

Robert
User avatar
iansjack
Member
Member
Posts: 4908
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: QEMU and Apple M4

Post by iansjack »

How did you install qemu? Is your kernel an aarch64 one or is it x86_64?

I haven't used native qemu, but I can confirm that qemu works just fine in an aarch64 Linux virtual machine running on an M4 Mac mini (via VMWare Fusion).
Typan
Posts: 17
Joined: Mon Sep 29, 2025 10:12 am
Libera.chat IRC: Typan

Re: QEMU and Apple M4

Post by Typan »

It is x86_64 with a custom build 64 bit kernel. I fully develop on the Mac.
User avatar
iansjack
Member
Member
Posts: 4908
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: QEMU and Apple M4

Post by iansjack »

As I said, I use a Linux (Fedora) VM on my M4 Mac mini. I just find the Linux tools more versatile and easier to deal with than the OS X ones. But I can't see any reason why qemu wouldn't work just fine natively. I presume that you compiled it yourself via MacPorts or something similar?
Post Reply