What did the Utopia bootdisc actually do?

Discussion in 'Sega Dreamcast Development and Research' started by dark, Sep 20, 2011.

  1. dark

    dark Dauntless Member

    Joined:
    Sep 2, 2011
    Messages:
    727
    Likes Received:
    107
    All the descriptions I find of it simply say "it lets you play import games" or "it will boot non-self boot ripped DC games"

    I get that this is what it does, but I'm looking for a description with some more granularity. Why does it allow for playing of import or non-self boot DC games. If I have a program compiled for DC, can I just burn it to a cd-r as a standard data disc with no consideration for format of the disc, and boot it with the utopia boot disc? Is the utopia program the same as the dreamcast system disc 2?
     
  2. alphagamer

    alphagamer What is this? *BRRZZ*.. Ouch!

    Joined:
    Jun 25, 2008
    Messages:
    3,255
    Likes Received:
    10
    This gives a bit of an insight:

    http://codeidol.com/community/gamedev/retro-hack-the-dreamcast/21080/

     
  3. Everblue

    Everblue Spirited Member

    Joined:
    Aug 29, 2011
    Messages:
    170
    Likes Received:
    0
    Interesting. But it doesn't explain why games 'copies' can be run even on Data/Data format instead of Audio/Data.
     
  4. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891
    The mil-cd exploit doesn't rely on the type of the first session, only in the fact that there's 2 sessions. Thus data/data and audio/audio are both feasible.

    Mil-Cd was designed to be audio/data though.

    FG
     
  5. dark

    dark Dauntless Member

    Joined:
    Sep 2, 2011
    Messages:
    727
    Likes Received:
    107
    The (sketchy) story I'd always heard, was that this mil-cd booting was unintentionally left as part of the bios from back when the DC was in prototype stage and people were testing out software on CDs.

    It sounds like the term exploit, which I've heard since 2000 for the mil-cd booting, is false in the sense that if retail SEGA mil-cds have bonus features like playing video or interactive menus, clearly they are booting non-bios DC code to run the videos/menus as the bios doesn't have these features by itself. In other words, it was no mistake that SEGA allowed the DC to have this feature.
     
  6. Lum

    Lum Officer at Arms

    Joined:
    Sep 30, 2010
    Messages:
    3,233
    Likes Received:
    42
    That could be. Music albums with DC bonus content isn't far fetched. IIRC PS2 and Xbox had DVDs of the sort.
     
  7. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891
    Mil-CD is an official cd-rom format made by SEGA that is nothing else than a music cd specially crafted to have some bonus when put inside a dreamcast. Some (around 10 IIRC) jap mil-cd discs have been released commercially.

    In fact it's a 2session audio/data cd with it's 2de session first 32kb (user data) being a modified ip.bin. When the DC detects a cd-rom, it checks if there's a ip.bin in 2de session first bytes, and if yes it boots the executable accordingly.

    However SEGA had put a protection in those discs to avoid easy piracy. The executables on the disc were scrambled (as opposed to gd-rom ones) and the gd-rom drive was completely locked up after the main binary was loaded. This was supossed to make it impossible to load a game without knowing the scrambling algorithm, and also impossible to launch game with more than one file; which isn't really practical for games. An unscrambled binary is directly loadable in memory, the "regular" way of booting gd-rom skips the scrambling thing.

    If the inserted disc is a CD-ROM, it follows the Mil-CD bootstrap, if it's a GD-ROM it follows the regular one.

    But somehow, some smartass figured out the scrambling algorithm and also figured out how to tell the Dreamcast to unlock the GD-Rom. This smartass implemented both routines in the ip.bin file that's the first thing to execute code from disc in the bootstrap.

    Utopia is a simple game loader that unlock the gd-rom and then loads a game from a 2de CD.

    In short, SEGA designed MilCD *roughly* this way:
    0) Mil-CD inserted
    1) Bootbin scrambled on disc
    2) Loading it into memory. Unscrambling it.
    3) Locking the gd-rom
    4) Executing

    And the Mil-CD exploit goes *roughly* this way (exploit steps are indicated by **)
    0) Mil-CD inserted
    1) Bootbin unscrambled on disc
    2) Loading it into memory. Unscrambling it. (This create non-working un-unscrambled code)
    **) Scrambling it. (back to unscrambled working code!)
    3) Locking the gd-rom
    **) Unlocking the gd-rom (GD hardware reset)
    4) Executing

    IIRC this explanation is correct, but it's been a while since I've worked into ip.bin stuff.

    I hope this clarifies this topic!

    Cheers,

    FG

    [EDIT]

    The part that *might* as been left from developpement bios is the ability to run code from ip.bin, rather than just blindly following the regular/milcd bootstraps according to the inserted disc type.
     
    Last edited: Sep 22, 2011
  8. dark

    dark Dauntless Member

    Joined:
    Sep 2, 2011
    Messages:
    727
    Likes Received:
    107
    Thanks! That was a really interesting read in layman's terms.
     
  9. l_oliveira

    l_oliveira Officer at Arms

    Joined:
    Nov 24, 2007
    Messages:
    3,879
    Likes Received:
    245
    I believe the point of allowing to run code from IP.BIN was to allow for the insertion of the Windows CE logo on the Licence display screen .... :thumbsup:

    Poor SEGA ... How such a silly mistake (well they were trying to be innovative and creative) could be their absolute ruin. :shrug:
     
  10. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891
    I don't think so, as the only thing to change to display a 3rd aprty logo is to change the logo from a blank one to a custom one.

    I *think* a logo is always loaded, but that most of the time it's only a blank one.

    FG
     
  11. l_oliveira

    l_oliveira Officer at Arms

    Joined:
    Nov 24, 2007
    Messages:
    3,879
    Likes Received:
    245
    When a Windows CE logo is used, the SEGA logo and license text changes position, getting pushed up a bit. I believe. :shrug:

    So no, not "blank logo" is aways shown.:shrug:
     
    Last edited: Sep 23, 2011
  12. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891

    I'm not quite sure about that, but I never verified myself. The point it they could have hardcoded the bootstraps in the final BIOS and made the coders forced to comply to a strict standard for the ip.bin. It'd have blocked modless selfboots.

    FG
     
    Last edited: Sep 23, 2011
  13. Druidic teacher

    Druidic teacher Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,643
    Likes Received:
    129
    x
     
    Last edited: Jun 22, 2017
  14. alphagamer

    alphagamer What is this? *BRRZZ*.. Ouch!

    Joined:
    Jun 25, 2008
    Messages:
    3,255
    Likes Received:
    10
    Guess why the PS3 is far behind in the current generation...

    Easy and early piracy is a system seller, no doubt. Best examples include the PS1 and PS2.
     
  15. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    Everyone I knew with a PS1 had it modded.

    If you buy a used PS1 its usually got an old 4 wire modchip in it.
     
  16. wombat

    wombat SEGA!

    Joined:
    Mar 14, 2004
    Messages:
    2,671
    Likes Received:
    319
    In most cases the companys dont make any money on selling the console, but compensate this with the sale of games and accessories. So if a console is easy to pirate, doesnt really do any good for such a company.. yes there are more units sold, but most of the time without any origional games!
     
  17. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    It does help you get a foothold however....

    I dont think the PS2 would have been the run away success it was, if it wasnt for everyone getting a PS1 (because they could pirate the shit out of it).

    I knew very few people with a modded PS2, even if their PS1 was modded before it.
     
  18. l_oliveira

    l_oliveira Officer at Arms

    Joined:
    Nov 24, 2007
    Messages:
    3,879
    Likes Received:
    245
    ^ This is what broke SEGA. :shrug:
     
  19. Melchior

    Melchior Rapidly Rising Member

    Joined:
    Jun 12, 2011
    Messages:
    79
    Likes Received:
    3
    I thought it was the CEO's choice that killed 'em. They decided it was "better" to make only software on someone else's hardware - The Dreamcast had plenty of life left in the platform when they canned it...
     
  20. Azathoth

    Azathoth Spirited Member

    Joined:
    Mar 29, 2011
    Messages:
    182
    Likes Received:
    4
    Unless my memory fails me all this happened right around the same time that both the Gameshark and Action Replay came out. I remember using a CD-R of an Action Replay demo disk that was distributed in a European magazine to boot import disks prior to the Utopia disk making its rounds.

    Was it ever established which came first? Did Datel (or Interact, bleem!, and whoever else) find this exploit first, or did they just use the existing information to make their own product?
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page