[Release] GM9link - Run GM9 from the comfort of your homemenu

Discussion in '3DS - Homebrew Development and Emulators' started by d0k3, Aug 6, 2017.

  1. gudenau

    gudenau Largely ignored

    Member
    3,278
    1,250
    Jul 7, 2010
    United States
    /dev/random
    I would prefer the memory version, wouldn't use flash cycles.
     


  2. Lilith Valentine

    Lilith Valentine GBATemp's Wolfdog™ Spooky cute.

    Member
    20,079
    21,201
    Sep 13, 2009
    Antarctica
    Between insane and insecure
    That actually seems like a useful feature, especially for apps like SafeB9SInstaller. No reason to keep it around if I am only going to use it once.
     
    Quantumcat likes this.
  3. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,629
    2,651
    Dec 3, 2004
    Gambia, The
    I'd prefer that, too, but the problem is finding a good memory location. I will definitely look into.
     
  4. Wolfvak

    Wolfvak *yawn*

    Member
    807
    1,061
    Oct 25, 2015
    Uruguay
    Sadly there's no real, standardized way to go from the regular firmware to an arbitrary payload (after all, that's what an exploit is for). There haven been some efforts in the form of arm9hook but that died off due to lack of interest.

    Your best bet is to write to a *very* specific memory location in FCRAM and hope that a modified b9s would catch it on next boot... still doesn't fix the problem and it's messy at best, hacky at worst. There should've been a way to run binaries on baremetal on both CPUs since the early CFWs (svc 0x7B fixed the problem for the MPCore but since it was official nintendo code there's no guarantee it'd remain there).
     
    Joel16 likes this.
  5. gudenau

    gudenau Largely ignored

    Member
    3,278
    1,250
    Jul 7, 2010
    United States
    /dev/random
    How does Nintendo tell the console to reboot into DSi and GBA titles?
     
  6. MiePx3

    MiePx3 GBAtemp Regular

    Member
    116
    16
    Jan 4, 2016
    Gambia, The
    Quick question, but is it normal for GM9 to not use the top screen when starting it via GM9link?
    Using the .3dsx version.
     
    Last edited by MiePx3, Aug 7, 2017
  7. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,629
    2,651
    Dec 3, 2004
    Gambia, The
    Nope, that's very strange. Does it happen everytime?
     
  8. MiePx3

    MiePx3 GBAtemp Regular

    Member
    116
    16
    Jan 4, 2016
    Gambia, The
    Just tried again. Yep, third time in a row now.
    I added that im using the .3dsx version.

    /edit.
    Now this is funny. I made a screenshot and it shows the top side of the screen. So its there, but I just cant see it.
    Warning: Spoilers inside!
     
    Last edited by MiePx3, Aug 7, 2017
    Quantumcat likes this.
  9. Ryccardo

    Ryccardo WiiUaboo

    Member
    3,217
    1,545
    Feb 13, 2015
    Italy
    Imola
    https://www.3dbrew.org/wiki/NSS:LaunchApplicationFIRM
    The launcher (Home or any other app with the right permissions) just asks for a title to be run and the caveat that a different kernel may be required, the currently running kernel and the called one do all the real work
    https://www.3dbrew.org/wiki/FIRM#FIRM_Launch_Parameters
    The newly run kernel can receive parameters (mainly TitleID of the requested app and memory layout) by checking fixed positions in RAM

    If you were really bored, you could (at least on paper) package a .firm homebrew (one that runs if flashed directly as kernel, or any?) as a fifth/sixth/etc kernel, then also create a forwarder that requests being run with that kernel...
     
  10. gudenau

    gudenau Largely ignored

    Member
    3,278
    1,250
    Jul 7, 2010
    United States
    /dev/random
    Does not sound like a bad idea, just would take a lot of work.
     
  11. trainboy2019

    trainboy2019 GBAtemp Advanced Fan

    Member
    GBAtemp Patron
    trainboy2019 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    796
    218
    Oct 6, 2015
    Antarctica
    Ylisse
    This is happening to me too.
     
  12. Giodude

    Giodude Ruler of Italy

    Member
    GBAtemp Patron
    Giodude is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,949
    1,173
    May 17, 2015
    United States
    New York
    It's odd why so many people use the .3dsx version. Nintendo is able to see an invalid title Id sure, but the 3ds has to reboot into godmode9, and never actually runs the application, if not for a split second.
     
  13. MiePx3

    MiePx3 GBAtemp Regular

    Member
    116
    16
    Jan 4, 2016
    Gambia, The
    I dont care about what nintendo sees and whatnot, but thats how I organize my stuff. For almost everything hombrew related I want to use I use the hombrew launcher. Its how I first did it and I kinda like it that way. Except for things like FBI or NTR
     
    Giodude likes this.
  14. NexoCube

    NexoCube stop using piracy :(

    Member
    1,184
    587
    Nov 3, 2015
    France
    Stack Pointer
    Nicely done. Been reading code source and i'm surprised, how does the 3DS run GM9 on a hardware reboot? (i'm a noob :P)
     
  15. AnalogMan

    AnalogMan sumoCheatMenu Dev

    Member
    1,465
    863
    Apr 20, 2007
    United States
    @d0k3 What firmtool version did you use to compile this boot9strap fork? I'm having a hard time compiling it due to an unknown command --b9s=2
     
  16. Giodude

    Giodude Ruler of Italy

    Member
    GBAtemp Patron
    Giodude is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,949
    1,173
    May 17, 2015
    United States
    New York
    To my understanding, when loading the godmode9 app, it creates a file on the sd card, that when the 3ds reboots prioritizes over boot.firm. then godmode9 deletes that file.
     
    NexoCube and Ryccardo like this.
  17. Ryccardo

    Ryccardo WiiUaboo

    Member
    3,217
    1,545
    Feb 13, 2015
    Italy
    Imola
    Almost - it's the B9S mod that deletes the one-time payload :)
     
    Giodude likes this.
  18. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,629
    2,651
    Dec 3, 2004
    Gambia, The
    I'm already looking into this. Will be fixed soon.

    Duh. There have been some changes that I was not aware of, I guess. Will look into that later, too.
     
    MiePx3 and Joel16 like this.
  19. AnalogMan

    AnalogMan sumoCheatMenu Dev

    Member
    1,465
    863
    Apr 20, 2007
    United States
    I also tried starting GodMode9.firm straight from NTRBootHax and get the blank top screen issue. Decrypt9.firm works fine straight from NTRBootHax though.
     
  20. HamBone41801

    HamBone41801 K35

    Member
    621
    403
    Jan 16, 2017
    United States
    @d0k3 would it be possible to create a version that runs .cias apon boot?