Forum: PS2 Homebrew/Dev & Emu Scene - Topics relating to homebrew PS2 development and emulation. Stay current and up to date on the latest homebrew releases from the best devs on the scene.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Like Tree1Likes
  • 1 Post By SP193

Thread: Uses for memory card MCID, Kbit, Kc?
  

Results 1 to 7 of 7
  1. #1 Uses for memory card MCID, Kbit, Kc? 
    mark_k is offline Member
    Join Date
    Dec 2010
    Posts
    101
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    7
    Hi,

    I've been using MCID_PAL.ELF to get the MCID/Kbit/Kc info for my memory cards. Question is, what is that info useful for?

    Would it (in theory) be possible to write a program which uses that ID info to sign ELF files for that specific memory card? Then you could e.g. install Free McBoot using a non-Sony PS2 memory card USB adaptor. (Get an image of the card, and run MCID_PAL.ELF on a PS2 to get the ID info. The program would then use that info to sign the FMCB ELF file. You could then copy the signed file into the memory card image and write it back to the card.)

    Or maybe in future (when PS2 emulators get better) you could properly emulate a memory card with Free McBoot or similar installed.

    Is there any other software which can use memory card ID info? (Maybe a modified version of ps3mca-tool could be made to work with non-Sony USB adaptors? The user would pass Kbit/Kc etc on the command line instead of reading it from the USB adaptor.)
    Reply With Quote  

  2. #2  
    Berion's Avatar
    Berion is offline Starszy gracz
    Join Date
    Dec 2005
    Location
    Poland
    Posts
    730
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    37
    Likes Received
    97
    I could be wrong but there are tools for signing MC KELFs.

    I don't see any purpose for that. We can already install FMCB via PC and manage "ps2mcfs" via PC. And the problem is not with PS3MCA Tool but non license mc adaptors (most of them doesn't support write) and drivers for such devices.
    Reply With Quote  

  3. #3  
    SP193's Avatar
    SP193 is offline The fallen spartan...
    Join Date
    May 2009
    Location
    シンガポール
    Posts
    1,943
    Downloads
    0
    Uploads
    0
    Mentioned
    14 Post(s)
    Tagged
    3 Thread(s)
    Likes Given
    33
    Likes Received
    208
    Quote Originally Posted by mark_k View Post
    Hi,

    I've been using MCID_PAL.ELF to get the MCID/Kbit/Kc info for my memory cards. Question is, what is that info useful for?
    From what I remember from my past research on the Magicgate KELF mechanism, there are a two keys to decrypt two main parts of the KELF: The content key (Kc) and the bit table (Kbit). Each KELF has both keys.

    The bit table describes the various protected and unprotected sections of the KELF, while I think that the content key is for decrypting the encrypted parts of the KELF. Both keys are obtainable by software means.

    The MCID is an unique ID that belongs to each Memory Card. If this ID cannot be retrieved for whatever reason, it will not be a bootable Memory Card the KELF cannot be decrypted.

    I suppose that full support for Magicgate by the Memory Card adaptor is required, as operations like retrieving the Memory Card's ID (MCID) and certain (emulated) MECHACON challenges that are used to generate some other keys require a working Magicgate implementation.
    Berion likes this.
    Unmodified SCPH-77006 with SM 3.6
    SCPH-39006 with M-chip modchip, SCPH-10281 NA and refurb Seagate 80GB HDD
    SCPH-10000 v1.00 with SCPH-10190 PCMCIA NA and SCPH-20400 HDD unit
    PS2ESDL v0.823B

    やっほー 汗がひかる♪
    Reply With Quote  

  4. #4  
    mark_k is offline Member
    Join Date
    Dec 2010
    Posts
    101
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    7
    Okay. So the only thing unique to the memory card is the MCID? And the Kbit and Kc values printed by running the MCID_PAL.ELF program relate to something else, and are not specific to the memory card you have inserted?

    Hypothetically, would it be easy to modify ps3mca-tool to take an MCID passed on the command line and use that, instead of requiring the original Sony CECHZM1 USB memory card adaptor? (The user would have obtained the MCID by running MCID_PAL.ELF on their PS2.)
    Reply With Quote  

  5. #5  
    kadorna2 is offline Member
    Join Date
    Feb 2011
    Location
    Buenos Aires, Argentina
    Posts
    362
    Downloads
    2
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    6
    Likes Received
    22
    Quote Originally Posted by mark_k View Post
    Hypothetically, would it be easy to modify ps3mca-tool to take an MCID passed on the command line and use that, instead of requiring the original Sony CECHZM1 USB memory card adaptor? (The user would have obtained the MCID by running MCID_PAL.ELF on their PS2.)
    eh, the only purpose for the use of the ps3 mca is that you don't need a modified console to install fmcb, and if you want to run mcid_pal.elf you need one... which brings us to square 1... you NEED an official adapter, that's all. If you don't have one, buy it.
    Reply With Quote  

  6. #6  
    SP193's Avatar
    SP193 is offline The fallen spartan...
    Join Date
    May 2009
    Location
    シンガポール
    Posts
    1,943
    Downloads
    0
    Uploads
    0
    Mentioned
    14 Post(s)
    Tagged
    3 Thread(s)
    Likes Given
    33
    Likes Received
    208
    Quote Originally Posted by mark_k View Post
    Okay. So the only thing unique to the memory card is the MCID? And the Kbit and Kc values printed by running the MCID_PAL.ELF program relate to something else, and are not specific to the memory card you have inserted?
    Exactly.

    The funny thing about some of the Chinese clone cards is that they often come with the exact same MCID, so installing any KELFs (E.g. FMCB) on any one of them and copying it onto another clone card will often work.

    Quote Originally Posted by mark_k View Post
    Hypothetically, would it be easy to modify ps3mca-tool to take an MCID passed on the command line and use that, instead of requiring the original Sony CECHZM1 USB memory card adaptor? (The user would have obtained the MCID by running MCID_PAL.ELF on their PS2.)
    Yes, but you need to obtain the MCID first. If your adaptor does not allow you to do that, you will need another method. But then, you might as well use that other method of obtaining the MCID to install FMCB....

    I'm not sure about this, but I think that I remember from the PS3MCA sources that part of the signing process involved cryptographic materials generated from certain challenges made against the memory card... so the MCID is going to be only part of the requirements.

    Maybe instead of obtaining the MCID, maybe it's best to just acquire the generated Kbit and Kc keys for your KELF instead.... but that means that you have already signed the KELF for your card and it becames unique to your card. @_@

    Quote Originally Posted by kadorna2 View Post
    eh, the only purpose for the use of the ps3 mca is that you don't need a modified console to install fmcb, and if you want to run mcid_pal.elf you need one... which brings us to square 1... you NEED an official adapter, that's all. If you don't have one, buy it.
    Exactly.

    But can we be sure that 3rd party adaptors really can't be used to install FMCB? AFAIK it was because of a lack of proper drivers to support those 3rd party adaptors.
    Unmodified SCPH-77006 with SM 3.6
    SCPH-39006 with M-chip modchip, SCPH-10281 NA and refurb Seagate 80GB HDD
    SCPH-10000 v1.00 with SCPH-10190 PCMCIA NA and SCPH-20400 HDD unit
    PS2ESDL v0.823B

    やっほー 汗がひかる♪
    Reply With Quote  

  7. #7  
    mark_k is offline Member
    Join Date
    Dec 2010
    Posts
    101
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    7
    Quote Originally Posted by SP193 View Post
    But can we be sure that 3rd party adaptors really can't be used to install FMCB? AFAIK it was because of a lack of proper drivers to support those 3rd party adaptors.
    Datel's DataMAX product comes with PC software to back up memory cards. You can check the PDF user guide here. (However, according to the manual the supplied PC software only works with non-Sony memory cards.)

    If someone wanted to spend enough time on it, it should be possible to figure out how to talk to a DataMAX USB adaptor. Whether that would actually allow data to be written to a real Sony memory card is another matter though.
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •