Setting Up Ubuntu On a PS3 For Emulation 81
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."
VM hacking? (Score:5, Interesting)
It seems like a long shot, but it could work with at the very least "decent" results, after a fair amount of hacking and gnu optimization (store more crap on the registers than RAM). Compiz would kill on those graphics cards, and if paging is light you could have project 64 running in WINE for the best Nintendo 64 experience since... the Nintendo 64! Gee Willigers!
That is, assuming qemu can do x86->PPC, else find an alternative (or write one, hey!)
Re:VM hacking? (Score:5, Informative)
Re: (Score:1, Troll)
Dunno, but this sounds like DRM to me.
Re: (Score:1)
Then clearly you are a moron, or just hate Sony whatever they do. I don't ever see the Xbox running Linux...
Then you haven't been looking in the right places! My xbox has been running Linux for years. Makes a damn fine media player too! I watch most of my fansubs on it.
Re: (Score:1)
Which is the same argument I was making for the PS3.
If I own the box, then why the hell should there be a god-damned hypervisor explicitly designed to lock me out of my own hardware unless I use only sony approved software? This is sony trying to tell me how to use my own stuff.
The other tenth (Score:2)
I was under the impression that possession is 9/10ths of the law.
The other tenth is copyright law, specifically 17 USC 1201 and other countries' legislation implementing the WIPO Copyright Treaty of 1996.
Kind of like owning a gun. You can own a gun and use it however you want
Even in the United States with its loose gun laws, residents can't own an assault rifle.
Re: (Score:3, Informative)
There's been a lot of work in this area, getting around the hypervisor has been done, and even a Xorg driver(PS3RSX Binary Driver) - but only for older firmwares than 2.10.
So, if you want to run older firmware - you can run compiz. Of course - this probably prohibits newer games.
Re:VM hacking? (Score:5, Funny)
Re:VM hacking? (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.
Re:VM hacking? (Score:4, Informative)
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
Re: (Score:3, Informative)
Very, very few programs require x86 assembly nowadays.
Unless you're talking about emulators, in which case it's very common.
Re: (Score:2)
Very, very few programs are emulators.
-:sigma.SB
Re: (Score:2)
The reason your post is "invalidated" is that you seem to suggest that if the kernel could emulate x86 instruction execution, then the article's author's problems would be solved.
Yet it's obvious, with modern linux distributions, you don't need to worry about if a program is already compiled for intel. You have bigger problems, like the graphics on the ps3, or how the os organizes its libraries, etc.
>Would it be too slow to load a slim PPC kernel and replace init
>with an optimized PPC-compiled qemu in
Re: (Score:2)
Why would any linux user need compatibility with another chip? To run linux apps compiled for the other chip? You've got to be kidding.
Because most assemblers don't support statically recompiling a .s file written for x86 to any other architecture. Emulators are more likely than the average spreadsheet program to spend a significant amount of time in code written and maintained in assembly language.
Nor can you recompile a non-free app that comes without source code. Not all programs designed to run on top of GNU/Linux are free software.
Re: (Score:3, Informative)
You've obviously never used Gent
Re: (Score:2)
Re: (Score:1)
Gentoo Linux
The article clearly says "Ubuntu", you fucking retard. And the parent you all are bashing (and demodding) has a point, Ubuntu on x86 has the best prepackaged software I'd hate to compile by hand all of the time. And he specifically mentioned Project 64 - EMULATOR, which = assembly. Get it right, and please shred your geek cards as well.
Re: (Score:1)
Obligatory xkcd quote. Made my day a bit brighter here in Sweden.
Re: (Score:2)
x86 on x86 emulation was pretty slow before we had svm/vmx, although with it it's basically native speed now (except for anything graphical). I think QEMU can emulate x86 on PPC, but expect it to be slow, as there'll be no hardware acceleration (svm/vmx), and you can't use kqemu either. Really, you should just avoid the hassle and play Game! [wittyrpg.com] instead.
No need to stack a full x86 emulated system (Score:4, 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.
Re: (Score:2)
Re: (Score:2)
Why not just recompile your target application for ppc?
Endianness, and CPU and PPU emulation cores written in assembly language. Or has the emulation community come up with ways to handle those automatically?
Re: (Score:2)
Re: (Score:2)
I wish someone WOULD create something like that :)
There's nothing stopping you having a kernel with QEMU in it's initrd, booting it up and picking up a virtual hard disk installed in your "Other OS" partition. This may have Windows or something else on it, requiring x86. QEMU will happily emulate most processors on top of whatever host processor (ARM->x86, ARM->PPC, PPC->x86, x86->PPC, add MIPS and whatever else into the mix)
It depends what you mean by "too slow". The PPU on the PS3 is pretty da
erm (Score:3, Insightful)
don't do this (Score:5, Insightful)
linux on ps3 sucks balls:
no access to gpu
10 gigs of disk space
~256 megs of memory
crappy ppc processor which meant for the stuff I wanted to do with it (read: boxee), I didn't have the libs.
Re:don't do this (Score:4, Insightful)
There's really no reason to run Linux on the PS3.
Neither is there any reason to run NetBSD on a toaster, but it's still fun (to some people).
And that's reason enough.
Where's the S-Video out on a $400 PC? (Score:2)
For the price of a PS3, you can get a nice, cheap, dual core system with at least 1GB of RAM. Unlike the PS3, you'll have access to the graphics hardware.
But can the graphics hardware in an off-the-shelf "nice, cheap, dual core system" output a composite or S-Video signal for an SDTV to use? There's a huge installed base of SDTVs that are large enough for three or four people to fit around comfortably. The advantage of $400 game consoles over $400 PCs is that game consoles are guaranteed to have SDTV output, unlike the desktop PCs that I could find at Office Depot.
Re: (Score:2, Informative)
at Office Depot
well there's your problem, right there
Then where can I buy a $400 PC with TV out? (Score:2)
Re: (Score:1)
i actually didn't claim anything, but i can tell you that you are not going to get a gaming rig for $400 at a brick and mortar retailer. you might be able to get a bare-bones system and a video card online if you want a cheap gaming rig. a quick perusal of tigerdirect.com shows barebones systems based on dual core processors for between $200 and $400. if you pick lower end you can get a graphics card with whateve
Re: (Score:2)
Maybe not out of the box, but you can find adapters for $40-$60.
They're not in Best Buy, and not everyone knows about sewelldirect.com.
Sure, your cheap little Linux PC won't be able to run sweet games - but, then again, neither will the PS3 while running Linux!
But at least the PS3 can be dual-booted to PS3 mode.
Re: (Score:1)
Re: (Score:1, Informative)
Why would you want to run folding@home under PS3 linux, when there already is a native PS3 client that utilizes the SPUs?
The GPU clients beat the PS3 client, but it's still faster than the normal CPU-only PC clients by far.
Re: (Score:2)
Yes, I'm sure they aren't utilizing it completely, and in a few years the games will be more impressive. By then, of course, pc hardware will have advanced more dramatically.
Re: (Score:3, Informative)
"If the cell is so much better, then, how come nothing on the PS3 demonstrates a massive superiority over a decent, new pc?
Yes, I'm sure they aren't utilizing it completely..."
Well, in the one sense you're right, if games shops don't learn to program properly for cell in pretty short order then the PC market will get ahead again. Actually that's pretty inevitable, because consoles are never quite cutting edge when released and then sink back from there.
OTOH, look up roadrunner and other mixed Opteron/Cell s
Re: (Score:1)
Re: (Score:3, Informative)
If you want more than 10GB of space, you can do it two ways. First, you can set up the PS3 so that the "Game OS" gets 10GB and Linux gets the rest - or you can hook up a USB2 drive.
You don't get access to the GPU, but you do get access to the GPU's memory, and they've come up with a way to use that VRAM as a fast swap device, bumping the effective memory close to 512MB. Still not spectacular, but certainly quite workable.
And if you can't build stuff from
Re: (Score:2)
You don't get access to the GPU, but you do get access to the GPU's memory, and they've come up with a way to use that VRAM as a fast swap device
How long until Sony releases a firmware update that disables that way?
And if you can't build stuff from source, oh well. It's not that hard.
Emulator source code is more likely than that of other kinds of applications to include .s files. A .s file contains assembly language source code, which is specific to an instruction set. How do I translate .s files for x86 into .s files for PowerPC?
SNES, NES, Genesis. You can't go wrong (Score:1, Interesting)
A roommate of mine that has unfortunately moved out has a PS3 and a big HDTV. We spent a lot of time playing PS3. Some of those new games look amazing in HD... really amazing.
Despite this, we spent a lot more time playing roms under ubuntu. I've always used ZSNES on my computers, but unfortunately some of it is written in X86 compiler. SNES9X works great on PS3 ubuntu though, and finding emulators for other systems compiled for PPC really isn't hard at all.
Re: (Score:2)
Despite [the amazing look of PS3 games' graphics in high definition], we spent a lot more time playing roms under ubuntu.
What copier did you use to dump the roms from your Super NES Game Paks?
Architecture isn't a bid deal (Score:5, Insightful)
>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.
I have to say, to most linux users, the specific architecture and processor really aren't meaningful. The linux kernel, gnu userland, and associated popular applications have always been distributed in source code first, and binaries as they are made available. The entire concept of open-source depends on source distribtion.
It is absolutely no problem if an app is distributed in source form or binary (compiled). True, a "standard" linux install base, while it may be defined, is rarely realized. So you could argue that distributing in source code creates problems because needed dependencies can't always be met. But then again, this doesn't help with binary distribution either. Ever try to install an RPM on a non-rpm-ish linux distro? It can be done, yes, but it involves a lot of details. Just as compiling does.
Debian is awesome for distributing such a wide range of apps compiled for so many architectures. But it is truly sad to see someone write that it is "unfortunate" that most linux installs are x86 and his is ppc. The entire concept of linux is that linux is a kernel and a userland distributed in source. It doesn't matter what hardware you have (within reasonable limits... toasters, watches, etc).
There's nothing "unfortunate" about an intel chip, a sparc processor, or a power pc, in terms of the ability of linux to run on it. It's a bigger deal if you're running generic pc hardware with some new video or wifi card. But even this sort of par for the course these days.
Re: (Score:2)
There's nothing "unfortunate" about an intel chip, a sparc processor, or a power pc, in terms of the ability of linux to run on it. It's a bigger deal if you're running generic pc hardware with some new video or wifi card.
+1 Very important issue. But IMO the only thing that's stopping desktop Linux on ARM, mips etc is probably Adobe Flash support..
Re: (Score:2)
Good point -- for closed-source applications, your system has to closely match whatever a particular piece of software was written to run under.
They have some kind of solution for PPC linux, I can't remember what it is though. I think it's a third-party somewhat compatible plugin.
But I think the real desktop linux barrier is the lack of a standard desktop environment. Last time I toyed with desktop linux, just about everything was half-way broken (compared with my mac, that is). Changing around screen resol
Re: (Score:1, Informative)
How long ago was that - Just checking behaviour in KDE 4.2 now... Providing your hardware is detected properly Switching graphics modes is a simple point and click affair. dragging a file from web browser to an open folder pops up a dialogue box asking if want to copy move or create a link... Can't comment about xmms but I can certainly drag MP3s from Amarok and photos from digikam into kmail. Cut copy and paste of images could be a lot bet but for text I prefer it to everything else out there. Unix makes i
Linux Desktop Features (Score:2)
Mod parent up...
The issue at this point isn't so much about having a coherent desktop - KDE provides that. (I can't personally vouch for Gnome...) The issue is that this "coherent desktop" is less a feature of "Linux" per se and more a feature of KDE (or Gnome). This desktop can run applications that aren't part of the environment - but if you want the integration you have to stick to stuff that really is part of that environment.
Re: (Score:1, Insightful)
I don't know what the numbers are for the PS3, but typically game consoles are sold at cost or at a loss, with the plan being that game royalties, licensing, and other goodies make up for the loss. They are traditionally the real revenue stream.
Assuming this is the case for the PS3, the last thing they want is a bunch of people buying up consoles for use as Linux machines. That would be a quick trip to the poor house for Sony. The only way I could seem them opening up a box for that kind of use would be to
Re: (Score:1)
Handbrake? (Score:2)
I've been thinking, wouldn't this make a shit hot box to do h.264 encoding on? Isn't that one of the things that the cell is optimized for? SMP across 9 cell cores doing h.264 encoding and I know when encoding a dvd that handbrake uses virtually no memory on my dual core amd64 box. Just an honest question.
Isn't this kind of like.... (Score:1)
MAME? (Score:1)
I wish that he would have mentioned some way to run MAME, that's better than SNES games anyway.
Also, here is a way to run a fast Mplayer on PS3 Linux [linux.yes.nu]. This custom version of Mplayer uses the SPUs. I have an 80 GB PS3 and I'm eager to try some of this stuff out.
it's been said before (Score:1)
Well yes you can "hobby" linux on your PS3... sony even provides some help... but if you think you're going to get anything cool out of it, think again, it's just going to be a hobby...
1. No HD... wow SD is so "cool"
2. No GPU... wow my PS3 has such cool 3d graphics... or not!!
So basically you get a low end computer with the inconvenience of PPC (so you can't use the majority of binaries) it's non-usefulness as a slick media player (no HD etc) or a "Game machine" (no x86 or GPU) basically means it's a big fa
Linux as a 'game' (Score:2)
Call me when Linux runs as like a 'game' on the PS3 and I don't have to reboot everything and sacrifice access to my friends list, etc.
As it stands, it's just too much work to reboot into Ubuntu mode on the PS3 to have it be worth my while. (Yes, I tried it for a while.)
Maybe if all my other systems were broken and I couldn't afford to buy a new one... But then, I'd be a sad techie if that were ever the case.
And let's face it, this is only for techies.