Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Developing On the PS3 Under Fedora

Posted by Soulskill on Sat Aug 02, 2008 04:02 AM
from the ignore-the-toy-and-play-with-the-box dept.
An anonymous reader writes to point out the first in a series of articles from a while back about using the Playstation 3 as a development environment under Fedora. Here are the second and third parts of the series. Quoting: "Early on, it was a bit of a challenge to get Linux natively installed on the PS3. Time has passed, and a great deal has changed. Fedora 7 installs on the PS3 out of the box, with the most challenging installation steps eliminated. This article introduces the basic configuration knobs and widgets specific to the PS3 running Linux, shows you how to use them effectively, and suggests the kind of trickery that gets improved performance."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • How oddly timely (Score:3, Interesting)

    by dreamchaser (49529) on Saturday August 02 2008, @04:09AM (#24446071) Homepage Journal

    I just finally bought a PS3 about a week ago and was getting ready to install Linux on it. I wish we could access the GPU but I understand why Sony doesn't want that. I think I found my project for the weekend.

    • Re: (Score:3, Informative)

      by Anonymous Coward

      You should watch this [youtube.com] and save yourself some time. There is no real point in doing it except to do it, in which case you might as well just watch somebody else.

      • Re: (Score:3, Informative)

        Oh I've already seen the (more than one) videos of Linux on the PS3. I want to play around with some Cell coding; that's the only reason TO do it. The PS3 has a web browser already so installing Linux to just a somewhat functional web appliance is probably a waste of time.

      • by ctid (449118) on Saturday August 02 2008, @04:25AM (#24446111) Homepage

        ... the article specifically states that running Linux on the PS3 is now far easier. I don't know if that is true but the article states that many of the time-consuming steps are no longer required. The PS3 is a very cheap development environment if your target platform is the CELL processor and that must be a reason for doing it if you are going to be programming one of those systems. There is no reason to assume that everyone has the same motivation for running it.

        • Reality is defined by the maddest person in the room

          Aah...that explains why there is only one +5 Insightful comment.

        • The PS3 is a very cheap development environment if your target platform is the CELL processor and that must be a reason for doing it
          .

          explain to me why you are spending time in an environment that doesn't give you full access to the graphics sub-system - and may have other significant constraints.

          • explain to me why you are spending time in an environment that doesn't give you full access to the graphics sub-system -

            Because you aren't doing graphics?

            and may have other significant constraints.

            and could also come to life and kill you!

          • Re: (Score:3, Insightful)

            by Anonymous Coward
            I don't think the PS3 is a good development environment for that.

            That's nice that you don't think it's good for that. But there are plenty of things that people could use programming on Linux on the PS3 for. They could use it to familiarize themselves with writing to the SPEs. They could use it to learn about multithreading. It's an amazing learning resource. And if you happen to work in a scientific lab environment, it's a very cheap workhorse. So just because you don't think it's good for anything does
          • And a non-coder slightly nerdy person could use it (in my case Linux on the PS2) to learn about this Linux thing they've seen mention of on Slashdot.

            • I am curious and have never seen a clear explanation,so maybe someone here at slashdot can tell me:what makes the cell a better choice for supercomputing than other chips. Is it better at a certain kind of math? Wouldn't you limit the work you can do by going cell instead of a more general chip? And I thought that the next generation Intel and AMD chips are going to allow for specialized co-processors like the old days,thanks to Hyper-transport. Has that been shelved or something?

              Because it would seem to

              • The cellprocessor is actually a 'normal' powerpc processor (2 threads), with 8 coprocessors (Synergistic Processor cores, 1 thread each), optimized for single precisionfloating point operations. All 9 cores can use DMA simultaneous... Since the cell is actually an 'upgraded' powerpc, all FLOSS code will run on it, of course not optimazed... That's why it's so easy to port linux to it...
              • by Junta (36770) on Saturday August 02 2008, @09:06AM (#24447175)

                A two processor Xeon 3.0 ghz quad core system would have an xhpl-relevant Rpeak of about 96 Gflops. Two cell processors (of the Poer8XCelli varaint, not the ones in PS3) has an Rpeak of 200 Gigaflops. The power consumption of those are about even. So the processor achieves over twice the aggregate performance within a comparable power envelope. *THAT* is why it's interesting.

                See the #1 Top500 system. Not significantly more power usage than Intel systems, but blows the Intel ones out of the water.

                The thing about code is, a Cell system can run the same C code other platforms can. Not blazingly fast, mind you, but it isn't like you *must* retool everything. In order to get the 2x boosts in certain code loops, yes, you would have to, but a lot of that is done already.

                • Re: (Score:3, Interesting)

                  Thanks for the info everyone,it makes a lot more sense now. Question: has anybody hacked the graphics core so you can run code on it yet? It seems to me if you were going to link a bunch of PS3s together having all those graphics cores sitting idle when they could be processing vectors seems like a waste. According to the Wiki the GPU gets 1.8 TFLOPs which,when combined with the cell would make for some truly scary number crunching. So anybody have any luck with it? I know that Sony is scared of piracy,but
      • I disagree - for the average geek the DOING of something is an end in itself.

        Geeks are the pioneers of today, we do stuff because it is there to do.

          • Re: (Score:3, Insightful)

            The point is it adds functionality to a device that already has plenty. Even if it doesn't have 3D hardware access it's still capable of doing non-3D development. There's nothing stopping someone from using Linux on the PS3 and becoming a part of the Nethack Devteam, or writing patches to Claws-Mail or something.

            I've watched video under Linux on the PS3, it may not be good enough for 1080p but for the average non-HD video it should work fine. I've watched plenty of youtube on it. Besides, there's always

      • The video is rather lame, since it only states in rather verbose terms that the CELL isn't a x86 CPU and that you don't have access to the GPU, which we already knew anyway. It would be much more interesting to know what the PS3 Linux actually can do instead of knowing what it can't do (i.e. does mplayer work, is CELL any good for video encoding right know, how fast is the framebuffer when watching video, how fast is Dosbox or other emulation, etc.).

    • I wish we could access the GPU but I understand why Sony doesn't want that.

      I sincerely hope you don't sympathise with Sony. ;)

    • Re:How oddly timely (Score:5, Informative)

      by hazee (728152) on Saturday August 02 2008, @05:32AM (#24446295)

      I wish we could access the GPU but I understand why Sony doesn't want that.

      Well, I wish somebody would explain it to me. I presume the answer has something to do with piracy, but I don't see how that has a damn thing to do with access to the graphics chip under Linux. I mean, if they want to prevent you booting disks that haven't been officially signed, then that's fair enough (just about), but what does limiting the access to the GPU achieve?

      This whole business of running Linux is basically just a tax dodge anyhow - because, if it didn't run Linux, the EU would have classified it as a game, rather than a computer, and slapped a higher import duty on it.

      The EU should have stood firm and said "if you want to claim it's a computer, then users should be able to program the facilities of the *whole* computer".

      How happy would you be if you bought a new PC, only to find out that, no, you can't access the GPU, etc from your own programs?

      • Re:How oddly timely (Score:5, Informative)

        by kripkenstein (913150) on Saturday August 02 2008, @06:16AM (#24446437) Homepage

        I wish we could access the GPU but I understand why Sony doesn't want that.

        Well, I wish somebody would explain it to me. I presume the answer has something to do with piracy, but I don't see how that has a damn thing to do with access to the graphics chip under Linux.

        Well, I'm just guessing, but this is my theory.

        You can't just write games for consoles, you need to be a registered developer, and have a business relationship with the manufacturer, Sony/Nintendo/Microsoft. This has two goals, first, the manufacturer gets a cut out of your profits, second, the manufacturer gets to decide what runs on the console, so there aren't any subpar titles that give it a bad name.

        If Linux could access the GPU, we'd have lots of nifty games ported to the PS3 in no time (Sauerbraten, Nexuiz, Alien Arena, etc. etc.), and later on developers might write games specifically for the PS3/Linux, just to get around the cost of developing using the 'normal' procedure for consoles. Sony, according to this theory, wants to avoid such things, for the reasons I said before: no more guaranteed profit per game played on their consoles, and no control over what games are played on them either.

        I think it's crappy reasoning, personally.

        • "the manufacturer gets a cut out of your profits"

          They need this in order to be able to subsidize the console. The solution to this closed ecosystem where console makers can dictate which publishers enter the market is to prevent the subsidies. If you prevent the subsidies, there is little to no reason to limit what the end user can do with the device or who can program for it.

      • Re: (Score:3, Insightful)

        It's about control of the platform. If Linux could access the GPU, then games could be written for PS3 Linux and shipped on a DVD contain a Linux kernel and bootloader without paying Sony anything. Since they sell the hardware as a loss-leader and expect to make up the difference from developer license fees and first-party game sales this would be a problem for them.

        How happy would you be if you bought a new PC, only to find out that, no, you can't access the GPU, etc from your own programs?

        Depends. If it were heavily subsidised then I might accept it. Probably not though, which is why I don't own a console.

      • by Moraelin (679338) on Saturday August 02 2008, @07:18AM (#24446615) Journal

        Well, I wish somebody would explain it to me. I presume the answer has something to do with piracy, but I don't see how that has a damn thing to do with access to the graphics chip under Linux. I mean, if they want to prevent you booting disks that haven't been officially signed, then that's fair enough (just about), but what does limiting the access to the GPU achieve?

        Well, it's not quite about piracy. It's about the fact that their whole business model is, well, sorta like the Gillette model: give the razor for almost free, make them pay through the nose for blades. Or, in Sony's case: massively subsidize the console itself, but control the games publishing and make them pay extra for the games.

        It's not just Sony that has this model, btw. HP does the same with printers and ink, to the extent that for some it's cheaper to just chuck the old printer in the bin and buy a new one (which includes ink), than to buy a new ink cartridge. It's done by telcos, who give you a phone for 1 Euro, but saddle you with a long term contract as their real revenue. Etc, etc, etc.

        So the last thing Sony wants is that someone bypasses them and publishes their own games for the PS3, say, as Linux games. And don't think as much "homebrew" (they probably couldn't care less if you make your own buggy tetris clone for it), think some big publisher getting that idea. Like, say, EA realizing that they can bypass and undercut Sony for their sports games.

        And it's easier to play the piracy card there and forbid it completely from the start, than to go to court later and claim "but they need our permission to make games for our machine!" There are already precedents that you can't outright forbid that. Starting with the famous IBM case which created the software industry in the first place. Turned out that IBM couldn't forbid you to make software for their machines. Atari tried the same stunt and lost too. In fact, nobody won that kind of a case yet, and I'm not sure Sony wants to try to be the first.

        This whole business of running Linux is basically just a tax dodge anyhow - because, if it didn't run Linux, the EU would have classified it as a game, rather than a computer, and slapped a higher import duty on it.

        AFAIK, that tax loophole was removed _years_ ago. So, nope.

        The EU should have stood firm and said "if you want to claim it's a computer, then users should be able to program the facilities of the *whole* computer".

        AFAIK, they did, back in the PS2 times. Sorta. They essentially ruled that it's a game console anyway.

        How happy would you be if you bought a new PC, only to find out that, no, you can't access the GPU, etc from your own programs?

        Well, just to play the devil's advocate, then fucking buy a computer. Of course, then you won't have Sony subsidizing half the cost of it, and they can't impose any restriction on you.

        Same as with cell phones, printers, etc. If you don't want to be bound by some long term contract, buy your own phone. If you don't want to be gouged for ink, buy a Cannon. Etc. It's that simple. If you decided to take the subsidy, then have the decency to also accept your own part of the contract too.

        It's kinda silly to essentially demand that a company subsidizes anything for you, but is forbidden to get anything in return. If they don't get anything out of that deal, why would they? No, you don't have some sacred right that someone else buys you a lollipop.

      • This whole business of running Linux is basically just a tax dodge anyhow - because, if it didn't run Linux, the EU would have classified it as a game, rather than a computer, and slapped a higher import duty on it.

        Wrong. Because that tax that you are referring to hasn't existed for years. It got revoked before even Linux on the PS2 was released. It was Yabasic on the PS2 that was an attempt to doge it, not Linux on the PS2 or PS3.

      • Because free 3D accellerated games on Linux would cut into their royalties. I didn't say I liked it, I just said I understood their reason.

      • How happy would you be if you bought a new PC, only to find out that, no, you can't access the GPU, etc from your own programs?

        As many others have explained, Sony sells the PS3 as a loss leader and makes their profit through game licensing/sales. Without the game profits, they couldn't afford to sell the PS3 at its current cost. If you absolutely need access to the GPU, then register as a PS3 developer.

        The more important question for the general PS3 consumer is - How happy would you be if you could save $

    • It probably isn't Sony, but Nvidia. Third party board manufacturers do get access to the Nvidia hardware specifications in order to write drivers for a fee, so I would guess that making developers pay for access to the hardware specifications helps to pay for the cost of support staff. The

      Surely, nvidia could create blob drivers for the PS3, as they do for PC's?

    • I wish we could access the GPU but I understand why Sony doesn't want that.

      You do? Wow. I always suspected that somebody must. And it's you! Share, please. :)

      • Yeah, trying out all the video modes to see which one works best for ones screen is a must. I've got a 1440x900 LCD TV, for me using VESA WXGA over HDMI, which is 1280x768 on the PS3 which my TV scales slightly works best.

  • by pimpimpim (811140) on Saturday August 02 2008, @04:26AM (#24446113)

    Nice to find a solution to find a cheap hack to use the Cell on an IBM website. Sometimes you really wonder if they have seen the light :)

    I wonder if these machines would make an excellent slim desktop pc to compete with eee desktop and others. But I guess reselling the ps3 with linux preinstalled will be fought by Sony.

    • Maybe everybody knows this except me, but does the thing have a keyboard? I'd have a hard time programming without one.
        • Quite an amusing read :) I had to check again to see if it wasn't The Onion which I was reading. "The playstation is a PC! Well we didn't make it very usable as a PC. Actually it is a piece of crap as a PC. Did I mention our playstation is a PC?"
        • Again, the tax myth. The tax doesn't exist, hasn't existed since before Linux on the PS2 was released. It was Yabasic that was an attempt to dodge the tax, not Linux.

          By the way, you CAN install a bigger HD in the PS3, Sony tells you how in the manual.

      • No... (Score:3, Insightful)

        If they didn't know how to develop for it, they wouldn't have gotten to #1 supercomputing slot. IBM knows how.

        Now, with this, it's a move to drum up interest in the architecture. IBM has server-class systems with enterprise support for CBE systems (QS22 being the current generation). However, drumming up general community interest in Cell benefits them in many ways.

        Businesses contemplating Cell can have developers evaluate the architecture on the cheap. They won't be able to have a high speed interconne

  • Finally! (Score:5, Funny)

    by oodaloop (1229816) on Saturday August 02 2008, @04:33AM (#24446137) Homepage
    The year of the Linux game console is here!
    • Sorry, you are late... it came when Linux got running on XBOX (1). See you on the next market area, because Servers, Desktops, WLAN's, Routers (networking) and Consoles "Year of the Linux on X" has already gone on those markets... Mayby next one is "Year of the Linux on Cars" or "Year of the Linux on Dildo"...

  • by gzipped_tar (1151931) on Saturday August 02 2008, @05:23AM (#24446267) Journal

    The 3-part article tells very little about PS3-specific hacks. Basically, the author was telling you how to strip the Fedora system so that it could run on the resource-limited hardware without being too slow. This includes stopping unecessary daemons, ditch GNOME for twm, and running the X server on another box (or getting rid of X altogether).

    This also apply to everything that Fedora can run on.

    I fail to see how this is related to ``developing on the PS3 under Fedora''. The article didn't say much about development. If by ``developing'' you mean compiling your code in Fedora running inside a PS3 (which is under a virtualized environment) may be you have some points. But this is not developing for the PS3 platform. This is developing for a virtualized Linux platform.

    • For that matter, the PS3 comes standard with a 4200 RPM drive, which means it's not a particularly enticing Linux environment to develop in no matter which distro you use.

      Nonetheless, even though it has a slow hard drive and only 256 Megs of RAM, there are some uses for Linux on the PS3. I live in a small valley where radio reception is virtually nil. I use my PS3 to play Shoutcast streams on my stereo when I'm not watching a movie on it.

      My preferred usage would be to run Pandora using the built-in browser

      • That's funny because the standard memory configuration for many early WinXP boxes was 256MB. Bought a laptop in 2003 whose standard config had 256MB with WinXP, Gateway 400SP plus.

      • For people to use it to develop an understanding that makes you comfortable about recommending purchase of QS blade servers, which have none of those limitations of the PS3.

        Howerver, I still want a good PS3 Myth frontend. I already have one that is on an AMD PC, but I would love to have one fewer device in the mix.

  • Out of date (Score:3, Informative)

    by sokkalf (542999) on Saturday August 02 2008, @05:28AM (#24446281) Homepage
    The FA is almost half a year old, and focusses on Fedora 7, which is EOL. Surely much must have changed since then, with Fedora 8 and 9, and probably other distros as well.
  • by synthespian (563437) on Saturday August 02 2008, @10:45AM (#24447989)

    Sony has payed the Yellow Dog Linux guys to port Linux to the PS3, so it's probably more optimized for it than Fedora (even though it's based on Fedora), for instance, by using the Enlightenment window manager.

    http://www.terrasoftsolutions.com/products/ydl/ [terrasoftsolutions.com]

    • Because that cheap ebay laptop can't play Oblivion. Neither can it play PS2 games at full speed. In fact, it might have problems with PS1 games.

      The Linux functionality of the PS3 is in addition to all the other things it does, more features, more bang for the buck.

      For instance, suppose a family has a PC, a lot of families have only one. Suppose they get a PS3, then they can install Linux on it and have two machines that can read e-mail. That means if the PC is occupied and someone needs to read/write a d

    • Why? Because of the Cell chip.

      If you still don't understand why, than you're not the kind of person who should buy a ps3 for Linux.