Hacking Luma3DS - Noob-proof 3DS Custom Firmware

  • Thread starter Thread starter Aurora Wright
  • Start date Start date
  • Views Views 3,155,240
  • Replies Replies 19,840
  • Likes Likes 262
Status
Not open for further replies.
It worked so no complaints from me
Yes. But that's definitely not the best way to do it.

--------------------- MERGED ---------------------------

Don't really understand though, we had to do this to get the otp so this is basically doing the same thing at same risks.
As he already has his OTP, he doesn't have to dump it again.
 
Yes. But that's definitely not the best way to do it.

--------------------- MERGED ---------------------------


As he already has his OTP, he doesn't have to dump it again.
Talking about restoring a 9.2 emunand over sysnand not dumping otp, that was just an example of what we had to do to get that.
 
I'm using the updatedsysnand flag, so holding L + R is what I have to do to boot into emuNAND with the 9.6-10.4 FIRM.
Well, this is what I have it set to.
Code:
if((!updatedSys & ((pressed & BUTTON_L1) == BUTTON_L1)) |
       (updatedSys & (pressed & BUTTON_L1R1))) mode = 0;
Let's me boot into sysNAND with the 9.0 FIRM by simply pressing L (as R is being used to boot into my 2nd emuNAND).

I doubt that same code could work in reverse, so you'd probably have to modify it here:
Code:
if((updatedSys & ((!mode) | (((pressed & BUTTON_L1R1) == BUTTON_L1R1) &
       (pressed != SAFEMODE)))) | ((!updatedSys) & mode & !(pressed & BUTTON_L1))){
        if (loadEmu()) return 1;
Since it looks like that's the code to boot into emuNAND with the "updatesysnand" flag.

What buttons are you trying to change?

(EDIT: All this is in the firm.c file.)
 
I'm having trouble getting this to boot on my n3DS using A9LH. I've already got ReiNand booting to my emunand using A9LH, but I just get a black screen when I boot AuReiNand. Here's what's on my SD card:

Screen Shot 2016-02-20 at 16.45.29.png

The files with .pre as the extension are the normal ReiNand files. The firmware files in the /rei folder are the ones from the FIRMs file linked from the AuReiNand GitHub page.

Any ideas on how to get this working would be really appreciated!
 
Well, this is what I have it set to.
Code:
if((!updatedSys & ((pressed & BUTTON_L1) == BUTTON_L1)) |
       (updatedSys & (pressed & BUTTON_L1R1))) mode = 0;
Let's me boot into sysNAND with the 9.0 FIRM by simply pressing L (as R is being used to boot into my 2nd emuNAND).

I doubt that same code could work in reverse, so you'd probably have to modify it here:
Code:
if((updatedSys & ((!mode) | (((pressed & BUTTON_L1R1) == BUTTON_L1R1) &
       (pressed != SAFEMODE)))) | ((!updatedSys) & mode & !(pressed & BUTTON_L1))){
        if (loadEmu()) return 1;
Since it looks like that's the code to boot into emuNAND with the "updatesysnand" flag.

What buttons are you trying to change?

A bit off-topic, but shouldn't those bitwise ORs ( | ) be logical ORs instead ( || )?
 
A bit off-topic, but shouldn't those bitwise ORs ( | ) be logical ORs instead ( || )?
Er.. I didn't change anything else besides "L1R1" to "L1" on the first line, then in the second line from "L1" to "L1R1", so I wouldn't know, lol.
 
I'm having trouble getting this to boot on my n3DS using A9LH. I've already got ReiNand booting to my emunand using A9LH, but I just get a black screen when I boot AuReiNand. Here's what's on my SD card:

View attachment 39646

The files with .pre as the extension are the normal ReiNand files. The firmware files in the /rei folder are the ones from the FIRMs file linked from the AuReiNand GitHub page.

Any ideas on how to get this working would be really appreciated!
Try replacing the rei folder by the one corresponding to your system in the release zip file.
 
What buttons are you trying to change?
What file are you looking at there?
Ideally I would like to utilize the ZL and ZR buttons. I'd want L to boot into emuNAND with 9.6-10.4 FIRM, L + ZL to boot into emuNAND with 9.0 FIRM, and ZR to boot into sysNAND with 9.0 FIRM. Are those buttons even supported?
 
What file are you looking at there?
Ideally I would like to utilize the ZL and ZR buttons. I'd want L to boot into emuNAND with 9.6-10.4 FIRM, L + ZL to boot into emuNAND with 9.0 FIRM, and ZR to boot into sysNAND with 9.0 FIRM. Are those buttons even supported?
I don't know :P I can give it a try and see if they work.
 
Er.. I didn't change anything else besides "L1R1" to "L1" on the first line, then in the second line from "L1" to "L1R1", so I wouldn't know, lol.

I was thinking out loud more than anything, heh. It just looks a bit off, but I'm also tired..
 
  • Like
Reactions: Supster131
Try replacing the rei folder by the one corresponding to your system in the release zip file.
I did that, but I'll try it again just in case something went wrong.

--------------------- MERGED ---------------------------

Try replacing the rei folder by the one corresponding to your system in the release zip file.
Ok, just re-copied and it seems to be working now. Something must not have copied correctly... Thanks! :)
 
  • Like
Reactions: Mrrraou and peteruk
Just tried it out, I don't think ZL and ZR will work.

I tried calling it either "L2" and "ZL" and both won't let me compile.
 
I succesfully installed arm9loaderhax on my 2ds to boot this cfw and it works :)

My setup is a 9.2 sysnand and 10.5 emunand. I'm using the regular mode for autobooting emunand. I have some questions:

  1. I made a "/rei/reversereboot" file to disable the reboot patch, because I need it only for SSB but I want to be able to launch gba titles by default. But now with a9lh and pressing A while booting (to enable the reboot patch) I can't launch SSB without ending in an error message. It worked before I installed a9lh. Is it an error with my setup? I can launch SSB from cakes cfw with reboot patch enabled.
  2. Is it possible to have another button combination to boot in sysnand with the 9.0 firm. L+R will always launch the camera app, maybe holding only the R button would be a better choice?
  3. Additionally would it be possible to boot the homebrew launcher boot.3dsx, when holding another button while booting?

Thank you!
 
What file are you looking at there?
Ideally I would like to utilize the ZL and ZR buttons. I'd want L to boot into emuNAND with 9.6-10.4 FIRM, L + ZL to boot into emuNAND with 9.0 FIRM, and ZR to boot into sysNAND with 9.0 FIRM. Are those buttons even supported?
Aurora just told me that ZL and ZR do not work as button combos. So you're gonna have to think of another combo :P
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum