Hacking The status of Gateway and A9LH

satelman

Well-Known Member
Member
Joined
Feb 20, 2016
Messages
266
Trophies
0
XP
1,525
Country
United States
@Kazuma77 cant you make a payload_stage2_2.bin to load launcher.dat "B" button instead of liomajor's X + Y so it would be compatible with his build?

Yes, it would be really nice to have @liomajor's stage_2 payloads but with 'simplified key presses', like B instead of X + Y, and A instead of X + A.

How should/could this be done?

Does this three stage system finally work on o3ds/2ds systems, too?
 
Last edited by satelman,
  • Like
Reactions: 20mark

sweatbox

Well-Known Member
Member
Joined
Sep 14, 2009
Messages
109
Trophies
0
XP
213
Country
Germany
Not sure why. But under gateway, I lost my stable 3d. Boot into Luma everything is perfect. Does it considers with the 3.7.1 or with the new stage?
 

Nirmonculus

Well-Known Member
Member
Joined
Nov 4, 2014
Messages
735
Trophies
0
XP
560
Country
All three payloads are written with his arm9loaderhax.bin to the nand. He explained it pretty well. You can change the behavior what payload loads at start if you rename them (Button combos are hardcoded in payload_stage1.bin). for example renaming "payload_stage2_2.bin" to"payload_stage2.bin" and installing them will load GW without a button pressed.

Ah so it's possible to load Gateway on boot without any button presses and have Luma load with maybe X + Y instead? I'm still trying to wrap my head around it but I don't have time to get my otp as it is already evening in my place and I'm a bit sleepy...
 

LinkFan16

I link them all
Member
Joined
Mar 15, 2009
Messages
424
Trophies
1
XP
1,498
Country
Germany
I think I will give the steps provided by liomajor on page 16 of this thread a try on my O3DS XL. But before I will make sure that I can revert back to my normal A9LH payload and just because I like to be really carefull with this stuff will also do a nand backup before hand. Will report back if I had any success or not
 
  • Like
Reactions: 20mark

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,230
Country
Gambia, The
Yes, it would be really nice to have @liomajor's stage_2 payloads but with 'simplified key presses', like B instead of X + Y, and A instead of X + A.
Again. Not the payload_stage2 are defining the keys its payload_stage1. @Kazuma77 posted on page 17 alternative simple key presses. But he didn't implement the 2nd button combination in his payload.
 

LinkFan16

I link them all
Member
Joined
Mar 15, 2009
Messages
424
Trophies
1
XP
1,498
Country
Germany
So I just tried the setup as described in this post without success. I used the arm9loaderhax.bin of the safeA9LHinstaller provided on page 16 to update my Luma A9LH installation but just get a short red flashing screen when I try holding X+Y upon booting my O3DS to load the GW 3.7.1 launcher.dat from the sd card inside the console. Since I don't know where the error could be as of yet, I'm going back to my normal A9LH until things start developing a bit further.
 

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,230
Country
Gambia, The
I know about that, but then, do you mean that @Kazuma77's stage_1 payload works with @liomajor's stage_2 payloads without any issues?
Yes Im using them right now. e.g. I hold START at boot and Im greeted with ctrbootmanager (the normal a9lh process) and if I hold nothing GW a9lh boots.

I consider to compile the stage1 payload myself because I need a 2nd buttoncombo for luma3ds without bootmanager. My current setup breaks DS Game support when loading emunand.
 
Last edited by GothicIII,
  • Like
Reactions: satelman and 20mark

DavidKang

Well-Known Member
Member
Joined
Jun 23, 2012
Messages
139
Trophies
1
Location
Seoul
XP
782
Country
Wait, wait, wait. I have an OTP.bin I extracted months ago and I can still use Gateway even if I installed Luma3ds a9lh? With the easy installer few pages back? N3DSLL JPN.
 
Last edited by DavidKang,

Nirmonculus

Well-Known Member
Member
Joined
Nov 4, 2014
Messages
735
Trophies
0
XP
560
Country
So I just tried the setup as described in this post without success. I used the arm9loaderhax.bin of the safeA9LHinstaller provided on page 16 to update my Luma A9LH installation but just get a short red flashing screen when I try holding X+Y upon booting my O3DS to load the GW 3.7.1 launcher.dat from the sd card inside the console. Since I don't know where the error could be as of yet, I'm going back to my normal A9LH until things start developing a bit further.

I think it only works with new 3ds.
 

GothicIII

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
831
Trophies
0
Age
36
XP
2,230
Country
Gambia, The
Can someone !!!with a hardmod!!! test my payload please? I compiled the payload_stage1.bin with the following code from liomajor:
Code:
#include "common.h"
#include "sdmmc.h"
#include "i2c.h"
#define HID_PAD  ((~*(u16*)0x10146000) & 0xFFF)
#define BUTTON_A  (1 << 0)
#define BUTTON_B  (1 << 1)

u16 pressed;

int main()
{
  // Initialize sdcard and nand
  *(vu32*)0x10000020 = 0;
  *(vu32*)0x10000020 = 0x340;
  sdmmc_sdcard_init();

  pressed = HID_PAD;

  if (pressed & BUTTON_A) //if a button is pressed
  {
  //Jump to alternate stage2
  sdmmc_nand_readsectors(0x5A000, 0x20, (u8*)0x08006000);
  }
  else
  {
  //jump to normal stage2
  sdmmc_nand_readsectors(0x5C000, 0x20, (u8*)0x08006000);
  }
  // Jump to secondary payload
  ((void (*)())0x08006000)();
  return 0;
}

I didn't mess with it I just want to know if I've got working binaries (it should work though). I don't have a hardmod so I can't risk anything.
 

Attachments

  • payload_stage1.zip
    2.4 KB · Views: 102
  • Like
Reactions: StevenLexon

Leslie White

Well-Known Member
Member
Joined
Feb 21, 2015
Messages
230
Trophies
0
Age
36
Location
Paris
XP
300
Country
France
Hi I successfully installed the payload to boot the GW on my 3DSXL (using X+Y on boot).

Is there any way to also boot luma3ds using another button combination ? thx
 

satelman

Well-Known Member
Member
Joined
Feb 20, 2016
Messages
266
Trophies
0
XP
1,525
Country
United States
Yes Im using them right now. e.g. I hold START at boot and Im greeted with ctrbootmanager (the normal a9lh process) and if I hold nothing GW a9lh boots.

I consider to compile the stage1 payload myself because I need a 2nd buttoncombo for luma3ds without bootmanager. My current setup breaks DS Game support when loading emunand.

Interesting, that will be a useful addition, no doubt.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
    Purple_Heart @ Purple_Heart: @Psionic Roshambo i may try that with my dead sd cards +1