How to: Run Qemu Puppy under Mac OS X

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
ottod
Posts: 14
Joined: Thu 21 Sep 2006, 07:01

How to: Run Qemu Puppy under Mac OS X

#1 Post by ottod »

First get this: http://www.kju-app.org/kju/index.php?p= ... 9.0a89.dmg
Mount and install to USB key, not Applications folder as instructions say.
Open a Darwin command line and go to /Volumes/(name of usb flash)
cd to Q.app and find in the directories inside the one called i386-softmmu.app (I do not remember right now the exact location) and mv it to /Volumes/(name of usb flash), that is the root of the usb flash device.
Replace the puppy.sh script from qemupuppy with this slightly patched version:

Code: Select all

DIR="$(dirname $0)"
[ -n "$DIR" ] && cd "$DIR"

if [ `uname` = "Darwin" ]; then
	QEMU=./i386-softmmu.app/Contents/MacOS/i386-softmmu
else	
	QEMU=/tmp/allinoneqemu_linux.$$

	cp allinoneqemu_linux $QEMU
	chmod +x $QEMU
	trap "rm -f $QEMU" 0

	[ "$(which qemu 2> /dev/null)" ] && {
	  QEMU="$(which qemu)"

	  echo Using $QEMU... 1>&2
	}
fi

$QEMU -kernel vmlinuz -initrd initrd.gz -append root=/dev/ram0 -hda pup_save.3fs -hdb pup_217.sfs -hdc devx_217.sfs -hdd zdrv_217.sfs -m 256 $*
Now puppy runs in Mac OS X, either PPC or Intel, because qemu is a universal binary. On PPC the speed is very slow to boot but usable afterwards. On Intel it runs very well. This was tested with qemupuppy 2.17.1[/list][/list]

jacobsdm
Posts: 2
Joined: Sat 10 Feb 2007, 20:57

#2 Post by jacobsdm »

I followed the Linux instructions in the read-me file after making the changes to the puppy.sh suggested here. This is what I got:

qemu-puppy-2.17-1 05:06 $ . ./puppy.sh
dirname: illegal option -- b
usage: dirname path
: command not found
: command not found
bash: ./puppy.sh: line 17: syntax error near unexpected token '
bash: ./puppy.sh: line 17: ' }

Any assistence would be helpful. Thanks.

Post Reply