Jump to content

OS X for SSE (qemu)


  • Please log in to reply
416 replies to this topic

#61
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
As Pu7o said, we are better off using PearPC instead of qemu. Sorry Embio for the change of plans. I have PearPC installed and running correctly in knoppix and am just trying to get the OS X image across onto the natively formatted ext2 partition (soon to try ntfs).

To install PearPC boot knoppix, open up a Konsole window and run these 2 commands.

apt-get update
apt-get install pearpc

then read the documentation on how it's used.. it's very similar to qemu.

#62
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
Ok, in vmware I had to "chmod 777 /media/sda1" to be able to write to the harddrive (ext2). If anyone gets permission errors, use this command.

#63
Cruxado

Cruxado

    InsanelyMac Protégé

  • Members
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Puerto Rico

swear very loudly....?


M#@$F@$(%...


Ahhh... Now then...


I should have stated that am running Knoppix LiveCD. So I've just downloaded PearPC 0.40 and I'll see if it'll install (./configure) well with the Knoppix CD. If not I'll have to install Knoppix then.

Also all my partitions are formated in NTFS. I'll see if by changing one to FAT32 maybe qemu might actually work. Oh, I'll also double check the HDDs permissions as well.

I'll report on my finding and then I'll turn to PearPC.



#64
MacRetail

MacRetail

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

Wow, what progress was made?


None really. There were many ideas and promises. There even was a SourceForge-project, named 'PearOS.', but they haven't released anything.

It's strange, because I think a 'PearOS' should be easy to make.

#65
joe75

joe75

    Renegade

  • Retired
  • 2,125 posts
  • Gender:Male
  • Location:Rochester, NY
Its funny to hear PearOS again, I use to play around with CherryOS and they had a big feud with the Pear guys :whistle:

http://www.macworld....rryos/index.php

Edited by joe75, 26 January 2007 - 12:14 AM.


#66
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
I got OS X working in qemu this afternoon (using knoppix). I will try ppc using the 10.4.1 developers kit dvd tonight.

#67
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
Here are my screenshots of OS X in qemu.
It is running at a pretty decent speed considering knoppix is running under vmware. Knoppix won't boot on my p3 and it is the only OS that I have gotten qemu to work with(using OS X).

I am going to try and find out why knoppix isn't working on my p3 and try it on that.

Today i'm going to test in PearPC and see which runs faster.

BTW, if you want videos of OS X in qemu I will post some.

Attached Files



#68
Embio

Embio

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 976 posts
sorry to keep ducking in and out of this thread and not really contributing, been working on my server and trying to get uni work done on top of that (note the priority order!) I fail to see how emulating a PPC chip is faster than one kind of x86 on another kind of x86, but if that is a case at least we can use a known commodity, PearPC and a PowerPC version of Tiger, as opposed to a hacked OSx86

#69
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
In the case of qemu and pearpc, both emulate a whole architecture therefore will only run at 10% - 20% native CPU power. Accelerators can be loaded into the kernel to speed up the emulation by carrying out some of the tasks natively. I have decided that we are using qemu with an acceleration module, but I can't find one that would be appropriate for an SSE2-less processor. I'm sure there are some, I will be looking tomorrow. By the way, using the kqemu accelerator with qemu allows qemu to use 80% native CPU power but requires SSE2.


Another thing that Ai Haibara has told me, is that PearPC doesn't emulate sound.
I will probably include both PearPC and Qemu in the final dvd and have an option to choose either and what accelerator to use. This dvd could be used as a solution for people who have incompatible hardware and want to run OS X aswell.


Things i'm doing at the moment :
Finding an accelerator that works on SSE.
Remastering a knoppix livecd.
Fix the problem with knoppix and my p3 so I can do some proper native testing.

Things left to do :
Strip knoppix of all unneeded apps and leave twm and fluxbox.
Add OS X install DVD (10.4.8)
Write scripts for virtual machine setup/startup.

I hope I get some of these done tomorrow, although I have schoolwork to do.

#70
Cruxado

Cruxado

    InsanelyMac Protégé

  • Members
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Puerto Rico
Yeah, school is always a problem.

#71
MacRetail

MacRetail

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male
Just an idea: perhaps you could use the SLAX-distrubution. There's some documantation to be found on their website about modyfing the existing SLAX LiveCD and/or creating your own livecd distribution. There even is a version of SLAX downloadable with QEMU included, already.

http://slax.linux-live.org

Edited by MacRetail, 28 January 2007 - 04:54 PM.


#72
Embio

Embio

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 976 posts
SLAX would be good, very light. cant see what advantages it would have over knoppix, other than the fact that Knoppix based CDs tend not to boot on some of my machines

#73
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
You can't virtualize half the architecture and emulate just the SSE2 stuff. It doesn't work that way.

#74
cro

cro

    InsanelyMac Protégé

  • Members
  • Pip
  • 46 posts
ok, let me put this idea forward (something i am planning on doing hopefully) what about porting the aqua user interface from say 10.2 or 10.3 to darwin 6.0.2 for the x8s platform?? you will still have os x (an earlier version) and you can run it on a system with a minimum of sse instructions. my thing is i'm not sure what files/directories make up the aqua interface in order to port it to the x86 version of darwin.

#75
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
@ Pu7o

qvm86 is a kernel module to provide x86 virtualisation capabilities for the qemu emulator. Virtualisation allows "emulated" code to be run natively on the host cpu, using the CPU protection mechanisms to intercept and emulate priveleged events.


@cro
we can't port aqua because we don't have the source. unless you mean for us to rewrite it which will never happen.

@MacRetail
I looked into a SLAX live cd when I was first looking for liveCDs, but never found a way that it could be loaded into ram.

#76
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
OK, I just read the stuff off the SLAX website that you posted. And saw the mounting in memory stuff. It looks amazing. That killbill edition is just what we need. Nice find :rolleyes:

P.S sorry about not reading into that more, schoolwork is kind of piling up here...

#77
oktar

oktar

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
What we need is minimal Darwin 8.8.1 compiled for SSE only, which is possible as we have the source. Also all darwin < 7.x.x was SSE i think. So i assume not much code does rely on SSE2, maybe only some simple checks.
A CPU kernelextension which intercepts SSE2 calls and translates them to SSE / (3dnow!) , much like Semthex has done with SSE3 emulation in the 8.8.1 kernel.
SSE2 has 144 instructions more than SSE which has 70. But most of those SSE2 instructions deal with double precision, and its questionable how much we need them.

The source of qemu might be useful for a list of translations of simd instructions.

Edited by oktar, 31 January 2007 - 04:48 PM.


#78
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
That would take SOOO long it's not funny. SSE3 has 13 instructions and Semthex has taken months just to code an emulator for these. He is quite an experienced coder. Also Semthex's SSE3 emulator translates the calls into SSE2 equivalent calls meaning you would have to write the SSE3 emulator to translate to SSE. This is far too much work and would take years. Let's just continue to work on this qemu livecd.

#79
Dragon

Dragon

    Insanely Dragon

  • Retired Developers
  • 414 posts
  • Gender:Male
  • Location:InsanelyMac forum
I have OS X working in SLAX now using the same method as knoppix... I am about to test natively on my p3.
I also have it working in vmware..

Dragon

#80
Cruxado

Cruxado

    InsanelyMac Protégé

  • Members
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Puerto Rico
Show us some evidence. An instruction manual too, perhaps? :thumbsup_anim:





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy