Homebrew [Release] Three Stage 2

liomajor

Well-Known Member
OP
Member
Joined
Jun 10, 2008
Messages
1,468
Trophies
0
XP
1,373
Country
United States
Easy Install using safeA9LHinstaller

This includes only stage 1/2 files and installer!

A hardwaremod is highly recommended - use at own RISK!

Before installing this mod, please make a backup of your sysNAND!

You will need your very own private otp.bin and other files.

What will this do?

This will install delebile's a9lh to your nand to allow three stages without bootmanager
to start three different arm9loaderhax.bin from different folders. You can use this to
boot gateway's arm9loaderhax.bin or change the offered source to your own desire.

I take no credits for this as i did only little changes to have buttons and three stage2!

Credits goes to delebile, dark_samus, aurora and alle the other who helped to make this!

You can change the included source to your desire and needs.

Screen_Init is set to 80 by default bcuz FF might hurt your display in long therm.

Details for default stages:
Code:
Stage 2                Button    Sector         Offset                            Path       File to load

payload_stage2.bin   = Default = Sector 5C000 = (5C000 * 200 hex) Offset B800000  \          arm9loaderhax.bin
payload_stage2_2.bin = X + Y   = Sector 5A000 = (5A000 * 200 hex) Offset B400000  \a9lh\gw   arm9loaderhax.bin
payload_stage2_3.bin = X + A   = Sector 5A100 = (5A100 * 200 hex) Offset B420000  \a9lh      arm9loaderhax.bin

1. Extract the safeA9LHinstaller mod to your memorycard
2. Copy your desired payload_stage1.bin / payload_stage2.bin / payload_stage2_2.bin / payload_stage2_3.bin to a9lh folder
3. Copy the following files to A9LH folder: OTP.BIN (your own!) / firm0.bin / firm1.bin / secret_sector.bin

Without listed files you will brick your nand, make sure ALL files are present!!!

4. Either use your desired entry point to load Homebrew Launcher and start safeA9LH installer or update with included arm9loaderhax.bin
5. Press select to install/update a9lh
6. Place your desired arm9loaderhax.bin to the root and a9lh / gw folder.

Already using a9lh? Use arm9loaderhax.bin to update!

Modify src to change buttons:

Edit payload_stage1/source/main.c with your desired texteditor.

Example:

Currently it's set to two buttons on the same time
Code:
  if ((pressed & BUTTON_X) && (pressed & BUTTON_Y))

To change this to only B would be:

Code:
  if (pressed & BUTTON_B)

Available buttons are listed in ' hid.h '.

Modify screen_init brightness:

Edit screen_init/source/screen_init/screen_init.c with your desired texteditor.

Change '#define BRIGHTNESS 0x80' to your own value.

Restoring NAND:

Either, use decrypt9/emunand9 and reinstall your backup nand.bin
or use unedited safea9lhinstaller to update the current installation.

Backing up your sysNAND will include all changes you did!

This is tested with new3DS XL Toshiba Nand and 'should' work for Samsung
too since this is a VERY simple edit of the original from delebile!


Have Fun
 

Attachments

  • safeA9LHinstaller-mod.rar
    105.6 KB · Views: 356
  • default-payload-stage1-and-2.rar
    9.1 KB · Views: 344
  • arm9loaderhax-three-stage-2-src.rar
    546.9 KB · Views: 373
Last edited by liomajor,

NyaakoXD

( ͡° ͜ʖ ͡°)
Member
Joined
Dec 16, 2013
Messages
1,851
Trophies
2
Location
In your closet...
XP
3,643
Country
United States
What will this do?

This will install delebile's a9lh to your nand to allow three stages without bootmanager
to start three different arm9loaderhax.bin from different folders. You can use this to
boot gateway's arm9loaderhax.bin or change the offered source to your own desire.
Wait, so I can use Gateway's arm9loaderhax and can block FIRM writes or no? Kinda confused here... @~@;
 

Tomy Sakazaki

Well-Known Member
Member
Joined
Oct 23, 2006
Messages
880
Trophies
0
Website
Visit site
XP
812
Country
Brazil
Wait, so I can use Gateway's arm9loaderhax and can block FIRM writes or no? Kinda confused here... @~@;
Blocking FIRM writes for now is responsability of the CFW itself.
While you're running GW's launcher you'll be open to A9LH removal and/or bricks because for now it won't write protect the FIRMs.
If you're going to run both GW and CFW I'd recommend turning wifi off while using GW or at least setting a DNS that blocks access to Nintendo's update servers.
EDIT: updates to sysnand for now should be made only while in a trusted CFW environment, like Luma3DS' one.
 
Last edited by Tomy Sakazaki,

wiiuser2

Well-Known Member
Member
Joined
Sep 12, 2009
Messages
186
Trophies
0
XP
211
Country
Netherlands
Hi, thanks for this A9LH setup, happily using it with my GW and Luma. Great work.

I do find myself using either GW or Luma multiple times in a series of boot sequences.
That gave me the idea for a new feature: (ability to) assign a button to all three choices, write to a file what the last choice was when a button was pressed.
At next boot read the last chosen option from the file and start that option as default if no key is pressed. If a key is pressed write that one the the file again.

Makes sense?
 

Emenaria

Well-Known Member
Member
Joined
Nov 6, 2015
Messages
272
Trophies
0
XP
1,423
Country
Japan
Thanks for this! I have a request for you. According to Aurora, the stage1 binaries which can be used with SafeA9LHInstaller 2.x are incompatible with the ones usable with 1.x, and using old stage1s with 2.x will lead to an unrecoverable brick.
Could you please update the payload so that it will be compatible with data_input_v2 and SafeA9LHInstaller v2.x?
https://github.com/Plailect/Guide/wiki/Updating-arm9loaderhax
 
Last edited by Emenaria,

liomajor

Well-Known Member
OP
Member
Joined
Jun 10, 2008
Messages
1,468
Trophies
0
XP
1,373
Country
United States
Could you please update the payload so that it will be compatible with data_input_v2 and SafeA9LHInstaller v2.x?

Tested with both new3DS i have.

Default = SDCARD:/arm9loaderhax.bin (BootManager / CFW)
X + Y = SDCARD:/a9lh/gw/arm9loaderhax.bin (Gateway)
X + A = SDCARD:/a9lh/arm9loaderhax.bin (SafeA9LHinstaller)

DO NOT MIX THEESE STAGE FILES WITH FIRST POST FILES!!!!
 

Attachments

  • USE AT OWN RISK.rar
    149.5 KB · Views: 238
Last edited by liomajor,

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,775
Trophies
2
Age
48
Location
Japan
XP
3,674
Country
United States
I"m so confused... I was around with the multiple stage 2 development, and I did my best to help pull GW's payload out of their files, but the thread was SEVERAL pages deep. This thread is only 1 page? and no posts from me? I haven't updated in forever and am sure I don't even use v2 of a9lh. So... is there a multi stage 2 setup that uses v2, and is there a point in upgrading to it from v1?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: