Help - Search - Members - Calendar
Full Version: OS X for SSE (qemu)
InsanelyMac Forum > InsanelyMac Lounge > The X Labs
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
eugenemacmahon
If somebody can post idiot instructions, I'll be glad to try this out. REALLY want os x on my old laptop! AMD Athlon 2600+.
bonestonne
heres a more creative reponse.

say i have the JaS 10.4.8 install DVD, fully patched all that jazz.

i'm running it right now, since i'm quite the amateur coder, can anyone give me tips on lowering the requirements to run, through raw code or actually removing code?

if anyone is familiar with nLite for Windows, how can we implecate the same concept for mac?
@nd®£§§!!
@ bonestonne do you mean you are running OSX on SSE hardware?
bonestonne
yea, there has to be a way to modify the source code. how different can PPC instructions be from P3?

at my schools radio station the cheif engineer used to code for basically the entire day, he said he used to be called a vampire, coming in to start before the sun rose, leaving work well after sunset, just coding. although he is a mac buff, i'm sure he'd be able to at least give some guidance...if i make it sound more of a learning experience than a hacking lesson.
@nd®£§§!!
@ bonestone, i really don´t get it, what do you mean, are you running osx on SSE-less hardware, who´s coding, is there any image for SSE-less hardware?
MacRetail
@bonnstone
Are you running it on a Pentium 3? blink.gif

edit: I think he's asking us if there's a nLite-like way to edit the OSX86 DVD and to remove specific componements. He's thinks it should be easy to run OSX on any PC.

@bonnstone
There's a huge difference between PowerPC and Pentium 3. They are a different architecture.
bonestonne
if there's coding for Intel macs, can't you just change the architecture requirements?

'scuse my naivity, altering source code isn't my calling.
MacRetail
We could do a recompile for SSE Intel if we had the source code, but we don't. That's why we want to emulate SSE2 in the kernel (we have source code for the kernel), or a SSE2 machine in QEMU or other application.
Embio
@MacRetail - we do have the source code for the kernel.

Seriously, no one is prepared to put their money where there mouth is and start a contest here? All the code is there for a more experienced kernel dev than ourselves to have a go. If we use 10.4.8 sources then its even legal....
@nd®£§§!!
i´m totally supporting embio, we could use 10.4.8 kernel and modify it to run osx on sse, LET´S DO IT!!
Mikeccc987
legal...a first for this forum.

Sorry for not responding I've been quite busy for four months but now unless something pops up i should be free for awhile. So i am downloading the OS as we speak (or type). Now that your going to recompile the kernel thats probably useless. I'm still willing to test anything that you guys put out. I do know a decent amount about computers so i hope i can help.
Embio
well I personally am not about to recompile the kernel, but I think someone with knowledge in the area could.
MacRetail
I think the kernel supports SSE already. You can boot up OSX86 in single user mode (= Darwin) and run commando applications (like uname etcetera).

I believe it's the OSX Aqua graphical interface that requires SSE2, and we don't have the source code for Aqua. Theoreticly, it should be possible however to implentate SSE2 emulation in the kernel, like the SSE3 emulation already existing. But it's way too complicated and the speed would be very low. (SSE2 is very complex, Velocity Engine on a G4)
Embio
your right about the interface, but its only like Rosetta making SSE3 calls and those being emulated. As I said previously, I'm not overly bothered about it being slow, by modern standards.
Mikeccc987
Doesn't qemu emulate sse2 at a decent speed?
@nd®£§§!!
@Mikeccc987 yeah, qemu do .. we are trying to figure out how can we get qemu emulation code onto kernel to run it native
Embio
.....which brings us back to the question of a contest
MacRetail
Perhaps we should first try to use the QEMU user emulator (first boot up Darwin, then type "qemu-darwin-i386 AQUA", starting OSX Aqua interface). I have some questions about this theory:

A. Which Darwin command starts Aqua?
B. Where can I download QEMU User Space binary files?
C. Does "qemu-darwin-i386" emulate SSE2?
D. Does "qemu-darwin-i386" run Aqua/Rosetta?

Thanks,

MacRetail

edit: you"ll find more info here
Meowy
loginwindow starts aqua afaik.
eugenemacmahon
Hi all, just looking about for other options and came across this sse2 emulator. I could be wrong and dont have the know how to implement its use but if you check out The Bochs x86 PC Emulator on http://lwn.net/Articles/66390/

"Bochs (pronounced box) is cross-platform PC emulator that was written by Kevin Lawton:

Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. It includes emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS. Currently, Bochs can be compiled to emulate a 386, 486, Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE, SSE2 and 3DNow instructions. Bochs is capable of running most Operating Systems inside the emulation including Linux, Windows 95, DOS, and Windows NT 4"

Was thinking this program could be used along with one of the patched dvd's. Might be completely wrong but just trying to bring something to the project.
eugenemacmahon
Ok, before I get abused, I've just read back through the forum. Apologies. Ignore previous post.
downdowndown
Any news from Sem and Jas? Everyone here seems to be interested in running OSX on an AMD Athlon, SSE. We just don't know how...

Hope this isn't dead...
Thrawnhex
Hello, Im new at that topic!

In my opinion the question is if we want to make a navtive installation (SSE2 Emu in the Kernel - much work + we need good programmers) or to boot from an other OS like Linux(less work, only configuration and no programmers needed + slower and not stable[until now])...

I'll now be here and discuss with you to get this damn working!!!

Thrawnhex
@nd®£§§!!
here we all knew what do we have to do , but no one knows how
Dr. Hurt
With every update OS X makes more use of SSE3 instructions. OS X on SSE2 machines is becoming slower every update. My system became very slow with 10.4.9 and horrifically slow with .10. sad.gif

Believe me, running a modern version of OS X on a SSE only machine will be painfully slow and not worth the trouble. It's already painfully slow on my SSE2 computer now. If you really want OS X then buy a mac, or build a cheap modern hack for about $250.

Just my opinion.
Thrawnhex
Tomorrow i'll try to do a osx installation at my dual p3 2x933Mhz.

Can qemu start without staring x-system on linux? I think it'll be much faster then!

The question is if we really need osx on only sse systems, or if it's just a challange

For a challange a sse emu in the kernel would be nice, but too difficult.

Another question: is somebody in this discussion good enough to edit the kernel/too make and add emulation?

Thrawnhex

P.S.: I have a 3 ghz sse2 intel proz. and osx wasn't slower after the 10.4.10 update. Maybe because i use 8.9.1 kernel
eugenemacmahon
Sadly, this looks dead. sad.gif
g_face2k
I hope the interest for this project has not totally died out. I just came accross this tread yesterday, really I want to run osx on my Play Station 3 but I wouldn't mind doing it on my Pentium 3 desktop. I downloaded the dragon slax img and currently downloading a tiger (10.4.6) and leopard HD images. I also notice that qemu was updated on jan08 any one has keeped up with this project? I also know there are linux distros that boot from a floppy disk, any disavantages on using one that small allong with qemu? That would maximise the ram for OSX.

Pentium 3 866 running @ 1001 MHz
Ram 448 MB
@nd®£§§!!
mmm, i hope so too, but i´ve tried it all, las t time i´ve tried to build up a sse3, ACPI qemu but somehow i didn´t work, (error while compiling), but i think we can build up a full sse3 acpi qemu that runs leopard at a decent speed, so we just need a little knowledge, so if anyones is interesed, welcome!!!

first we have to do is build up a qemu with full ACPI and SSE3 support to can boot from an iso image, then we just must figure out how can we put it onto a lightweight linux distro (maybe LinuxBios), I´ll be working on that, anyone that can do it too, please post results
g_face2k
I'm glad to hear you still trying. I finish my downloads but I can't get either one to run:

I'm using qemu -hda /media/Junk/OSX/tiger-x86-flat.img -m 320 -no-kqemu -boot c

but it boot up so fast i can't put

"platform=X86PC "Graphics Mode"="800x600x16" -v"

so I get the ACPI error message. Any one knows how to slow it down some to let me pass the command to darwin?

I'll have to read up on your proposal @nd®£§§!! (sse3, ACPI qemu) but I'll see what I come up with, I'm not a master of linux but I can try.

BTW I'm just using Ubuntu and Qemu since my CD burner is out I have to wait tuesday to be able to burn that slax iso.
@nd®£§§!!
g_face2k :
You will always get teh ACPI error when trying to boot osx (even flat images) on qemu, you have to patch the source code of qemu with Dr. jargmeisters´ code (i ignore if that´s how the name is written), on Dragon´s Slax iso, qemu is already patched, but there so slow and buggy.

Qemu on Dragon´s Slax image, has support for sse3, and tiger flat image is patched to run on sse2 machines, so i think that´s making emulation slowly and buggy, ACPI is not fully supported by qemu yet (at least it wasn´t when i was messing with that), so .iso files cannot be booted up, my idea is to build a full sse3 acpi, and jargemeisters patched, so we can boot OSX .iso and install it on a physycal hard drive, using a lightweight linux host (LinuxBios is the best i think), i´ve been working on that but no good news yet, so anyone interesed, please test and feedback.

Remember the aim is to build a SSE3 acpi, and jargemeisters patched qemu, then we can work on how to put it on lightweight linux
g_face2k
ok i finally got osx running, i had to download another torrent (tiger-x86.tar.bz2) but your right its retarded slow (under windows qemu-0.9.1). I found this site http://alex.csgraf.de/self/?qemu/ I'm confused reading his site but apperantly he wrote a patch for ss3 on qemu but i'm not familiar with aplying the patch. let me know what you heard of this.
@nd®£§§!!
that's interesting, seems that the guy built up a qemu wich is able to boot osx and seems kqemu is able to run osx too, but neither do i understood it well, but i think that's the main idea, well i'll try to contact this guy maybe he is interested to work beside us on this
identity
hi people i saw all messages...according to me what we need is a bare metal emulator(which doesnot need any os to run)...so the option is as qemu is opensource can be modified to make it work without any os.....i think this is easier than sse2->sse recompilation...

i dont know much abt this but i am giving this as suggestion.......
g_face2k
srivathsa the proble is that most ppl that have the knowledge to do that don't give a rats butt about doing something like this because it would be easier to just buy new hardware.

