Setting Up Ubuntu On a PS3 For Emulation
Gizmodo is running a guide on how to install Ubuntu on a Playstation 3 and set it up to play vintage games through emulation. Quoting:
"It still kind of surprises me (in a good way) that Sony was, from the start, very OK with PS3 owners tinkering with Linux on their PS3s. A modified release of Yellow Dog Linux was available from the very beginning, and some very handy hard drive partitioning and dual-boot utilities are baked right into the PS3's XMB; Ubuntu gets installed on an entirely separate partition of your PS3's hard disk, so your default system doesn't get touched and switching between Ubuntu and the XMB is a piece of cake. There is a flipside to this coin, however. Since the PS3's Cell Processor is PowerPC based, you won't be able to use any Linux software that's compiled for x86, which is, unfortunately, most of it. However, Ubuntu has always had a PPC distro, and most of the basic stuff will work just fine. You can even load up a PPC-compiled Super Nintendo Emulator, SNES9X, and play some classic games pretty easily on your Sixaxis controller paired via Bluetooth."
Unfortunately, the PS3's graphics card is specifically denied to linux by Sony's hypervisor. You just get a framebuffer. Linux only really runs on the PS3 in a rather limited sense.
I'll be to bed in a minute, SOMEBODY IS WRONG IN THE INTERNET!
First and foremost, just about anything will compile for PPC unless it uses assembly. C is "portable" for a reason. This fact completely invalidates your entire post for most programs, even emulators.
Further beating the dead horse, due to the hypervisor you can't access the 3D acceleration goodness of the PS3 while running anything but the "Playstation OS". This is to prevent such awesomeness as playing pirated games and romz on a device meant to play legally bought stuff, but doesn't matter with the good ol' games & systems we love and respect.
Hand in your geek card.
You've... never used a non-x86 Linux distro, have you? It's pretty much exactly the same as the equivalent x86 distro, except with a PowerPC/SPARC/MIPS/Alpha/ARM/etc. CPU instead. (And usually more sloppy QA, but that's another story.)
Very, very few programs require x86 assembly nowadays.
You've... never used a "fast" computer with a plain framebuffer, have you?
You know what, replying to you is a waste of time.
-:sigma.SB
WARN
THERE IS ANOTHER SYSTEM
Would it be too slow to load a slim PPC kernel and replace init with an optimized PPC-compiled qemu instance {...} and run a virtual x86 machine on that? It seems the downsize would be: two kernels and an image in non-volatile storage {...} That is, assuming qemu can do x86->PPC, else find an alternative (or write one, hey!)
All this is an absolute overkill.
If there are a couple of binary-only Linux applications that you have to run on PS3 and they are only compiled for x86, there's QEMU which has a special mode for running Unix-on-Unix, where it emulates an x86 CPU only for the x86 application and passes through all system calls to the actual native OS.
The DarWINE project is exactly doing that to run Windows applications on PPC Mac OS X boxes : the windows application and assorted Wine glue code goes inside QEMU, the call translated to Unix libraries go to the native system.
If you need to run Windows application, probably DarWine isn't that far from being runnable on PPC Linux.
And if you need to run old-school DOS games, DosBox has a built-in x86 emulator anyway.
The "emulate a full x86 Linux running inside a PPC Linux" is just a complete waste of resources.
And, as pointed by other /.ers, the PS3 hypervisor doesn't let Linux access the GPU anyway. So no Compiz, no hardware accelerated emulation of consoles with 3D chips (no N64, no PSX without PS3's own OS, no DreamCast, etc.)
Still there's a good access to the Cell's stream processing units, so Linux on PS3 has a good value for doing scientific calculation, and there's an attempt to accelerate Mesa 3D with the SPUs, in order to have some hardware-accelerated OpenGL, even without the GPU.
"Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]