building qemu 0.9.0 on OSX PPC

NeXT Computer, Inc. -> Emulation / Virtualization

Title: building qemu 0.9.0 on OSX PPC
Post by: neozeed on July 29, 2007, 11:05:03 AM
FYI here is the configure string that you will need.

./configure --target-list=i386-softmmu --cc=/usr/bin/gcc-3.3 --host-cc=/usr/bin/gcc-3.3 --enable-coreaudio --enable-cocoa

if you have gcc 4 as your default CC it'll screw up the build process & produce  missing opcodes.

I'll post back with patches for the busmouse DMA & IRQ and whatnot.
Title: Ok, all done!
Post by: neozeed on July 29, 2007, 12:47:24 PM
Here are the patches for 0.9.0

http://www.vaxenrule.com/NextSTEP%2033/patchesforNeXTSTEP-on-Qemu-0.9.diff

Here is how I am building on OSX 10.4.10 PowerPC

first download & unpack qemu

cd $HOME
mkdir qemu
cd qemu
curl http://fabrice.bellard.free.fr/qemu/qemu-0.9.0.tar.gz > qemu-0.9.0.tar.gz

Then extract

tar zxf qemu-0.9.0.tar.gz

Download the patch

curl http://www.vaxenrule.com/NextSTEP%2033/patchesforNeXTSTEP-on-Qemu-0.9.diff > patchesforNeXTSTEP-on-Qemu-0.9.diff

install the patch & configure

cd qemu-0.9.0
patch -p1 < ../patchesforNeXTSTEP-on-Qemu-0.9.diff
patching file Makefile.target
patching file hw/busmouse.c
patching file hw/dma.c
patching file hw/i8259.c
patching file hw/pc.c
patching file hw/ps2.c
patching file hw/sb16.c
patching file vl.h

$./configure --target-list=i386-softmmu --cc=/usr/bin/gcc-3.3 --host-cc=/usr/bin/gcc-3.3 --enable-coreaudio --enable-cocoa
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /Users/jsteve/src/qemu/dry/qemu-0.9.0
C compiler        /usr/bin/gcc-3.3
Host C compiler   /usr/bin/gcc-3.3
make              make
install           install
host CPU          powerpc
host big endian   yes
target list       i386-softmmu
gprof enabled     no
profiler          no
static build      no
Cocoa support     yes
SDL support       no
mingw32 support   no
Adlib support     no
CoreAudio support yes
ALSA support      no
DSound support    no
FMOD support      no
kqemu support     no
Documentation     yes
$make


I'm assuming that with the coreaudio & coca you don't have to worry about SDL.. Oh and that you have zlib aready installed.

You can get a binary here:

http://www.vaxenrule.com/NextSTEP%2033/qemu-0.9.0-osx-10.4-PowerPC
Title: building qemu 0.9.0 on OSX PPC
Post by: da9000 on August 01, 2007, 04:10:26 AM
Sweet! Now I'll have to try Qemu on my PPC Macs!
Title: It's surpringly fast
Post by: neozeed on August 01, 2007, 06:09:58 PM
you'll like it.. other than it only works in 640x480 vga....
Title: building qemu 0.9.0 on OSX PPC
Post by: da9000 on August 02, 2007, 04:53:08 AM
That's just a Qemu limitation? (I'm not very familiar with it)

PS. Did you write these patches recently or have they been around for a long time? (I've not stumbled upon them before)
Title: building qemu 0.9.0 on OSX PPC
Post by: neozeed on August 06, 2007, 10:12:01 PM
Quote from: "da9000"That's just a Qemu limitation? (I'm not very familiar with it)

PS. Did you write these patches recently or have they been around for a long time? (I've not stumbled upon them before)

I wish, I found the busmouse patches via google.. I forget the guy's name, but I think he's German...?

The only 'patch' I did on this set was to change the soundblaster IRQ.  I have written a patch to support libpcap so that I can use NovellNetware 3.12 on native networks... Yeah I know it's a weird one.

Oh the VGA card that is emulated doesn't play nice nice with qemu.. But I'm starting to suspect its's something with it's bios.. I mean to buy a card like it and dump its bios to see.
Title: building qemu 0.9.0 on OSX PPC
Post by: da9000 on August 07, 2007, 07:40:30 PM
Quote from: "neozeed"I wish, I found the busmouse patches via google.. I forget the guy's name, but I think he's German...?

The only 'patch' I did on this set was to change the soundblaster IRQ.  I have written a patch to support libpcap so that I can use NovellNetware 3.12 on native networks... Yeah I know it's a weird one.

Nice! It's a weird one - I wouldn't have run into it for sure :)

Quote from: "neozeed"
Oh the VGA card that is emulated doesn't play nice nice with qemu.. But I'm starting to suspect its's something with it's bios.. I mean to buy a card like it and dump its bios to see.

