Slashdot Mirror


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."

4 of 81 comments (clear)

  1. Re:VM hacking? by fuzzyfuzzyfungus · · Score: 4, Informative

    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.

  2. Re:VM hacking? by Anonymous Coward · · Score: 5, Informative

    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.

  3. Re:VM hacking? by Solra+Bizna · · Score: 3, Informative

    The Article (yes, they are not just a myth) explicitly tells of Ubuntu running on (err, op top of the hypervisor on) the PS3. Now, I for one do NOT want to go through and compile EACH AND EVERY SINGLE Ubuntu app I desire after being spoiled with apt-get (and dpkg before that) and repeating the process with EVERY SINGLE UPDATE/FIX. Further more, tracking down EACH AND EVERY library/dependency for said apps without the help of a packaging system would be a living breathing hell (and yes, some of said apps either use assembly or target the x86 architecture so closely that there is a speed loss on others due to instruction/stack/register differences brought up by gcc switches in the makefile, or intentionally by the coder).

    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.

    And as mentioned above (in a less derogatory manner, you insensitive clod) the PS3 hypervisor would only offer a framebuffer to the PPC kernel hypervisor to pass to the guest x86 kernel to use (wasn't over-engineered brought up above, as well?) for video - so yes, you won't get HD performance on the box as I'm aware of now, but I'm sure the framebuffer at least offers something, you think? Oh thats right, nobody has taken the time to satisfy all the dependencies in the universe to compile a worthy app by hand to test it with. Yes, I've gotten a little spoiled since the green-screen days, but software has also gotten more complex (we still use C and its libraries to write ideal modern software/VMs, right?) so what do you expect?

    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
  4. No need to stack a full x86 emulated system by DrYak · · Score: 3, Informative

    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 ]