Slashdot Mirror


Linux on the Gamecube?

An Anonymous Coward asks: "Previously on Slashdot we have covered the hacking and programming of numerous consoles,- the Xbox, Dreamcast , and of course the Playstation 2. With Linux migrating to all of these platforms as fast as you can blink, why isn't it that I haven't heard anything about the Gamecube. These little beasts have been promoted by Nintendo as easy to develop for, so are there as yet any open source tools for Gamecube development? Are there any Initiatives to get an alternative OS on these systems? The feature of being able to plug a gameboy advance into one of these units makes them even more hack worthy." There was a Sourceforge project for this, but it's activity stats are fairly flat. What barriers are there in getting Linux to run on this piece of hardware, and how do they compare with the difficulties faced by similar projects on the X-Box?"

45 comments

  1. The main barrier is obvious... by darylp · · Score: 0, Insightful

    How can you burn a Linux CD-R that'll fit in the smaller drive of the Gamecube? Unless there's some way to hack the broadband adapter (is it out yet?) so that the machine can boot from a network image, there's very little chance of getting things to work.

    1. Re:The main barrier is obvious... by King+of+the+World · · Score: 1, Funny
      Informative? Here we have a poster that doesn't know whether the broadband adaptor is out yet and the only insight given is that the gamecube uses a smaller disk. There are no technical details. The gamecube uses a smaller disk.

      Amigas load off floppy! Sega megadrives load off carttridge... ergo I believe there's very little chance of getting things to work!

      Plus One fucking insightful!

      Look, the disk is just a plain ole' DVD (they didn't invent their own format) with the edges snapped off. It's just like those mini cds. There is nothing special about it.

      Please moderators -- just wait a bit, OK? There's no need to blow your load right now.

    2. Re:The main barrier is obvious... by Anonymous Coward · · Score: 2, Insightful

      They're proprietary mini DVD disks, not mini CDs.

      Moron.

      Mod me up as insightful...

    3. Re:The main barrier is obvious... by pauldy · · Score: 1

      Thats nothing check out some of this posters past +5 comments. Makes you wonder who really mods slashdot.

    4. Re:The main barrier is obvious... by DarkDust · · Score: 1

      Thats nothing check out some of this posters past +5 comments. Makes you wonder who really mods slashdot.

      More embarrasing is doing meta-moderation and all but one or two comment being rated as Off-Topic, Flame or Troll. The idea behind the rating system is to propagate good articles. Unfortunately there are people that like to try to "clean up" the bad things instead of rewarding the good things.

      But it could be worse... no meta-moderation at all, for example ;-)

    5. Re:The main barrier is obvious... by smatthew · · Score: 1

      actually it's not just a plain ole dvd with the edges snapped off. The spiral is reversed on the disks so unless you wanna mod the drive motor to spin backwards so it can read normal disks.....

      --
      slashdot username - at - email.domain.name
    6. Re:The main barrier is obvious... by Anonymous Coward · · Score: 0

      Gaaah. How many times do I have to hear this "the drives spin backwards" BS. The drives do not spin backwards. Open your gamecube and have a look guys.

      Graf

  2. Impossible by Apreche · · Score: 5, Informative

    It is 99% impossible to get software you wrote to run on the gamecube. The problem is that Nintendo, being smart to avoid piracy, always uses a proprietary media format to put games on. The Gamecube's OS doesn't do much but run games. It looks for discs and runs them.
    You CAN'T make a Gamecube disc without Nintendo's help. It's a small DVD that spins the opposite direction. Nothing you can buy can make one of those.
    The Gamecube will have a broadband adapter, but you can't make it boot from that. It also has no hard drive, so where are you going to store all the data? RAM?
    The best bet is to explore the possibilities of the GBA link. You can make a GBA game. And you can store some data in the GBA cartridge, but not much. If the Gamecube will run and begin playing from a linked GBA the BEST you could do is have 4 GBAS with 4 different cartridges be your hard drive/boot device. Then use the broadband adapter and your computer to control everything.
    All in all, even if you could make a gamecube disc, the cube isn't very useful for anything other than playing gamecube games. And codwarrior will eventually have a dev kit. So if all you want is to make games, I'm sure Nintendo will be happy to make discs if your game is extrememe high quality.

    --
    The GeekNights podcast is going strong. Listen!
    1. Re:Impossible by Glytch · · Score: 2

      Makes me wonder if those GBA compact-flash adaptor cartridges might be useful for this kind of project. That is, if the company that makes them hasn't gone out of business yet.

    2. Re:Impossible by AnalogBoy · · Score: 1

      I guess this means those talented developers are free to write linux that runs on my Five-Star Mead Notebook.

    3. Re:Impossible by Rambo · · Score: 2

      And codwarrior will eventually have a dev kit.

      Actually, CW already has a dev kit out for the cube. Unfortunately it's only the software portion that they sell, which is completely useless without a GC dev station (try getting even a picture of one of these!). The only way I can see getting anything but games on the GC is via a modchip which will at least allow booting off of mini-CDRs.

    4. Re:Impossible by ianpatt · · Score: 2, Interesting

      The gameboy link isn't that helpful either. The GameCube doesn't actually boot from the GBA, it just uses the link cable to send data back and forth.

      I see two major possibilities:
      * Using either the GBA link cable or the ethernet adaptor to do a buffer overflow, using a small loader stub as the payload. Once you have the loader stub running on the system it would be possible to upload and run whatever you want.

      * Taking advantage of the GameShark. Once InterAct finally releases the thing, changing memory on the GameCube live will be much easier. If they add a computer connection port like on the Saturn Pro Action Replay, then Linux on the GameCube will become an exercise in reverse-engineering. Of course, this is easy on the Saturn: the cartridge port exposes the main CPU bus, but.. I'm still hoping...

    5. Re:Impossible by ianpatt · · Score: 2, Interesting

      > try getting even a picture of one of these

      Like this?

    6. Re:Impossible by Anonymous Coward · · Score: 1, Informative
    7. Re:Impossible by dimator · · Score: 2

      I agree with your points, but you must admit, the same "impossiblity" has been claimed for previous systems too. :) Someone will figure out a way to do it sooner or later. If not linux, then at least some kind of home-brew dev'ing of some type.

      --
      python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
    8. Re:Impossible by xchino · · Score: 1

      If the CD spins backwards, and reads data in reverse, why shouldn't you be able to write the bitstream in the order it will be read? Unless it reads from outside to in, this seems feasible. And as far as your point of where the HDD would be, several distrobutions load a run completely in a ram drive, and still more are able to run as live CD's.

      --
      Everyone is entitled to their own opinion. It's just that yours is stupid.
    9. Re:Impossible by Gizzmonic · · Score: 2

      Nintendo is not rich enough to mass manufacture its own DVD mechanisms. I'd bet my wife that the Gamecube DVD drives are just stock Panasonic DVD mechanisms in smaller packages, with a firmware or program that tells them which way to spin.
      Compare this to the Dreamcast which used a proprietary "GD-ROM" technology which was considered immune to piracy. Dreamcasts were actually made of stock Yamaha CD-ROM mechanisms. Of course it was cracked about 7 months after the DC's US launch. Hackers just made a program that allowed them to access the program as a normal CD-ROM.

      --
      (-1, Raw and Uncut is the only way to read)
    10. Re:Impossible by AftanGustur · · Score: 2
      If the CD spins backwards, and reads data in reverse, why shouldn't you be able to write the bitstream in the order it will be read?

      Metadata ! You don't control the Metadata ! The writer does .. (Checksums start/stop bits on the media ) So even if you reverse your program bit for bit and write it on the disk, the reader won't find itn because the checksums won't work..

      --
      echo '[q]sa[ln0=aln80~Psnlbx]16isb572CCB9AE9DB03273snlbxq' |dc
    11. Re:Impossible by Quila · · Score: 2

      They appear stock. Disassembly showed that although the drive plays the small discs, the laser pickup has enough traversing room to read a full-sized disc.

    12. Re:Impossible by steveroehrs · · Score: 1

      Just make sure you order an Australian (or other southern hemisphere country) version, which must spin in the opposite direction to the US/European versions due to the coriolis force.

      And you thought that DVD region coding was just a few bits! Do you know how hard it can be to get backwards DVD's sometimes?

    13. Re: imPOSSIBLE by Cyn · · Score: 1

      Indeed - we can't control the metadata itself - we'll just have to determine a way to write the metadata itself backwards as well. Brilliant.

      Oh, gee look - we can just make it spin the opposite direction, how painstakingly obvious it is to just reverse the direction of the spinning and viola - normal dvd reading, small form factor. A simple switch on the side and we can change which direction it'll spin. Granted it's a hardware mod, but hardly damaging to the unit itself or particularly difficult (not like soldering an ide header and micromotherboard to the beast just to "get booting" as it were.

      Now, if it still uses some fancy proprietary format on top of that we still need to be writing in that format.

      --
      cyn, free software and *nix operating systems enthusiast.
  3. Easy? by jacoberrol · · Score: 2, Informative

    Yes, I have heard that the Gamecube is easier to develop for, but that doesn't necessarily mean it will be easy to port Linux. It just means that the Gamecube has a nice API sitting on top of whatever OS they have running it, which makes programming games nice. Since the hardware is proprietary and documentation is not widely available I would imagine it is damned difficult to port Linux to the Gamecube.

  4. Panasonic Q by Anonymous Coward · · Score: 3, Interesting

    Speaking of using strange media, Panasonic has licensed the gamescube engine from nintendo, and created something called the "Panasonic Q" (this has been covered on slashdot), that seconds as a DVD player. This is probably the best place to start seeing as how you can get fullsize cds and dvd into the drive. As for the part about the gamecube discs spinning backwards, that's a bit more difficult to address.

  5. what's in this GameCube anyway? by 68k+geek · · Score: 0

    hardware wise, that is. does it have a PPC CPU?

  6. Who cares about the game cube? by Anonymous Coward · · Score: 2, Funny

    What I want to know is has anyone hacked that damn Volvo and got Linux running on it?

  7. sourceforge? by Anonymous Coward · · Score: 2, Funny

    A SourceForge project without any activity?

    Now I've seen everything!

  8. Hm... know what I'd do if I had a gamecube? by Wakko+Warner · · Score: 4, Insightful

    I'd probably just play games with it.

    Linux on my computer, where it belongs.

    Games on my Gamecube, where they belong.

    What is the point of anything else?

    - A.P.

    --
    "Remember when the U.S. had a drug problem, and then we declared a War On Drugs, and now you can't buy drugs anymore?"
    1. Re:Hm... know what I'd do if I had a gamecube? by Anonymous Coward · · Score: 0

      Linux hackers like using their time for stuff like this, instead of doing useless things like creating a linux distro for the average person.

    2. Re:Hm... know what I'd do if I had a gamecube? by cornflux · · Score: 1
      <tongue-in-cheek>

      Let me get this straight...

      You have a Gamecube, which you've purchased with your hard-earned money, so you can play games on it.

      You have a Gamecube so you can play games. Ok, I'm with you so far...

      You have a computer, which you've purchased (or, more likely, self-built) with your hard-earned money, so you can run Linux on it.

      You have a computer so you can run Linux. Ok, I think I've lost you, here... that's your application? Sure, Linux is fun... but I don't know if that would be the reason I'd have a computer.

    3. Re:Hm... know what I'd do if I had a gamecube? by dimator · · Score: 2
      --
      python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
    4. Re:Hm... know what I'd do if I had a gamecube? by xinu · · Score: 2
      look it up

      Then again I haven't used Linux in quite some time just becuase I found myself doing nothing but hacking instead of be productive. So don't mind me.

  9. Another hacking option by rrwood · · Score: 2, Interesting
    A couple people have pointed out that the GameCube media is highly proprietary (size, data format, rotational direction), and that the likelihood of creating one of these disks without Nintendo's support is pretty slim.

    Another possibility I've wondered about is just removing the drive and hooking up a drive simulator. Building the hardware to simulate the electrical/data behaviour of the drive would be non-trivial, but probably still possible, no?

    Anyone care to comment on that idea?

    -Roy

  10. easy peasy by paradesign · · Score: 2
    considering the GC is just a an IBM PPC chip similar to the popular G3 PPC chip, and an ATI gpu that i heard was supposed to be on par with the 8500 chip, it should not be terribly difficult to modify existing Linux PPC code that runs on a B/W G3 with an ati card. Since the IBM chip does not include AltiVec and since Linux PPC dosent support it (i dont think) the existing code should be close.

    of course the only difficult part will be the media. couldnt you reverse the polarity on the platter motor of the CD burner to make it spin the opposite way while burning? is the data being written dependant on the direction of travel of the disk? i thought it was just a stream of data to the laser and a spinnind disk (horribly simplified, but...). the panasonic Q offers support for full sized media so that shouldnt be to big of a problem.

    As it appears to me there was more standing in the way of linux on the DC. GD ROM format wasnt exactly standard.

    do i think well see it, i hope so. Do i think we'll have reversed engineered software legaly running on the xbox first, yes.

    $.02

    --
    I want 2D games back.
    1. Re:easy peasy by ianpatt · · Score: 1

      A large amount of custom code will still need to be written to support the unique hardware inside the GameCube. This is not as easy as you assert. For example, let's take the graphics chip. Since ATI is not very open with the register-level specifications for their hardware, LinuxPPC only supports ATI cards in framebuffer mode. I'll bet that since no game would be using simple VGA-style hardware access, support for this mode has been removed from the chip.

      Linux for Dreamcast was possible because the Dreamcast also reads and boots from standard data CDs without a problem.

    2. Re:easy peasy by Anonymous Coward · · Score: 0

      The gamecube does ***NOT*** spin discs in the opposite direction. I can not believe how many people think this... possibly the biggest bit of misinformation I've ever heard. Just boot up your gamecube and put a disc in, start it up, and open the lid.

      The gamecube disc is a *standard* mini-DVD disc. You can buy them anywhere that sells them (many online retailers). Say "proprietary" all you want... but you'd be surprised as to how much money it costs to *truly* develop a proprietary solution to a problem, as opposed to customizing or using an off-the-shelf product (like mini DVDs).

      There are not any homebrew devices for creating unlicensed gamecube content yet, as far as I know. So right now, if you wanted to port linux or anything else, the only option is to obtain a gamecube development kit, which are only distributed to official nintendo licensees (and even then, for a huge price ;)

      Probably what will happen is this:
      1) People will finish the work that has been started to run pirated games on the gamecube
      2) If the gamecube does not have any media checks or security checks, you can just burn stuff to mini-DVDr's and *hopefully* it will just work.
      3) If the gamecube does have media or security checks, most likely a modchip will come out for it. At that time, games will be cracked and released, people will release stuff, etc.

      Right now though, there is just not enough "happening" with the gamecube for people to bother.
      A gamecube "scene" will probably start up when games start to be pirated. Like it or hate it, that will be the truth.

    3. Re:easy peasy by Natchswing · · Score: 1

      > couldnt you reverse the polarity on the platter motor of the CD burner to make it spin the opposite way while burning? The disc itself is a spiral of places to burn bits. The disc is not a perfectly isotropic field of space where the burner decides where to make tracks - it has a specific groove it has to follow.

  11. No OS by Anonymous Coward · · Score: 0

    Real games systems do not use a real OS. Just a lib to link to.

  12. It was a lot more fun and ironic... by finity · · Score: 1

    to put something Microsoft hates on their own systems. Sony doesn't have any reason to hate open source tools, and is therefore cooperative.

  13. it's already been done by Spectr3 · · Score: 1

    Rich, "Lowtax" Kyanka and The SA LinuXbox Team has acquired the proverbial powerup and won the game. Now, the SA LinuXbox team is eagerly awaiting their $200,000 paycheck for their monumental achievement.

    Instructions for installing Linux on your very own Xbox can be found at Project: LinuXbox.

    This isn't too surprising, however, given that the Xbox has been around for centuries. I submit my proof of that fact with Exhibit A and Exhibit B

    1. Re:it's already been done by Spectr3 · · Score: 1

      ummm....wrong console. Nevermind. The real point is that Xbox is 1337!!!!

      3iLL G4te5 designed the Xbox to run lunix and staroffice and gmip and gnu and gcc will compile halo for linux on the Xbox.

      !!!!!!!!!!!!!!!!!!!!!

  14. Computers suck. by bill_mcgonigle · · Score: 2

    Really, they cause all kinds of problems, and if the disk is writable, it will eventually be hosed by the user.

    A GameCube running linux with a read-only boot drive and a cable modem is what most people need for a computer. Used to be called a Network Computer, but went out of fashion because people didn't have cable modems.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  15. It's a boot sector on layer 2 by yerricde · · Score: 1

    The spiral is reversed on the disks so unless you wanna mod the drive motor to spin backwards so it can read normal disks.....

    Neither the Xbox nor the GameCube spins discs backwards. The fact that their DVDs appear to have a reversed spiral is entirely because their boot sector is on the second physical layer of the disc, which goes from outside to inside, even on a "normal" DVD.

    However, somebody may be able to find a loophole to boot mini-CDR's on gcn, possibly put in for debugging purposes a la Dreamcast.

    --
    Will I retire or break 10K?
  16. Xbox has an OS by yerricde · · Score: 1

    Real games systems do not use a real OS.

    Xbox games run Windows XB, which is a stripped-down version of Windows 2000. Some Sega Dreamcast games had Windows CE for SH4 on them.

    --
    Will I retire or break 10K?
  17. Dev kits by cubist5 · · Score: 1

    I believe the development kits that many developers have recieved contain gamecubes with cartridges, because they cannot burn their own discs to test them. Maybe a cart gamecube could be built that we can use.