What kind of card does it emulate? Haven't check it out yet..
Title: qemu's video
Post by: neozeed on August 10, 2007, 11:45:00 AM
The vide card is a Cirrus CLGD 54xx emulator

the current qemu initalizes as a 5446

For anyone interested I've included a win32 build with the aformentioned patches:

http://www.vaxenrule.com/Shared%20Documents/qemu-0.9.0-PatchedforNeXTSTEP.zip
Title: Re: building qemu 0.9.0 on OSX PPC
Post by: Korperlich on November 05, 2007, 10:37:43 PM
looks like something happened to those links...
can't get 'em...

Would you be so kind as to post the diff here, or the binary?

Thanks!
Title: Re: building qemu 0.9.0 on OSX PPC
Post by: neozeed on November 06, 2007, 09:16:34 AM
Quote from: "Korperlich"looks like something happened to those links...
can't get 'em...

Would you be so kind as to post the diff here, or the binary?

Thanks!

Yeah sorry about that, but my server took a dive when they decided to take the AC offline without telling me... Compaq 8 ways aren't known for their ability to run cool....

I don't think I can post binaries, can I?  I still have my ppc, and the source kicking about so I can probably email the diff..

PM me an address.
Title: Patches from 0.8.2
Post by: mgtremaine on November 13, 2007, 10:58:21 AM
I don't have your more recent stuff but I did grab the ones you posted back in 0.8.2 and I can put them in a download directory if needed. [For that matter if you want to send me any others I'll stick them all together]

I have these

[mgt@dwarfstar Openstep]$ ls Qemu_patches/
qemu-0.8.2-busmouse.diff  qemu-0.8.2-sound-blaster-irq-7.diff
qemu-0.8.2-pcap.diff

Which worked to get the Linux version going.... Which leads me to a question has anyone tried -net nic -net tap with Openstep to see if networking will work if you have a bridge and tap setup?

-Mike
Title: Re: Patches from 0.8.2
Post by: neozeed on November 13, 2007, 03:33:08 PM
Quote from: "mgtremaine"I don't have your more recent stuff but I did grab the ones you posted back in 0.8.2 and I can put them in a download directory if needed. [For that matter if you want to send me any others I'll stick them all together]

I have these

[mgt@dwarfstar Openstep]$ ls Qemu_patches/
qemu-0.8.2-busmouse.diff  qemu-0.8.2-sound-blaster-irq-7.diff
qemu-0.8.2-pcap.diff

Which worked to get the Linux version going.... Which leads me to a question has anyone tried -net nic -net tap with Openstep to see if networking will work if you have a bridge and tap setup?

-Mike

I have all the patches on my laptop.. I'm on the road (again!) but hopefully in the next week or so vaxenrule.com will be online again...

Oh for what it's worth, I use the libpcap patches I did, since it's on more platforms than tun/tap... And to be perfectly honest I found setting up the libpcap far more easier than tun/tap.. Ie there is no ifconfig song & dance...  I did have that 1 vm on the internet raw for over a month with a few gigabytes transfered across it, so I'd say the win32 version of it was stable for sure.. But I did build it under Linux & OSX, and I know it ran.....
Title: building qemu 0.9.0 on OSX PPC
Post by: kb7sqi on November 13, 2007, 05:41:16 PM
neozeed,
  Did you get qemu working w/ your libpcap patch on Solaris 10?  I compiled  the cvs version awhile back & used your pcap patch, but it didn't want to boot up my OPENSTEP image.   I re-setup my linux box & was going to give it another shot this weekend.  I was just curious.  I'd like to have networking working on my setup on my Solaris 10 partition as well.  Take care.    :wink:
Title: building qemu 0.9.0 on OSX PPC
Post by: neozeed on November 13, 2007, 08:58:59 PM
Quote from: "kb7sqi"neozeed,
  Did you get qemu working w/ your libpcap patch on Solaris 10?  I compiled  the cvs version awhile back & used your pcap patch, but it didn't want to boot up my OPENSTEP image.   I re-setup my linux box & was going to give it another shot this weekend.  I was just curious.  I'd like to have networking working on my setup on my Solaris 10 partition as well.  Take care.    :wink:

I'm going from my defective memory... well that and I'm in Miami, and after a 'team building' session so I'm... well kinda plastered..

I'm thinking I did a Solaris10 build somehwere between 0.82 & 0.9..  I don't recally offhand with the libpcap thing, but I wouldnt be surprised if I had to build a 'newer' libpcap myself bypassing what shipped with the OS..

I was thinking of putting vista ultimate on my sun20 to run media centre to keep my gf happy about the whole TV thing... (I dont have one) but I can at least compile something when I get back to NYC...  I almost need a compile/test farm. :|
Title: building qemu 0.9.0 on OSX PPC
Post by: mgtremaine on November 18, 2007, 09:33:29 AM
Thanks again for posting your efforts. I sat down and rebuilt my qemu setup [I just recently re-installed my desktop moving from Centos 5 [to Ubuntu 7.10 briefly] to Fedora 8. I built a patched version of qemu 0.9.0 just for nextstep/openstep using the busmouse, soundcard, cirrus_vga patches. I left out the pcap stuff becuase I already have the system running with bridges for each interface and I can report that using the tap system works fine. The Cirrus Device_ID hack works for NextStep [I'm running at 1024x768@75mhz 16bit] but it does not seem to work with OpenStep. Openstep has the driver built in but it does the typical black screen or poor color in various display modes.

Oh well a working NextStep 3.3 install is way cool. Now I can try doing some -NXhost stuff from the Black-hardware to the emulated.

-Mike
Title: vaxenrule
Post by: neozeed on November 18, 2007, 11:44:10 AM
Quote from: "mgtremaine"Thanks again for posting your efforts. I sat down and rebuilt my qemu setup [I just recently re-installed my desktop moving from Centos 5 [to Ubuntu 7.10 briefly] to Fedora 8. I built a patched version of qemu 0.9.0 just for nextstep/openstep using the busmouse, soundcard, cirrus_vga patches. I left out the pcap stuff becuase I already have the system running with bridges for each interface and I can report that using the tap system works fine. The Cirrus Device_ID hack works for NextStep [I'm running at 1024x768@75mhz 16bit] but it does not seem to work with OpenStep. Openstep has the driver built in but it does the typical black screen or poor color in various display modes.

Oh well a working NextStep 3.3 install is way cool. Now I can try doing some -NXhost stuff from the Black-hardware to the emulated.

-Mike


On my trip to Miami, I actually found an old copy of my web server!  Its 8 months old, but it has the screenshots for the nextstep install at a minimum..  :)   All being well vaxenrule.com will be back online this week!

I'm just glad that the patches help someone out...

Oh and I hear that once you update OpenSTEP you get a VESA driver... So the video hack becomes kind of moot.  I'm just hoping in my stacks of stuff my OpenSTEP disks are here somewhere......  But I've got all my nextstep 3.2 & 3.3 stuff.
Title: building qemu 0.9.0 on OSX PPC
Post by: kb7sqi on November 27, 2007, 11:53:18 PM
Quote from: "mgtremaine"Thanks again for posting your efforts. I sat down and rebuilt my qemu setup [I just recently re-installed my desktop moving from Centos 5 [to Ubuntu 7.10 briefly] to Fedora 8. I built a patched version of qemu 0.9.0 just for nextstep/openstep using the busmouse, soundcard, cirrus_vga patches. I left out the pcap stuff becuase I already have the system running with bridges for each interface and I can report that using the tap system works fine. The Cirrus Device_ID hack works for NextStep [I'm running at 1024x768@75mhz 16bit] but it does not seem to work with OpenStep. Openstep has the driver built in but it does the typical black screen or poor color in various display modes.

Oh well a working NextStep 3.3 install is way cool. Now I can try doing some -NXhost stuff from the Black-hardware to the emulated.

-Mike

Mike, just FYI, I had some time today while working on-site to rebuild QEMU for both Linux & OpenSolaris Beta 77.  I initially tried the Cirrus Device hack & had problems like you w/ the graphics on OPENSTEP.  But, I just left that part of the patch out &  recompiled using the stock Cirrus driver that comes w/ qemu.  Then chose the driver that comes w/ OPENSTEP.  Graphics came up perfectly after that on both Linux & Solaris.  :lol:   So, I have a fresh install of the base OPENSTEP 4.2 User/Dev/WebObject 3.5.1/EOF 2.2 + patches  working great under Solaris  again.  Now, I just have to install all my software again. rofl.  But this time, I have 2 4 gig "drives"  Plenty of space.  Hope that helps.  Take care.
Title: building qemu 0.9.0 on OSX PPC
Post by: kb7sqi on November 28, 2007, 07:18:55 PM
Mike, another quick FYI, I wasn't telling the complete truth I guess when I re-compiled QEMU using the standard Cirrus Driver.  It works wonderfully under OpenSolaris Beta 77.  I'm typing this post w/ OmnWeb right now.  But, under Linux, it has some funky screen settings.  So, I need to figured out what is going on there.  I'll report back after I take a look at this weekend.  But it's awesome having OPENSTEP running fast w/ everything working under Solaris. 8)
Title: building qemu 0.9.0 on OSX PPC
Post by: mgtremaine on November 28, 2007, 07:30:17 PM
Strange and interesting that the code works on Solaris and not Linux. Oh well, on the Linux side if you can slug through the patch upgrade you can get teh VESA driver and that works with the -std-vga switch no problems. [At least for me YMMV, terms and conditions may apply, etc.... ;P ]

-Mike
Title: building qemu 0.9.0 on OSX PPC
Post by: noah on January 03, 2008, 09:59:13 PM
the links no longer work (on the first post)

Go to top  Forum index