Well for the time being I'm stuck on a Pentium3 1Ghz and now with my 22" LCD its starting to show its age (I only use it to browse the web and do simple stuff, I play all my games on my PS3). But I would love to learn about OSX thats why I'm gona try to get the best results possible, right now I'm trying to make SLAX as small as possible to put the custom qemu (I really hope this works). If I were a programmer I would try inplementing qemu directly to darwin insteat of loading linux to boot qemu to boot osx.
identity
people we need smallest os...i noticed some small linuxes ...i dont know qemu works or not..
basic linux
mona os
pocket linux...
g_face2k
I checked out

basic linux
mona os
pocket linux...

But the problem is that the're so small that it might skim on the drivers which will lead to problems (PC's have alot of diffent type of hardware). mona seams to be its own kind of OS so qemu will have to be ported.

Tomorrow I'm gona start working on a slax frodo live cd (it starts off at 50MB), I'm hopping to just put a terminal program, fluxbox and qemu. The only thing I need help with is how to display the current RAM being used and how much is left free, any ideas?

its late i'm out
identity
so u say that if the size is less it wont support much hardwares....i think we need to download a linux of size (50 to 100mb)damn small linux is a popular one....
identity
cat /proc/cpuinfo i dont know it shows ram or not but used to see the system config.....http://www.cyberciti.biz/faq/linux-check-memory-usage/ chk this if the above one wont work...
identity
QUOTE (g_face2k @ Feb 21 2008, 09:50 AM) *
I checked out

basic linux
mona os
pocket linux...

But the problem is that the're so small that it might skim on the drivers which will lead to problems (PC's have alot of diffent type of hardware). mona seams to be its own kind of OS so qemu will have to be ported.

Tomorrow I'm gona start working on a slax frodo live cd (it starts off at 50MB), I'm hopping to just put a terminal program, fluxbox and qemu. The only thing I need help with is how to display the current RAM being used and how much is left free, any ideas?

its late i'm out


hi did u do it....
g_face2k
Thanx on the info the command "free" shows how much memory is left & how much your using which is great cause were trying to get the smallest foot print on ram. That Dragon slax popcorn is too big, it takes 228MB of ram to load fluxbox and 187MB with out loading fluxbox. Slax frodo uses 60MB (if you don't copy2ram) witch is good but am having a hell of a time trying to make a window manager module (I'm trying to use blackbox which is suppose to be smaller than fluxbox). I'll post back as soon as I get something going.

As for the Damn Small Linux suggestion, I must say it was a great one. They don't use the linux 2.6x kernal but a modify 2.4x kernel with support for newer equipment and I had it running in a windows qemu window, it took about 20MB. If i could remaster this distro with nothing but the window manager it uses, xterm and qemu i'm sure it would greatly benefit us.

I'm going to see if I get slax frodo working with blackbox, xterm and qemu (with the OSX patches) first since it uses the 2.6x kernel; and see how that works out. The dragon iso locks up my pc cause it takes up too much memory (i have only 448MB to work with).
g_face2k
I ran Dam Small Linux from the live cd instead of qemu and I notice it actually takes around 70MB of ram. Right now I have Slax frodo running X.org with no window (i'm also able to run blackbox but I'm trying to see if we even need a window manager) manager taking up 70MB of ram but its inside vmware. I need to figure out if this will give us sound and networking abilities. I'll post again later.
identity
http://www.frozentech.com/content/livecd.php
chk this links it contans most live cd names..i dont know wich is best one for this task.................
identity
i am downloading dsl .....will try to work with jas....
g_face2k
I think that might be the way to go (DSL). I customized SLAX but it acts wiered and I can't really find support for it, at lest not for what I'm trying to do (Slax frodo +xorg +blackbox +qemu 9.0). If any one out there can help me with this I would appreciate it.
g_face2k
ok after searching for days on info I got Slax to boot into flux box using 156 MB of ram, its more than I would like it to be but looking at the packages it retain (like the wifi stuff) and running kernel 2.6.16 I think is OK. I need to iron out some edges on it first before i'm done. I also haven't use that qemu patch yet but I'm hopping to do it soon.



Is there absolutely no one else remotely interested in this?

I got my banged up ibm laptop running again so I'm hopping this work to bring live back to it.

More like a frankn laptop
IBM R31
1.2 GHz Celeron
USB 2.0 PCMCIA card
HD: Ipod 5G formated as ext2 with tiger img
identity
all the best....i am busy now i cant try that.....
Eddie Turfboer
QUOTE (g_face2k @ Feb 28 2008, 05:03 AM) *
Is there absolutely no one else remotely interested in this?


Well, I am interested. However I lack the capacities to be helpfull...
g_face2k
Thanx Eddie Turfboer, as long as some one finds this interesting I'll keep trying to do this.
eugenemacmahon
QUOTE (Eddie Turfboer @ Feb 28 2008, 11:56 AM) *
Well, I am interested. However I lack the capacities to be helpfull...


I too am really interested, jumpin out of my skin, but about as useful as a 10Lb hammer
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.