Slashdot Mirror


Strong Hints On Flashing Your Xbox

customsex writes: "bunnie has written a nice one with pictures documenting his adventure flashing his bios on his xbox. check it." His page also points you to the Sony vs. Connectix case regarding reverse engineering of hardware.

34 of 219 comments (clear)

  1. Phone message: by mESSDan · · Score: 5, Funny

    That phone message was pretty funny, the x-box guy sounds pretty nervous/antsy. "We'd uh, like you to remove that rom image, and uh, call us when you do. Or call me and uh, we can talk about it."

    One cool thing to note is that this wasn't a lawyer calling him, it was one of the x-box dev guys.

    --

    -- Dan
    1. Re:Phone message: by dattaway · · Score: 3, Funny

      From the tone of his voice, I could imagine there were a few people standing behind him and coaching what he was going to say next.

  2. Hardware hackers only by Alien54 · · Score: 4, Insightful
    You need the following to do this: tongs-style soldering iron (to remove the existing flash device), a fine-tipped soldering iron, a microscope, flux, and some solder paste is always nice, but you can use just plain old fine solder too. If you don't have tongs-style soldering iron, you can just cut the device off the board if you have extras laying around (presumably you also have a ROM burner--I use the Needham's Electronics EMP series) or you can build your own (I built an improved version but I haven't got the docs on the web yet...)

    So it looks like hardware hackers only with the appropriate tools and skills.

    There was also this tidbit:

    If you are looking for the FLASH ROM contents of the XBOX, you won't be able to download them even though I've extracted them. I got a call [recording edited to protect sensitive info] from Microsoft within 12 hours of posting this page regarding the binaries...

    Sounds like MS is on the ball on this one, as far as protect their hardware secrets.

    --
    "It is a greater offense to steal men's labor, than their clothes"
    1. Re:Hardware hackers only by shd99004 · · Score: 3, Insightful

      Companies keeping their secrets does not restrict free speech... if that's what you're saying it does?

      --
      Will work for bandwidth
    2. Re:Hardware hackers only by Animats · · Score: 3, Informative
      So it looks like hardware hackers only with the appropriate tools and skills.

      It's more of a tools problem than anything else; removing surface-mount devices without damaging anything requires either a desoldering device that can heat up all the pins simultaneously, or a very fine pointed soldering iron and lots of patience. The original author is at MIT, where there are lots of people around who do hardware. That helps.

      From an intellectual property standpoint, Microsoft can't object if you replace their ROM contents with something else, like a boot loader for Linux. Something like OpenBIOS.

  3. Microsoft at their best by torqer · · Score: 4, Interesting
    The XBOX keeps "multiple versions of the BIOS around in case different games rely on features or even bugs found in previous BIOS versions."

    man pretty smart of microsoft to realize their own mistakes may be required in games

  4. Reverse torture by imrdkl · · Score: 3, Funny
    I'll sacrifice a GC for the sake of curiosity and dissolve the package with hot sulfuric

    I have no idea what a GC is, but I imagine it's in alot of pain. Isn't there a more humane way of doing this?

  5. Is it illegal overseas? by Guysdrinkingbeer · · Score: 3, Interesting

    I understand that posting the ROM image is illegal in the states, but does that apply to Europe or Russia or even China? I know that the Xbox is not in release in those places yet but should not stop a small email attachment of the image making it's way overseas and winding up on a web site. Just wondering. Thanks.

    --
    Great people don't need people to complete them, great people complete other people. -- Matthew Pawlikowski.
  6. Doesn't MS lose money on every Xbox? by Anonymous Coward · · Score: 4, Funny

    And make money on every game to make up for it?

    So, let's all buy an Xbox, convert it to running Linux, and come up with a cool open source development environment to build our own games.

    We can destroy MS and get a good gaming console out of it at the same time. :)

    I would also love to make a C64 emulator CDROM with about 500 old games and a nice menuing system to select which games to play, and make the save and load work from all the games as well.

    A system like the X-box would be great for that.

  7. "Flashing" an XBOX? by bnitsua · · Score: 5, Funny

    Do we really need to post a story everytime some guy plays Halo naked in front of his television?

  8. A possible step forward in Xbox emulation? by xiangpeng · · Score: 3, Insightful

    I was just wondering that if the dumping of the rom will actually help in the emulation of the XBox, since everyone can now examine the bios. Most instructions can be emulated easily as they are similar to PC instructions, UMA can be examined closely too :)

    --
    You must defeat Sheng Long to stand a chance.
  9. Erm, no. by Anonymous Coward · · Score: 3, Informative

    "...documenting his adventure flashing his bios..."

    The story is about his adventure *removing* his bios. It's interesting - you might want to read it.

    1. Re:Erm, no. by Bozar · · Score: 3, Informative

      he did flash the bios. He took an image of it and re-wrote it over itself (when he thought he had the wrong image, i dont understand why he would want to destroy the original this way but whatever) and then re-inserted it. That's flashing the bios. He removed it to flash it cuz asking the XBox to flash its bios nicely seems ineffective... Its a nice story, you might want to read it.

      --
      Free as in *BUUURP!*
  10. Long-term benefit by smittyoneeach · · Score: 5, Interesting

    Recall reading the Wired article about the XBox, where they mention that its initial $300 dollar price will be driven down to around $100 as soon as possible.
    Sorry about the low end of the computer market, but it'll be cool when you can drop a grand, pick up a ten-pack of them, and construct your Much-Ballyhooed Beowulf Cluster (MBBC).
    Maybe one day /. itself could run on such an installation. Feel the irony.

    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
  11. The point? by SilentChris · · Score: 5, Interesting
    I'm not entirely sure I see the point of this exercise. Bear with me. I can see upgrading the drive cables or trying to solder on extra memory for performance reasons (as some people have done), but flashing the BIOS of the XBox seems to be a pointless exercise. First, you need to have pretty strong hardware knowledge -- it's not something that's going to be "mod chipped" in the future. Secondly, and more important, apparently the BIOS is heavily encrypted and/or compressed, so (if Microsoft used its noodle) it will be extremely difficult to retrieve.

    As opposed to hacking an XBox to use Linux (which I agree is a noble pursuit, if not flawed), why not find a cost-effective way to make a "LBox" out of cheap hardware. Put a penguin on the cover or something.

    Me, personally, I bought my XBox for playing games and DVDs, like most people. I love fucking around with hardware myself, but this thing is a toy to be played with and enjoyed for me, not a job.

    1. Re:The point? by SpinyNorman · · Score: 5, Insightful

      You could never make an "L-box" as cheap as the X-box because the beauty of it is that it's subsidized hardware! Every X-box subverted to another purpose not only deprives Microsoft of razor-blade revenue, but actually causes them to lose money!

      If X-box can be made to run Linux, then it would be an excellent base for an open source Tivo!

  12. Could Bios be replaced with LinuxBios by bug1 · · Score: 3, Insightful

    If the xbox BIOS was replaced with LinuxBIOS then that shouldnt that bypass any other protection they put in software.

    linuxBIOS project http://www.acl.lanl.gov/linuxbios/

  13. Re:running things for different platforms by dreamquick · · Score: 4, Insightful

    Hmm X-Box games on a PC?

    You will not see that for at least a year. There are a few reasons:

    1) X-Box is a product - if i can play the games elsewhere why should i buy an x-box? e.g. Halo looks like it rocks, and if the only place i can play it is on an X-Box then that means i have to buy one if i want to play it.

    2) X-Box is an appliance with a roadmap already laid out for it - if i remember the goal is to get it to become a home multi-media station, if you give people a reason not to buy one then you risk losing a market segment.

    3) Assuming a 3rd party does this then they will be sued to hell and back by MS - this guy got a telephone message within 12 hours for releasing something only the most techie of people would have a use for. What do you think they would do if/when someone releases an emulator.

    I suggest a year simply because after this people and the company will see exactly who won the console war - if anyone, if it is the x-box that won then you can release an emulator in the hopes of getting people hooked and eventually buying a console.

    If the x-box didn't win then you release an emulator to keep the devolopers happy that they can still sell games.

    The only problem is if it all ends in a draw between X-box and another console - in that case you want to produce the best games you can and make sure you can only play them on your machine!

  14. Sure, you can hack an X-box by multiplexo · · Score: 5, Funny

    But I'm waiting for someone to hack the new Maytag Neptune washer and dryers, the ones with the 4" plasma touch screen. I want one that will run Linux and play DVDs while I'm doing my laundry. Or actually if I had the washer and dryer I could have one running Linux and the other serving as a game/DVD console, and I could wash my clothes.

    --
    cheap labor conservatives - they want to keep you hungry enough to be thankful for minimum wage.
  15. The Russian bloke broke no laws by DABANSHEE · · Score: 3, Informative

    He was in Russia when he was alleged to have broken the law.

    The only problem is the US (plus France, Belgium, Israel & a number of other countries) hve a bad habit of enforcing their laws extraterritorily

    IE, outside of their juristiction, like putting out warrents for Columbian & Burmese drug smugglers who have never been within US juristiction (IE the US, or within the US 12 mile line or on a US registed plane or ship in international waters) & thus have never been legally obliged to comply with US laws.

    Its a similar case with that Russian coder, even though he was arrested while visiting the US, he was charged for actions taken while he was in Russia, so it was impossible for him to break US laws.

    Traditionally there's only 2 charges that can be enforced extra-territorily, but only on ones own citizens - Piracy on the high seas & treason.

    Not that it'l make any differances, prosecutors & judges never skip a chance of setting precedents that increase their juristiction.

    Mind you it shows how hypocritical the US & Israel are for complaining about Sharon (an Israeli) being indicted in a Belgium court for war crimes that occured in Lebanon.

    Because it was Israel & the US that set precedents that led to that Belgium law - look at Israel prosecuting a German for what happened in Germany.

  16. Re:running things for different platforms by JWhitlock · · Score: 5, Insightful
    Conversely, when will someone get me a program that will let me play DOA3 or other xgames on my PC? I wouldn't think that would be too hard. I think MS should even support it because if we can buy a program to let us buy and run games on our PC, they don't lose money on each console sold.

    This is not a bug, it's a feature.

    XBox = DirectX, known version, known platform, known hardware, soon-to-be-discovered bugs, soon-to-be-discovered optimizations, etc. etc.

    It's a game developer's Nirvana, to only have to code for one platform, knowing that the way it looks on your development system is exactly how it will look on the buyer's system. No unexpected incompatible drivers. No hardware conflicts. No performance bottlenecks on strange systems with cheap-ass components. No Packard-Bells.

    It's like asking why the clothing industry can't make a good-looking pair of one-size-fits-all shoes.

  17. Congrats to Microsoft! by Ndr_Amigo · · Score: 3, Interesting

    I know it's an odd thing to say, but I would like to congratulate Microsoft on (unusually!) actually being half-decent. Listening to the phonecall, whether he was coached or not, I would congradulate Mr. Thompson on not being a smeghead and actually NICELY asking for the image to be removed.. without threatening legal action over some obscure EULA clause for looking at the motherboard or something :)

    1. Re:Congrats to Microsoft! by Fat+Casper · · Score: 3, Insightful
      You need to look at where MS was going with being nice. If being nice removes the image, fine. If it doesn't, being able to tell the judge "we asked him very politely" will carry a lot of weight. That's something that they would need, considering that any law he might have been breaking would be a very flimsy one that would only apply to him if the court wre already convinced that he was a nasty bad hacker.

      Microsoft wasn't being nice so much as being intelligent. It's a shame they don't put the formidable powers they do have into making good products. If they did, I wouldn't have had to learn half of the computer stuff I know.

      --
      I spent a year in Iraq looking for WMD and all I found was this lousy sig.
    2. Re:Congrats to Microsoft! by SkOink · · Score: 3, Insightful

      I don't know if I'd say they were being nice so much as they were worried. If they pissed the guy off, I've got a hunch that copies of the ROM would begin to 'appear' all across the internet.

      --
      ---- I'll take you in a Hunt deathmatch any day.
  18. Harddrive by omega9 · · Score: 5, Informative

    This gets on topic towards the end:

    Correct me if I'm wrong, but I understand that the HDs in the Xbox are standard IDE drives. I've also read that people have attempted to chain the drives into their PC's IDE loop and mount them, but have been unable to because of a prop filesystem. Seeing as how the drives are 8-10 GB, what if you were to dd if=/dev/xbox of=/spare/drive bs=1024 to a spare drive >10GB (to hold the info). This way you don't damage your Xbox drive and you have a copy of it to play with. The reason?

    I have worked with proprietary systems in the past that were (more or less) similar to the Xbox, in that they used standard PC hardware and theory but needed to be secure from hardware "hack" attempts. Microsoft has had the tools to do something similar for a while. Reports state the Xbox is using a W2K kernel. The most associated filesystem with W2K is NTFS. With NTFS it's possible to create an encrypted filesystem. Now, if you wanted to handle the de/crypt as fast as possible where would you put it? In hardware.

    Take it a step further. Instead of adding extra de/crypt hardware to the mainboard why not consolidate a little bit more and take it straight to the I/O, that is the BIOS. Perhaps the HD is using an encrypted filesystem that is being handled directly by the BIOS. This would make some sense, since a software part could be broken all to easy. This also protects all components equally. Replace the BIOS and you can't read the HD, replace the HD but the BIOS can't read it (which has been proven).

    I venture that if you were to hammer out the details of the filesystem it would provide insight into the working of the BIOS. The sour part of this is that we already know it can be done (to some extent) because we have seen shots of MAME running on Xbox hardware. Though, perhaps that was under different rules since it was an SDK kit.

    --
    I'm against picketing, but I don't know how to show it.
  19. XBOX MAME by timbong · · Score: 3, Interesting

    Someone already made an XBOX MAME emulator that supposedly runs at 60fps. However he cant release it because of legal restrictions and it only works on the developer xboxes now. His website is http://www.otakunozoku.com/xbox/

  20. NOT different versions of the BIOS by Namarrgon · · Score: 3, Insightful
    No, "there are in fact four identical 256k copies of the ROM image in the 1 MB flash ROM." - not multiple different versions of the BIOS.

    It's entirely likely MS may revise the BIOS at a later stage, for fixing bugs - if it turns out to be necessary. All console makers do. So long as you don't change the external functionality at all, that's fine.

    But what the article was saying is that this is a reasonable move by MS, to increase robustness in the possible case of field flash rom upgrades, or even if multiple versions of the BIOS might be required. I'm sure MS are very aware that the latter case is not a desirable one.

    Come to that, I doubt that "flash ugrades in the field" are even possible, let alone planned, or the author probably wouldn't have had to replace the ROM at all. It'd be a major security hole, if you could do that! :-)

    --
    Why would anyone engrave "Elbereth"?
  21. ... um by fldvm · · Score: 3, Funny

    I hope this guy did not buy his xbox from CompUSA because I think he may have voided his
    $30 two-year warranty

  22. Re:Game Ratio important by DrEldarion · · Score: 3, Insightful

    That ratio is mostly due to the fact that basically everywhere FORCED you to bundle games with the system.

    -- Dr. Eldarion --

  23. Harddrive is ATA password protected by Namarrgon · · Score: 5, Informative
    That's not so easy. The HD is locked by a password, as provided for by the ATA spec. It's not the filesystem that's the difficulty.

    What you can do is power the HD with a cable from a PC, turn on the PC then the Xbox, wait till the Xbox firmware unlocks the drive, does what it has to do, then goes idle.

    Then you turn off the Xbox (drive stays powered), carefully unplug the IDE cable & attach it to your PC's IDE controller instead. Rescan the drives & you should see it AND be able to read from it. Some info here, and elsewhere on those forums.

    Reportedly, the filesystem is a variant on the good old FAT, and not even encrypted. There are some differences, but apparently nothing too challenging (but it won't mount as an ordinary FAT partition, of course).

    Executables are signed, and modifying the exe invalidates the signature, so that won't be easy to get around. Perhaps replacing the BIOS would help, but you'd want to find out the HD password first...

    And yes, the MAME port was done on an SDK kit, which is much more open of course).

    --
    Why would anyone engrave "Elbereth"?
  24. Why flash the ROM? by Ungrounded+Lightning · · Score: 4, Informative

    All we need is one person to create an X-box game that just flashes in a Linux BIOS and can boot a linux image from CD.

    Why bother flashing the ROM?

    Just reverse-engineer its contents sufficiently to see how it loads from the CD. Then make a new LILO version-or-replacement that will boot linux (and other stuff) on the X box - perhaps with a soft BIOS under it and/or suitable modifications to certain linux modules that use BIOS services.

    The only way I can imagine this failing is if the BIOS runs the entire game in protected mode with no way to subvert it.

    Of course flashing the BIOS ROM is cleaner when you're done (except that you can't run the games anymore.)

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
    1. Re:Why flash the ROM? by Ungrounded+Lightning · · Score: 3, Interesting

      The only way I can imagine this failing is if the BIOS runs the entire game in protected mode with no way to subvert it.

      Well, actually I can see one way it could fail: If the BIOS uses asymmetric cryptography to see if the game is signed by Microsoft's private key and refuses to run it otherwise.

      But that would also break the "game that flashes the ROM" unless you can get Microsoft to sign it.

      Or break the asymmetric cryptography. B-)

      --
      Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
  25. Another XBox presentation by naoursla · · Score: 5, Informative
    Microsoft recently gave a presentation at my school on how the XBox works. I don't know how much of this information is available elsewhere, but here is what we were told:

    DVD is not included because it would have cost $8 more per box. They decided to let the people who wanted it pay for the license. The DVD codec is stored in the dongle.

    The controllers are big because printing smaller circuit boards is expensive. There is a Japanese controller that about half the size of the US controller and they said it would work on the US version.

    A guy named Horace designed the logo (he's also done branding work for Nike) and working on the branding. The first concept sketch was done with a green highlighter marker. The color stuck.

    The XBox allows ripping of CDs into 128 bit using WMAC codec. The CD tracks can be used to replace game music streams (perhaps by choosing a radio station in your racecar). Volume level is normalized when ripping CDs.

    The strategy for the XBox is to provided ease of development. Single platform. No plans to upgrade since that would destroy ease of development.

    The XBox uses an extremely stripped Win2K kernel. The original was something like 12MB. The stripped version is around 28kb (I didn't get the exact number). When the XBox boots, the kernel is running in ring 0 and nothing else is running. The game loads all of the remaining libraries. A game could also use completely custom libraries.

    No dynamically linked libraries. All libraries are statically linked into games during development. Driver upgrades will only be on new games to prevent DLL incompatibility hell.

    The XBox has "strong security". They do a lot of tricks to make sure that you cannot hack the box (regions, copy protection, unauthorized software). A comment was made about unsoldering three chips. Microsoft does all production of disks and all games have been 'encrypted' to run on the XBox. It sounds similar to the DVD encryption, but Microsoft is holding all the keys so that they do not leak.

    The developer talking to us said he would like to see Linux running on the box, but thought it unlikely that anyone would get past the security schemes.

    They said that no mouse or keyboard would be released. "Not a Trojan horse".

    The hard drive has three 700MB partitions that are allocated to the three most recently played games. These partitions are used to cache data from the slow DVD drive. After loading onto the drive, subsequent loads will be must faster.

    4.5 MB are allocated for each game to store persistent world data and save games. For example: If you crash into a coffee store in a driving game, the next day you play the windows might be boarded up. A few days later the store has a "Closed for Repairs" sign on it. These world details would be up to the game developer to implement of course, but the potential is there.

    Ethernet is enabled out of the box for local networks. The presenting developer was aware of software allowing internet play and seemed happy about it. Microsoft has an online program in the works where you will be able to get software updates for the XBox. Something was said about providing emulators and MAME was mentioned.

    Graphics chip is a custom nVidia GeForce3 chip. It is slightly older and probably slightly slower that current consumer chips, but the standard platform will allow games to be much faster since code can be optimized for the standard platform that they are not going to change.

    They will release a voice-peripheral with hardware compression that plugs into the controller. This could be used in multiplayer games like Halo for communication. This was described as a work around for not having a keyboard.

    The Devkit does not have the security lock on it (which is why MAME was only on a Devkit - I don't think we'll be seeing a consumer version until MS authorizes it). The Devkit has a 9GB hard drive that acts as a DVD simulator. The developer downloads their executable to the hard drive then reboots and the XBox loads it. It can simulate DVD load time too. There is an extra serial port on the Devkit, which is used for kernel debugging. There is also a way to set the game region. The game region might be software settable on the consumer boxes too.

    There is a 64MB memory limit. The XBox will crash if this is exceeded. More memory will not be available in the future.

    System menus use a vertex shader to do green x-ray effects. The entire vertex shader is stored on the GPU and only polygons are sent to the card once the shader is loaded.

    DOA3 has the best 3rd party utilization of the XBox and it uses pixel vertex shaders.

    Halo has 8 texturing passes. One of the MS developer beat Halo on the hardest level using only pistol whip.

  26. Re:Game Ratio important by nathanh · · Score: 3, Insightful
    There was a press release from Nintendo the other day and it spend some time talking about the 1.9 Games to Console ratio they obtained. A few days later MS announced that they had the best ratio ever recorded for an initial concole launch of 2.4.

    Many stores were not selling the X-Box standalone. You had to buy the X-Box plus 2 or 3 games as part of a bundle. There is rumor that this bundling was an edict by Microsoft before a store was allowed to sell the X-Box. WIRED ran an article discussing how EB, ToysRUs and Gamestop were doing nothing but bundles, much to the annoyance of their customers who didn't necessarily want all the games in a particular bundle.

    This number is important and the game developers are not fools. They have been in this arean much longer than MS and knows the deal.

    It strongly looks like MS knew the deal and has been loading the deck to give themselves a better hand. Golden Rule #1: Never Let Microsoft Deal The Cards.