devos50 / qemu-ios

A QEMU emulator for legacy Apple devices
Other
865 stars 63 forks source link

Compile QEMU not working for the 2nd Gen iPod touch on a M1 Mac #133

Open matt123491 opened 5 months ago

matt123491 commented 5 months ago

I try to do the ../configure --enable-sdl --target-list=arm-softmmu --disable-capstone --disable-pie --disable-slirp --extra-cflags=-I/opt/homebrew/opt/openssl@3/include --extra-ldflags='-L/opt/homebrew/opt/openssl@3/lib -lcrypto' command, and I get an error saying

Nate@Nates-MacBook-Air ~ % mkdir build cd build Nate@Nates-MacBook-Air build % ../configure --enable-sdl --target-list=arm-softmmu --disable-capstone --disable-pie --disable-slirp --extra-cflags=-I/opt/homebrew/opt/openssl@3/include --extra-ldflags='-L/opt/homebrew/opt/openssl@3/lib -lcrypto' zsh: no such file or directory: ../configure I have an M1 Macbook Air

florian-obradovic commented 5 months ago

../configure --enable-sdl --disable-cocoa --target-list=arm-softmmu --disable-capstone --disable-pie --disable-slirp --extra-cflags=-I/opt/homebrew/opt/openssl@3.0/include --extra-ldflags='-L/opt/homebrew/opt/openssl@3.0/lib -lcrypto'

matt123491 commented 5 months ago

zsh: no such file or directory: ../configure Should I just stop trying and delete everything?

MrDiagnose commented 5 months ago
  1. brew install glib ninja pixman pkg-config sdl2

  2. git clone https://github.com/devos50/qemu-ios.git

  3. cd qemu-ios

  4. ./configure --enable-sdl --target-list=arm-softmmu --disable-capstone --disable-pie --disable-slirp --extra-cflags=-I/opt/homebrew/opt/openssl@3/include --extra-ldflags='-L/opt/homebrew/opt/openssl@3/lib -lcrypto'

  5. make -j4

  6. Copy qemu-system-arm from the build directory and store it in a different directory along with the iPod Touch 2G Emulation Files:https://github.com/devos50/qemu-ios/releases/tag/n72ap_v1 (extract the nand zip file in that same directory)

  7. ./qemu-system-arm -M iPod-Touch,bootrom=bootrom_240_4,nand=nand,nor=nor_n72ap.bin -serial mon:stdio -cpu max -m 2G -d unimp

matt123491 commented 5 months ago

Everything works, but I get stuck on step 7. I put in ./arm-softmmu/qemu-system-arm -M iPod-Touch,bootrom=</Users/Nate/Downloads/iPod Touch/bootrom_240_4>,nand=</Users/Nate/Downloads/iPod Touch/nand>,nor=</Users/Nate/Downloads/iPod Touch/nor_n72ap.bin> -serial mon:stdio -cpu max -m 2G -d unimp It gives out zsh: no such file or directory: ./qemu-system-arm Thank you so much btw!! That was so helpful!

MrDiagnose commented 5 months ago

300480809-d0c58fbc-632e-4aec-bd12-14892b65d300

copy bootrom_240_4, nand, nor_n72ap.bin, qemu-system-arm to a folder and then run

./qemu-system-arm -M iPod-Touch,bootrom=bootrom_240_4,nand=nand,nor=nor_n72ap.bin -serial mon:stdio -cpu max -m 2G -d unimp

matt123491 commented 5 months ago

Okay, so it did go through, but then it doesn't load I provided the error message in the file attached. Screenshot 2024-01-30 at 12 53 10 PM Error.txt

MrDiagnose commented 5 months ago

qemu window doesn't open 🤔 does this work? ./qemu-system-arm --version ? does it show qemu version?

matt123491 commented 5 months ago

QEMU emulator version 8.2.0 (v6.1.0-19923-gadaea1d394) Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

MrDiagnose commented 5 months ago

does it show apple logo when you run this command? ./qemu-system-arm -M iPod-Touch,bootrom=bootrom_240_4,nand=nand,nor=nor_n72ap.bin -serial mon:stdio -cpu max -m 2G -d unimp

it takes some time to boot

matt123491 commented 5 months ago

I get this error

matt123491 commented 5 months ago

[Uploading text.txt…]()

MrDiagnose commented 5 months ago

idk if the qemu-system-arm window doesn't pop up with apple logo then it must be Mac OS arm specific issue it worked for me on Mac OS x86

matt123491 commented 5 months ago

Dang, alright