Advertisement
Our-magestry

macos 9.2

Oct 28th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. qemu-img.exe create -f raw -o size=4G MacOS9.2.img
  2.  
  3.  
  4.  
  5.  
  6. #!/bin/bash
  7. cd "$(dirname "$0")"
  8.  
  9. qemu-system-ppc.exe -L pc-bios -boot d -M mac99,via=pmu -m 653 ^
  10. -prom-env "auto-boot?=true" -prom-env "boot-args=-v" -prom-env "vga-ndrv?=true" ^
  11. -drive file=MacOS9.2.iso,format=raw,media=cdrom ^
  12. -drive file=MacOS9.2.img,format=raw,media=disk ^
  13. -sdl ^
  14. -netdev user,id=network01 -device sungem,netdev=network01 ^
  15. -device VGA,edid=on ^
  16.  
  17.  
  18.  
  19. #!/bin/bash tells OSX this is a bash script
  20. cd “$(dirname “$0”)” set the path for the executable to current folder
  21. ./qemu-system-ppc starts qemu with all the following as parameters:
  22. -L pc-bios points qemu to some required files, including openbios-ppc and the vga driver qemu_vga.ndrv.
  23. -boot d defines to boot from a drive entry marked as a cdrom, “-boot c” would define to boot from a drive entry marked as disk.
  24. -M mac99,via=pmu defines the mac model used (*).
  25. -m 512 defines the amount of memory (in Mb) for OS9/OSX.
  26. -prom-env 'auto-boot?=true' -prom-env 'boot-args=-v' define boot parameters for openbios and Mac OSX. The “-v” makes the boot process verbose
  27. -prom-env 'vga-ndrv?=true' loads the qemu_vga.ndrv file to provide on the fly resolution swithing. Setting this to false ignores the driver
  28. -drive file=MacOS9.2.iso,format=raw,media=cdrom defines the name, location, format, and type of a cdrom image file to be used
  29. -drive file=MacOS9.2.img,format=raw,media=disk defines the name, location, format, and type of a hard disk image file to be used
  30. -netdev user,id=network01 -device sungem,netdev=network01 tells qemu to use the sungem network device on a qemu-internal DHCP server
  31. -device VGA,edid=on presents additional resolutions to choose from in the guest
  32. (*)The mac model entry accepts 3 options for the via parameter:
  33. mac99,via=pmu (this option supports usb mouse and keyboard)
  34. mac99,via=pmu-adb (this allows some older Mac OS/Mac OS server builds to use a keyboard and mouse through the adb bus)
  35. mac99,via=cuda (this is the default setting, allowing the use of the older, now less supported cuda)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement