[Dev Tool] CakeHax - Open Source ARM9 loader

Discussion in '3DS - Homebrew Development and Emulators' started by mid-kid, Jun 30, 2015.

  1. mid-kid
    OP

    mid-kid GBAtemp spamBOT

    Member
    879
    962
    Aug 2, 2012
    I've had the code for this in CakesFW for a while now, but I've decided to separate it and make it a standalone project.
    This is a mostly drop-in replacement for Gateway's LauncherTemplate.dat you see in projects like rxTools and Decrypt9.
    What this does, is, from whatever entry point you're coming, does some exploits to get into ARM9 kernel mode, and then runs your code.

    More info on the github page: https://github.com/mid-kid/CakeHax

    Currently supported entry points are MSET 4.x on firmwares 4.x and 9.0-9.2, and spider 4.0-9.2.
    Note for MSET: The only MSET 9.x ROP installer right now is http://mkiddy.leerik.nl/cakes/CakesROP.nds

    As an example of how to replace LauncherTemplate.dat with CakeHax, this is all I had to change in Decrypt9 to make it run on MSET with CakeHax: https://github.com/mid-kid/Decrypt9/commit/86f1c21672c7672992f7ba224bf0e001d4c8d3f5
    And here a binary: http://mkiddy.leerik.nl/bin/Decrypt9.dat (NOTE: You can't rename it, or it won't work. You'll have to use the ropCustom.txt feature in CakesROP.nds for MSET)
     
  2. Syphurith

    Syphurith Beginner

    Member
    641
    222
    Mar 8, 2013
    Switzerland
    Xi'an, Shaanxi Province
    So you get 9.x MSET done now, congratulations!
    Roxas left the scene, rxtools get into Pasta team. So.. there may be a merge.
    If you could summerize how you searched for this, that would be more useful.

    BTW, I'm hoping for a way to keep both ARM9 and ARM11 kernels, that would be quite interesting.
    Maybe through service, maybe not. I don't think KARL/SALT would release such one as open-source or even take a look at it.
     
  3. k8099

    k8099 Advanced Member

    Newcomer
    58
    10
    Dec 15, 2014
    Switzerland
    what i should do with the ropCustom.txt to load the Decrypt9.dat you give?or can i use this to load rxtools on 9.x mset?
     
  4. mid-kid
    OP

    mid-kid GBAtemp spamBOT

    Member
    879
    962
    Aug 2, 2012
    You should write "Decrypt9.dat" into the ropCustom.txt using notepad or something.
    No, you can't use it for rxtools on 9.x MSET, yet.
     
  5. k8099

    k8099 Advanced Member

    Newcomer
    58
    10
    Dec 15, 2014
    Switzerland
    ok,it is work good with Decrypt9.dat,by the way,if cakesFW have regionfree,now i can just use cakesFW in my 9.2 o3ds.
     
  6. mid-kid
    OP

    mid-kid GBAtemp spamBOT

    Member
    879
    962
    Aug 2, 2012
    There's no region free as of yet, but you can just create and install region free cias.
     
  7. k8099

    k8099 Advanced Member

    Newcomer
    58
    10
    Dec 15, 2014
    Switzerland
    yes,now i just do it.
     
  8. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,482
    1,515
    May 9, 2014
    Hervey Bay, Queensland
    So does the MSET installer/loading work on n3ds with downgraded MSET?
    Or only o3ds atm?

    Edit: So yeah i can't get anything to run from mset with this. :( (testing with decrypt9), made the changes you did to your fork or D9, the lastest CakesROP.nds with ropCustom.txt with Decrypt9.dat in it and just crashes to home when trying to load from the profile... on old 3ds this is, 4.5 and 9.2.
    Any ideas?
     
    Last edited by Shadowtrance, Jul 4, 2015
  9. mid-kid
    OP

    mid-kid GBAtemp spamBOT

    Member
    879
    962
    Aug 2, 2012
    For 9.2 you have to downgrade MSET to 4.x. See the CakesFW thread for instructions.
    On 4.5... It works for me. Don't know what you could be doing wrong. If you're building on windows, use my decrypt9.dat or update the CakeHax submodule, as compilation fails on windows for the old CakeHax (the one used currently by the Decrypt9 fork).
    EDIT: Updated CakeHax in the Decrypt9 fork.