qemu-ios icon indicating copy to clipboard operation
qemu-ios copied to clipboard

Toolchain in QEMU image for building binaries and extra basic binaries.

Open jeppojeps opened this issue 1 year ago • 0 comments

I successfully built (also for apple silicon) a toolchain for the iPod2g https://wiki.qemu.org/Documentation/GuestOperatingSystems/MacOS10.8

Very sloppily I was able to install the xcode_3.2.6_and_ios_sdk_4.3.dmg - the installer does not complete properly but it creates /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang this is the compiler we would use to compile software for our ipod2G (I had to leave it an entire night).

below the command I used after installation (I recommend to install macports.org pgk to have ssh)

qemu-system-x86_64 -hda "mac_mount_lion.img" -boot c -m 9128 -accel tcg,thread=multi -device VGA -rtc base=localtime -usb -device usb-tablet -device usb-kbd -device usb-mouse -M q35 -cpu Nehalem -smp sockets=1,cores=8 -net nic,model=e1000 -net user,hostfwd=tcp::7778-:2222

Ipod2 Software: for bash and other basic software search for redsn0w_mac_0.9.10b5b.zip around the web. You'll find the binaries such as bash, ls etc and they work fine (check the syslog for missing .dylibs, you'll have to rebuild the nand every time you add new binaries). Remember: you need to disable the signature check in the kernel. Check issue #105 on how to do so. I hope to be able to upload the image soon to save you some burden. Also remember that binaries in order to start need to have a .plist file in the LaunchDaemons folder in the filesystem image.

Bash I/O is still not working as @devos50 is working on enabling the USB stack. Though it is possible to execute syscalls and programs and observe their output by using syslog. As you may have noticed in my recent tweets and posts.

jeppojeps avatar Feb 03 '24 08:02 jeppojeps