PPC Mac Emulation on Linux PPC
PPC Mac Emulation on Linux PPC
Hi, this is OT, I suppose, but I'm looking for help anyway ... :D
I've had great results using BasiliskII to emulate a 68K Mac running Mac OS 7.5.3 on my PS3, but haven't had much success emulating a PPC Mac using SheepShaver. I posted about my results so far over on the emaculation site here and here. So far I'm just getting a "deer in headlights look" over there. ;)
In summary, it runs up to the "Welcome to Macintosh." screen and then crashes. I realize that the Cell's PPC core is different than say, a G4 PPC, but I don't know in what ways, exactly, or how that would affect it's ability to run SheepShaver.
I would appreciate some insight / suggestions / etc.
Thanks
I've had great results using BasiliskII to emulate a 68K Mac running Mac OS 7.5.3 on my PS3, but haven't had much success emulating a PPC Mac using SheepShaver. I posted about my results so far over on the emaculation site here and here. So far I'm just getting a "deer in headlights look" over there. ;)
In summary, it runs up to the "Welcome to Macintosh." screen and then crashes. I realize that the Cell's PPC core is different than say, a G4 PPC, but I don't know in what ways, exactly, or how that would affect it's ability to run SheepShaver.
I would appreciate some insight / suggestions / etc.
Thanks
Hi Bill,
I am also very interested in PPC Mac OS (not necessarily OSX) emulation on the PS3. The first thing that came to mind was to run MOL (MacOnLinux). I have been in email communication with Joseph Jezak (the current author/proprietor of MOL) and he said that 64 bit kernels are not supported yet. He is working on it.
There was someone on the PureBasic list who claimed that MOL worked on the PS3 - this was received with some skepticism (By Joseph). Here is the link:
http://www.purebasic.fr/english/viewtop ... 68dd44fa37
Good luck.
Warren N
I am also very interested in PPC Mac OS (not necessarily OSX) emulation on the PS3. The first thing that came to mind was to run MOL (MacOnLinux). I have been in email communication with Joseph Jezak (the current author/proprietor of MOL) and he said that 64 bit kernels are not supported yet. He is working on it.
There was someone on the PureBasic list who claimed that MOL worked on the PS3 - this was received with some skepticism (By Joseph). Here is the link:
http://www.purebasic.fr/english/viewtop ... 68dd44fa37
Good luck.
Warren N
Ah ... I hadn't looked at that one -- thanks! It looks like Terrasoft used to run lists for it. And there are RPMs for YDL4.1 (ppc) over here.warrennn wrote:I am also very interested in PPC Mac OS (not necessarily OSX) emulation on the PS3. The first thing that came to mind was to run MOL (MacOnLinux). I have been in email communication with Joseph Jezak (the current author/proprietor of MOL) and he said that 64 bit kernels are not supported yet. He is working on it.
Installs with no problems on YDL 5.0.1, but it looks like kernel modules need to be re-compiled. Reading more about it, now...
No MOL doesn't work on PS3, it's not trivial to port it either because the current kernel module don't support 64 bit processors (such as the 970 and the Cell).
I haven't been developing MOL since 2001 so I'm not really up to date when it comes to the linux interface, However I know that 2.6.x broke the way MOL hooked onto the memory management in linux, but it might or might not been fixed now.
I shouldn't be that hard to get sheepshaver up and running however, I might look into that someday when I'm bored.
I haven't been developing MOL since 2001 so I'm not really up to date when it comes to the linux interface, However I know that 2.6.x broke the way MOL hooked onto the memory management in linux, but it might or might not been fixed now.
I shouldn't be that hard to get sheepshaver up and running however, I might look into that someday when I'm bored.
I hope you get bored soon! ;-)Frek wrote:I shouldn't be that hard to get sheepshaver up and running however, I might look into that someday when I'm bored.
It seems that I get close to having SheepShaver running on the PS3, but it hangs during startup -- see screenshot. There are so many different ROMs and OS versions it is hard to say whether I have that wrong or it's something else. I need to try the same set with the Windows version to see if it does anything different.
The install discs I have are not supported (OS 9.2 and OSX) so I've had to use what's available for download from Apple. A universal install of 7.5.3 should be working, from what I'm told, but I haven't gotten past the 'Starting Up..." screen with any combination I have tried so far.
MOL runs fine on my MacMini under 2.6.22.14, so that part seems to be taken care of at least.Frek wrote:I haven't been developing MOL since 2001 so I'm not really up to date when it comes to the linux interface, However I know that 2.6.x broke the way MOL hooked onto the memory management in linux, but it might or might not been fixed now.
Flying at a high speed
Having the courage
Getting over crisis
I rescue the people
Having the courage
Getting over crisis
I rescue the people
I will look into it someday, but by judging from your screenshot it seems you got sheepshaver running already- I'm 99% certain it hangs when it tries to initialize appletalk, try disable any serial ports that may be exported by sheepshaver (in the configuration file) and see if that helps.billb wrote:I hope you get bored soon! ;-)Frek wrote:I shouldn't be that hard to get sheepshaver up and running however, I might look into that someday when I'm bored.
It seems that I get close to having SheepShaver running on the PS3, but it hangs during startup -- see screenshot. There are so many different ROMs and OS versions it is hard to say whether I have that wrong or it's something else. I need to try the same set with the Windows version to see if it does anything different.
The install discs I have are not supported (OS 9.2 and OSX) so I've had to use what's available for download from Apple. A universal install of 7.5.3 should be working, from what I'm told, but I haven't gotten past the 'Starting Up..." screen with any combination I have tried so far.
Thank you for the suggestion. I tried disabling the serial ports (seriala & serialb) in the prefs file but it still hangs in the same place. I don't have the sheep_net driver installed -- BasiliskII warns about this at startup, but SheepShaver doesn't. I might try installing that... tried leaving ethernet interface blank also.Frek wrote:I will look into it someday, but by judging from your screenshot it seems you got sheepshaver running already- I'm 99% certain it hangs when it tries to initialize appletalk, try disable any serial ports that may be exported by sheepshaver (in the configuration file) and see if that helps.
It would be nice if the Mac startup process were a bit more verbose so we'd know exactly what it's trying to do. Will keep messing with it ... :)
Okay, I've done some initial work- I don't prioritise this however so I can't promise anything in the near time.billb wrote:Thank you for the suggestion. I tried disabling the serial ports (seriala & serialb) in the prefs file but it still hangs in the same place. I don't have the sheep_net driver installed -- BasiliskII warns about this at startup, but SheepShaver doesn't. I might try installing that... tried leaving ethernet interface blank also.Frek wrote:I will look into it someday, but by judging from your screenshot it seems you got sheepshaver running already- I'm 99% certain it hangs when it tries to initialize appletalk, try disable any serial ports that may be exported by sheepshaver (in the configuration file) and see if that helps.
It would be nice if the Mac startup process were a bit more verbose so we'd know exactly what it's trying to do. Will keep messing with it ... :)
Although I haven't gotten as far as you have either- the entire sheepthreads.c is totally out of synch with the glibc that ubuntu uses, so I'll have to look into that next.
Also had to make sure DGA etc wasn't used or it would crash early on me, however for now I just removed sheepthreads.c from the Makefile- it compiles and links but crashes right when the emulation is started so I suppose I'll have to fix sheepthreads to make it work.
I were pretty much certain it was an appletalk problem that caused the stall (I had the exact same problem when I ported basillisk to another platform) - as a last resort, try hold down the shift key as soon as you started the emulator- it will make sure macos boots in a "safemode", with no extensions turned on- if that works go to the apple menu -> pick chooser and disable appletalk (I'm still convinced that's the problem :P)
But anyway we'll see I'll look into this over the next few weeks (perhaps earlier.)
I also had problems compiling sheepthreads.c and removed it from the Makefile to get around it. With "new world" roms I get an immediate black screen when trying to start the emulation. Only with older roms like PPC7600.ROM or PPC8500.ROM it will start at all.Frek wrote:Although I haven't gotten as far as you have either- the entire sheepthreads.c is totally out of synch with the glibc that ubuntu uses, so I'll have to look into that next. Also had to make sure DGA etc wasn't used or it would crash early on me, however for now I just removed sheepthreads.c from the Makefile- it compiles and links but crashes right when the emulation is started so I suppose I'll have to fix sheepthreads to make it work.
I'm using the source from cvs as described here.
Quick summary of what I'm doing to build (might make it easier if someone else wants to try it):
Code: Select all
(move to directory where you want source downloaded)
cvs -d :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix login
(password is anoncvs)
cvs -d :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix checkout BasiliskII
cvs -d :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix checkout SheepShaver
cd SheepShaver
make links
cd ../BasiliskII/src/Unix
./autogen.sh
make
cd ../../../SheepShaver/src/Unix
./autogen.sh
./configure --disable-vosf
(remove sheepthreads.c from the SYSSRCS line in the Makefile with your text editor)
make
If I start while holding the shift key I do get the message that it has extensions turned off, but unfortunately it still hangs in the same place.as a last resort, try hold down the shift key as soon as you started the emulator- it will make sure macos boots in a "safemode", with no extensions turned on- if that works go to the apple menu -> pick chooser and disable appletalk (I'm still convinced that's the problem :P)
I have no idea what sheepthreads.c is supposed to do, so I don't know how important it is that it doesn't get built. I also notice some warnings when SheepShaver is compiling:
Code: Select all
../macos_util.cpp: In function ‘uint32 FindLibSymbol(char*, char*)’:
../macos_util.cpp:196: warning: large integer implicitly truncated to unsigned type
../macos_util.cpp:218: warning: large integer implicitly truncated to unsigned type
yep bill I've done pretty much the samething, but I it just crashes on me as soon as it jumps off into rom jump_to_rom() (ppc_asm.S) (and unless i remove DGA X11/(and VOSF like you do)) it crash way earlier, I also noticed that the "processor-type transform" don't work for the CellBE so for now I simply assigned PVR as a 7400 cpu (G4, which Sheepshaver do by default on the G5:s; While the Cell isn't a G5 it's a derative so I assume they are atleast somewhat similar on UISA level)
This project turned out way more difficult that I expected it to be- to be honest I haven't been able to figure what causing the crash right now- it's difficult to trace it down too as gdb messup completely once you branch to the macrom. so instead I have to work the opposite way- try eliminate all other options and it's very time consuming and frustrating- and yes I've tried both New World Roms and Oldworld Roms and the behavior is the same, however I haven't installed a proper bootdisk for sheepshaver- but I don't think that should do any difference, the macrom should just flash a question mark incase it can't find a bootable disk.
I'll further into this later on.
And regarding your hung- I can't really explain it right now then, unless it's related to my difficulties to get the emulator going at all, just try assign the PVR to the PVR of the 7400 and recompile sheepshaver to see if it does any difference just to be sure, but really I don't think it will- judging from your screenshots the boot process got past all hardware initialization done by the ROM- infact it will all be done as soon as you see the "happy mac" before it says "Welcome to Macintosh", you get stuck somewhere when it starts loading extensions and controlpanels, but you're right it seems to get stuck on a emulator level if disabling the extensions don't help.
I'll have to read up some on the Cell BE to see if the cache linesize is 32 or 128 like on the G5 (the flush_icache_range function in basillisk assumes 32 at the moment, that could explain my crashes.... but then again I can't figure why it works for you :p)
This project turned out way more difficult that I expected it to be- to be honest I haven't been able to figure what causing the crash right now- it's difficult to trace it down too as gdb messup completely once you branch to the macrom. so instead I have to work the opposite way- try eliminate all other options and it's very time consuming and frustrating- and yes I've tried both New World Roms and Oldworld Roms and the behavior is the same, however I haven't installed a proper bootdisk for sheepshaver- but I don't think that should do any difference, the macrom should just flash a question mark incase it can't find a bootable disk.
I'll further into this later on.
And regarding your hung- I can't really explain it right now then, unless it's related to my difficulties to get the emulator going at all, just try assign the PVR to the PVR of the 7400 and recompile sheepshaver to see if it does any difference just to be sure, but really I don't think it will- judging from your screenshots the boot process got past all hardware initialization done by the ROM- infact it will all be done as soon as you see the "happy mac" before it says "Welcome to Macintosh", you get stuck somewhere when it starts loading extensions and controlpanels, but you're right it seems to get stuck on a emulator level if disabling the extensions don't help.
I'll have to read up some on the Cell BE to see if the cache linesize is 32 or 128 like on the G5 (the flush_icache_range function in basillisk assumes 32 at the moment, that could explain my crashes.... but then again I can't figure why it works for you :p)
Maybe it is something to do with my disk image ... I have Mac OS 8.5 coming soon -- found it on eBay pretty cheap (about $21 with shipping, including an external USB CD-RW drive and some other stuff).Frek wrote:just try assign the PVR to the PVR of the 7400 and recompile sheepshaver to see if it does any difference just to be sure, but really I don't think it will- judging from your screenshots the boot process got past all hardware initialization done by the ROM- infact it will all be done as soon as you see the "happy mac" before it says "Welcome to Macintosh", you get stuck somewhere when it starts loading extensions and controlpanels, but you're right it seems to get stuck on a emulator level if disabling the extensions don't help.
I tried setting the PVR (in main_unix.cpp, line 559) to a couple of different codes, and also the 0x000c0000 mentioned below the #if EMULATED_PPC part, but it didn't seem to make any difference.
I have installed the Windows version but it wasn't loading at all for some reason ... need to get that one working so I'll have something to compare results with.
Possibly, I've fixed sheepthreads.c on my ps3- it didn't do any difference to my crashes- so I can atleast pull that out of question.billb wrote:Maybe it is something to do with my disk image ... I have Mac OS 8.5 coming soon -- found it on eBay pretty cheap (about $21 with shipping, including an external USB CD-RW drive and some other stuff).Frek wrote:just try assign the PVR to the PVR of the 7400 and recompile sheepshaver to see if it does any difference just to be sure, but really I don't think it will- judging from your screenshots the boot process got past all hardware initialization done by the ROM- infact it will all be done as soon as you see the "happy mac" before it says "Welcome to Macintosh", you get stuck somewhere when it starts loading extensions and controlpanels, but you're right it seems to get stuck on a emulator level if disabling the extensions don't help.
I tried setting the PVR (in main_unix.cpp, line 559) to a couple of different codes, and also the 0x000c0000 mentioned below the #if EMULATED_PPC part, but it didn't seem to make any difference.
I have installed the Windows version but it wasn't loading at all for some reason ... need to get that one working so I'll have something to compare results with.
I can't see any other possibility than something has changed the way the signals are handled i ubuntu / gutsy.
I've even borrowed another ppc mac (a g4) that runs ubuntu- and it suffers from the same crashes so I have on the PS3 so it definately seems related to something in the ubuntu environment, I just ponder if all "uptodate" linux distributions has the same problems.
I really don't know what's wrong at the moment, and right now it seems like it's very tricky to figure out. I don't want to install ydl either (because it's pretty old under the hood so the new versions of the cell sdk don't install/work afaik.).
I would like to help beta test SheepShaver on PS3, I have some experience troubleshooting boot issues on MacOS.
As a thought, you may want to match the ROM to the bootable install, there may be extensions which aren't disabled with shift that need to be in the system folder for certain "Mac's". Also if there is a known SheepSaver disk image that matches up to a specific ROM, I would definately start there to minimise your problems to this new build. Alternatively test a known working build of SheepSaver with your boot image and ROM. There are also some other simple images that may work, for example a PPC Mac 6100 could boot a basic floppy image of MacOS 6.0.7, and I think there may be a Norton Utilities disk which should work across many Mac models. I'll have a look round at home for some old stuff... I also have a OSX beta that worked, all be it slowly on my old PowerMac 6100, although it was useless as it was really NeXTStep running on BSD with a couple of MacOS gui apps running, but the interesting thing about it is the BluBox which ran under "Mac OSX" was a very good Mac OS emulator (built by Apple) that had support for at least 8.1 and cut and paste from BSD to MacOS etc
I'd be happy if my PS3 OtherOS was Mac OS 6.0.7 running native PPC apps, Office and Adobe apps should scream and RAM shouldn't be a huge concern... it would just feel like 1998 again... I can only dream...
As a thought, you may want to match the ROM to the bootable install, there may be extensions which aren't disabled with shift that need to be in the system folder for certain "Mac's". Also if there is a known SheepSaver disk image that matches up to a specific ROM, I would definately start there to minimise your problems to this new build. Alternatively test a known working build of SheepSaver with your boot image and ROM. There are also some other simple images that may work, for example a PPC Mac 6100 could boot a basic floppy image of MacOS 6.0.7, and I think there may be a Norton Utilities disk which should work across many Mac models. I'll have a look round at home for some old stuff... I also have a OSX beta that worked, all be it slowly on my old PowerMac 6100, although it was useless as it was really NeXTStep running on BSD with a couple of MacOS gui apps running, but the interesting thing about it is the BluBox which ran under "Mac OSX" was a very good Mac OS emulator (built by Apple) that had support for at least 8.1 and cut and paste from BSD to MacOS etc
I'd be happy if my PS3 OtherOS was Mac OS 6.0.7 running native PPC apps, Office and Adobe apps should scream and RAM shouldn't be a huge concern... it would just feel like 1998 again... I can only dream...
Working on PSP Guitarismo...
Hi -- glad to see some interest in this ... so far we haven't been able to get past the point where it hangs during startup (as seen in the screenshot I posted earlier). At this point I still don't have SS running on another platform for comparison purposes. That would definitely be a good starting point ... :)dbarrade wrote:I would like to help beta test SheepShaver on PS3, I have some experience troubleshooting boot issues on MacOS.
Success! Sort of ...
Finally got SheepShaver running on the PS3 under YDL 6.1. The problem remains with compiling sheepthreads.c which apparently is required when trying to run it on native PPC, but it does work using the built-in PPC emulator. As you can imagine, it's rather slow, but it works ...
I've posted my results so far over here:
http://pleasantfiction.ipower.com/bodeg ... 1560#p1560
I probably would never have got it going if I hadn't seen this in the changelog of the SheepShaver spec file (rpmfusion version):
http://download1.rpmfusion.org/free/fed ... haver.html
I've posted my results so far over here:
http://pleasantfiction.ipower.com/bodeg ... 1560#p1560
I probably would never have got it going if I hadn't seen this in the changelog of the SheepShaver spec file (rpmfusion version):
http://download1.rpmfusion.org/free/fed ... haver.html
Earlier in this topic I mentioned I had errors when it came to compiling sheepthreads.c ... if someone could patch it so it works with a more recent version of glibc (if that's even possible) then perhaps we could use it without PPC emulation on the PS3. This sort of thing is way beyond me, though.- Use ppc cpu emulator even when running on ppc, as using the native cpu
requires a private implementation of pthreads from:
src/Unix/Linux/sheepthreads.c
which depends on glibc pthread internals which are no longer exposed by
glibc and quite possibly changed