Chihiro on XBOX

Discussion in 'Chihiro Development' started by Dabman, Mar 14, 2010.

  1. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9

    Should be all of them.

    To my understanding the Mediaboard is presented mostly as storage media.

    The xbox is completly on its own and always uses the 128MB motherboard - there is not room for more and the kernel will not be able to handle more either.
    The xbox and chihiro kernel are the same except for some keys (which have been figured out already). None of the kernels support virtual memory.

    The mediaboard driver should be in the staticly linked libraries. By easily making the game data accessible (I forgot wether it supports mapping files for reading (writing not possible at least) to memory / sorta-virtual memory) it provides sorta-virtual rom.

    I'm not sure if the mediaboard itself is accepted as flash or wether the flash of the xbox was modified. I can't remember if the jvs part uses it's own communication code (which would very likely still be in the games code - the chihiro kernel has the same exports as the debug kernel iirc) or if it provides a gamepad which the xbox automaticly detects.


    If chihiro games crash even though enough memory is installed you should probably check which memory allocation routines they are using and which paths they try to access. It's very likely they try to allocate memory in the lower 64MB when that region is already full - swapping or fixing the allocation function for 128MB should be enough then (and probably what MAMEX does).
    If the path goes to the mediaboard you should remap that to the FATX rom image somehow.

    [/iirc and afaik]
     
  2. blueshogun96

    blueshogun96 Robust Member

    Joined:
    Jul 29, 2010
    Messages:
    294
    Likes Received:
    8
    Okay, I started dumping the contents of some of the Chihiro chds and testing them on my debug Xbox. So far, the only ones I tried is Ollie King and House of the Dead 3. When I try running those on my debug Xbox, I get some flashing LEDs. The sequence is Red and Orange. Not sure why this happens. Is it memory related or do the .xbe files need to be patched first? I have no idea how much memory is needed for HOTD3, but Ollie King needs at least 512mb afaik.

    Any insight to this would be appreciated.
     
  3. Borman

    Borman Digital Games Curator

    Joined:
    Mar 24, 2005
    Messages:
    9,543
    Likes Received:
    1,880
    That is normal behavior. Likely a RAM issue, among who knows what else.
     
  4. blueshogun96

    blueshogun96 Robust Member

    Joined:
    Jul 29, 2010
    Messages:
    294
    Likes Received:
    8
    We'll see. JayFox said that he got Ghost Squad to load the menus before crashing, and that game required at least 512mb. I assume that ram doesn't become an issue until the game is getting ready to go ingame, unless a game explicitly checks for enough ram to load before starting up. Most Xbox games don't bother checking, but further tests will tell...
     
  5. Grippen

    Grippen Member

    Joined:
    Feb 7, 2013
    Messages:
    16
    Likes Received:
    0
    Well I'm no expert but I only said that because Ghost Squad was ported. And the game engine of Ghost Squad should be very similar if not the same of Virtua Cop 3. As so I doubt they went and port the game not anticipating a future need and if that was the case for sure they have a script to do it. Maybe it won't work out of box but would be close. Anyway I just said this because the games are very similar just different graphics.

    But I'm glad I made you laugh :p
     
  6. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9
    The 512 MB is not actual "RAM" in the sense of "system RAM" which can be accessed from the CPU.
    Instead you have to think about the chihiro like a solid state drive.
    Each GD-ROM basicly has multiple images for different DIMM Boards (The content is - at least for some games the same [but more likely for all of them]).
    The image, like I already said in my last post, is only a FATX image.
    You install 512 MB DIMM Board and what the chihiro does at startup, is basicly copying the matching game image from the GD-ROM to that RAM. That (DIMM Board) RAM, however, can not be addressed by the x86.

    Instead it's mapped as a (if I remember correctly IDE) harddisk-style/filesystem device on the xbox. So when the game requires data it can read the data from the mediaboard RAM using the filesystem (It's part of the idex subsystem in the kernel and the driver was called mediabrd or something like that).
    However, the xbox is still limited to 128 MB RAM which can be addressed by the CPU and the GPU (and hence the application will and can not require more).

    This also means that none of the chihiro games should have problems running on an actual 128 MB debug xbox unless they try to fetch data from the mediaboard (which can be hooked rather easily probably) or write to chihiro specific ports directly.
     
  7. blueshogun96

    blueshogun96 Robust Member

    Joined:
    Jul 29, 2010
    Messages:
    294
    Likes Received:
    8
    Yes, I was sorta getting this impression since numerous GD-ROMs contain a separate image for 512 and 1GB FATX images. I haven't done enough research on how Chihiro works from that stand point. I didn't believe that the RAM would be an immediate issue because when launching the service/rom test .xbe file, I also get the flashing LEDs, and I've already checked and confirmed though Cxbx that it does not do any memory checks, so that's not it. I'm really curious as to why OllieKing and HotD3 cause my LEDs to flash. I'm going to try Crazy Taxi and see if I get the same result. Maybe there's something wrong with the way I'm dumping it, I dunno. I had someone else dump VC3 for me.
     
  8. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9
    VC3 only works on one of my xboxes (I have quite a few xboxes - all applications except for VC3 work accross all of them) too. I guess it's related to the kernel and maybe even the hardware revision.

    The flashing could be the missing filesystem or missing / bad video-cable. Besides that, the only problem I could imagine would be the mediaboard access using IO ports (Can't remember if that was even done because I don't remember any chihiro specific IO ports even existing, though, for force feedback and cabinet lighting that probably exists somewhere on a per-game basis).
     
  9. LoveGHz

    LoveGHz Rising Member

    Joined:
    Apr 16, 2012
    Messages:
    66
    Likes Received:
    2
    The Chihiro boards I have look to be stock except for the LPC port.

    'mediabrd' should be a place to start reading though.. Though I need to get around to extracting some of the images so I can load an XBE in IDA and start poking around.
     
  10. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    I noticed that, with VC3 and Ghostsquad (before crash with arcade xbe) controller or light gun work fine.
    Moreover, for arcade xbe game crash exactly after one minute if you let it run (demo game) or mission select download, for other game black screen boot.
    It seem be it look like crash when you extract security chip from Chihiro motherboard. Normaly, in extract process we decrypted the FATX image, but Chihiro game need check security chip every minute, else freeze, like with XBOX actually. With Naomi Netboot no problem, maybe one way for our problem.
    The other problem, like JayFoxRoy said we need creat a patch for point the right address from HDD to RAM.
     
  11. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    Dear all

    Crediar succes to use Triforce game on Wii with Quadforce. Naomi emulator or netboot system runtoo. Triforce,Naomi, and CHihiro has the same security chip system, do you think can us to inspirate of Quadforce or netboot python script to will work VC3 and Ghostsquad arcade file.
     
  12. Shinebi

    Shinebi Dauntless Member

    Joined:
    Jul 6, 2011
    Messages:
    744
    Likes Received:
    8
    Oooh, that would be nice if VC3 worked on the Wii as well without any upgrade.
     
  13. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    Not on Wii it's impossible, For xbox dev kit 128mb only
     
  14. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    Dear friend

    this chihiro bios:

    http://rapidshare.co...o_xbox_bios.bin

    It's the same size of bios xbox classic. I think it's possible to custom it to launch chihiro game via phoenix bios loader, but I don't know how to do it.

    Any idea?

    Thank you
     
  15. kl0wn

    kl0wn <B>Site Supporter 2013</B><BR><B>Site Benefactor</

    Joined:
    Aug 31, 2006
    Messages:
    237
    Likes Received:
    8
    I had thought about trying this, but I don't think it'll help. The games seem to require the extra hardware from the Chihiro. I quit looking at it for awhile, but I'll start looking into it again some day soon ...
     
  16. bennydiamond

    bennydiamond Gutsy Member

    Joined:
    Aug 24, 2011
    Messages:
    476
    Likes Received:
    180
    Does a retail Xbox (64/128MB RAM) boots with this bios?
     
  17. HEX1GON

    HEX1GON FREEZE! Scumbag

    Joined:
    May 4, 2011
    Messages:
    9,916
    Likes Received:
    837
    kl0wn is right, there's more to a Chihiro than just the XBOX motherboard and custom bios. It is a mystery why VC3 works, but I guess that's due to the amount of RAM it requires, all other games I believe use 512MB+
     
  18. kl0wn

    kl0wn <B>Site Supporter 2013</B><BR><B>Site Benefactor</

    Joined:
    Aug 31, 2006
    Messages:
    237
    Likes Received:
    8
    I'm pretty sure PBL won't be able to do anything with this BIOS as I can't even decrypt it/extract the 2BL using any known tools. Seems to be a different RC4 key maybe. But I don't really remember how PBL works. Debug kits can do the same thing as PBL (IIRC?) but not sure if it needs to be a debug BIOS or not. All of this is a bit foggy for me, been awhile.
     
  19. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    I am agry about this bios need complet chihiro board to run (and the segaboot.xbe), but all games need only 128 ram from motherboard to work. The Dimm board with 512 or 1 gb ram use to stock the game during the play. Exactly, the gdrom is charging in complet at the begining (10 minute), it's for reason Chihiro, like Naomi or triforce, need Dimm board, else the loading time will be too long.

    My idea it's to charge custom bios with PBL, because PBL can load any bios.

    How to extract/decrypt this bios please?

    Thank you
     
  20. hl718

    hl718 Site Soldier

    Joined:
    Nov 19, 2004
    Messages:
    2,856
    Likes Received:
    7
    You'll need to figure out the encryption keys.

    As for hardware, remember that a Chihiro uses a different MCPX chip than the retail Xbox. It also has security hardware that a retail Xbox does not.

    You can't simply swap a BIOS and expect it to work. No one here knows exactly what that BIOS is checking for.

    If you want to hack it to learn, awesome. If you just want to run Chihiro games, buy a Chihiro board.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page