Hacking Luma3DS - Noob-proof 3DS Custom Firmware

Status
Not open for further replies.

Demon0no

New Member
Newbie
Joined
Mar 6, 2016
Messages
2
Trophies
0
Age
31
XP
41
Country
Gambia, The
I'm trying to boot into patched 9.X but I my screen just glitches out for a second and then I get an generic "turn off your system" error.
I'm using A9LH, with emuNand on 10.6 and sysNand on 9.2

I have the firmware.bin and the firmware90.bin in the rei folder.
Booting into emuNand works without problems, booting into sysNand via holding R works also fine, but booting the firmware90.bin via holding L doesn't boot...
Tried reinstalling AuReiNand (now on v3.7.3) but still not working.

Any ideas?
It's an european new 3DS btw..

Edit: Also I deleted the patched*.bin in the rei folder, so that's not the problem.
 
Last edited by Demon0no,

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,237
Country
Germany
just checked out the cleanup code and why exactly did you switch a lot of return values to u8? that just wastes some cast instructions since a int/u32 is native to the ARM processor, with a u8 it will in the asm always cut off the other 24bits of whatever register is used for reading and writing a status.
 
  • Like
Reactions: peteruk

peteruk

Well-Known Member
Member
Joined
Jun 26, 2015
Messages
2,970
Trophies
2
XP
6,866
Country
United Kingdom
just checked out the cleanup code and why exactly did you switch a lot of return values to u8? that just wastes some cast instructions since a int/u32 is native to the ARM processor, with a u8 it will in the asm always cut off the other 24bits of whatever register is used for reading and writing a status.

FIX94

Only asking, please don't be angry, but have you considered releasing a mod version ?
 
  • Like
Reactions: Cha0s Em3rald

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,237
Country
Germany
Only asking, please don't be angry, but have you considered releasing a mod version ?
I'm personally not a fan of having a ton of different mods which are all at different development stages so I'd rather point out some things I notice so the actual people behind the "main" version can improve their program.
 

Aurora Wright

Well-Known Member
OP
Member
Joined
Aug 13, 2006
Messages
1,549
Trophies
3
XP
4,353
Country
Italy
I'm personally not a fan of having a ton of different mods which are all at different development stages so I'd rather point out some things I notice so the actual people behind the "main" version can improve their program.
I'm not a reverser and I don't know ARM ASM, I just have (some) C knowledge.
If what you're saying is true, lots of previous code (even from ReiNand) would need to be changed. I just followed the overall style of the code.
 
  • Like
Reactions: peteruk

Madridi

Card Collector
Member
Joined
May 9, 2008
Messages
3,562
Trophies
2
Age
37
Location
Doha
XP
3,061
Country
Qatar
Sorry about the continuous releases, if no bugs are found - I tested this thoroughly - I promise this will be the last one for now :)
I went through the whole code and cleaned it (removed useless bits, optimized functions...) and as a result the binary is now 3 KB smaller, possibly this will also bring slight speed improvements (so the ones who have speed issues try this).
https://github.com/AuroraWright/AuReiNand/releases/tag/v3.7.3
Thanks for the update. My tests:
Emunand: I believe it's the fastest version I have tested so far. At the very least, it's on par with 3.6.1
Sysnand: Maybe a half second slower than 3.6.1 .. or the same. Don't exactly remember

The point is, whatever you did, seems to work for me :)
 

Supster131

(づ。◕‿‿◕。)づ *:・゚✧
Member
Joined
Jan 19, 2016
Messages
3,315
Trophies
1
Location
My Computer
XP
2,745
Country
United States
I'm trying to boot into patched 9.X but I my screen just glitches out for a second and then I get an generic "turn off your system" error.
I'm using A9LH, with emuNand on 10.6 and sysNand on 9.2

I have the firmware.bin and the firmware90.bin in the rei folder.
Booting into emuNand works without problems, booting into sysNand via holding R works also fine, but booting the firmware90.bin via holding L doesn't boot...
Tried reinstalling AuReiNand (now on v3.7.3) but still not working.

Any ideas?
It's an european new 3DS btw..

Edit: Also I deleted the patched*.bin in the rei folder, so that's not the problem.
It's menuhax. It's conflicting.

Turn off your 3DS, then turn it back on by holding L for one second only. Once you boot into your sysNAND, change your theme.
 
  • Like
Reactions: acg12xu

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,237
Country
Germany
I'm not a reverser and I don't know ARM ASM, I just have (some) C knowledge.
If what you're saying is true, lots of previous code (even from ReiNand) would need to be changed. I just followed the overall style of the code.
it really does not matter in most cases since you only do simple compares which get optimized away but I just wanted to mention it, so no real need for a change.
 

nistushin

Member
Newcomer
Joined
Feb 15, 2016
Messages
18
Trophies
0
Age
25
XP
43
Country
Italy
I couldn't get this to compile, even with the correct dev environment set up. Then I went into sdmmc.c and commented out the "#include <dirent.h>"
It compiles fine now, but I have the feeling this is not the best way to fix the issue
 

Aurora Wright

Well-Known Member
OP
Member
Joined
Aug 13, 2006
Messages
1,549
Trophies
3
XP
4,353
Country
Italy

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,237
Country
Germany
OK, did it anyway: https://github.com/AuroraWright/AuReiNand/commit/13fd33a61dbfde8ea53804b4e3180f98f8637abb
There were also some useless casts to u8* (from the original reinand).
and the file now is bigger in total, the big question now is if it is because of alignment or a difference in instructions used :P the gcc compiler can do some very interesting things sometimes heh.
edit: yea its a alignment difference, now some of the variables used are 4-byte aligned to be easly read by the processor, that explains it. I guess in this case there will be no speed difference but just a alignment difference.
 
  • Like
Reactions: Madridi and peteruk

tatundria

Well-Known Member
Member
Joined
Feb 24, 2009
Messages
385
Trophies
1
XP
1,815
Country
Argentina
How can I load sysNAND after rebooting from emunand on the latest version? I press L but it always loads emuNAND...
 

WallK

Get off my lawn
Member
Joined
Apr 8, 2011
Messages
216
Trophies
0
XP
306
Country
So, /installeda9lh forces use of a9lh or non-A9LH version of CFW? I'm kinda lost at explanation...
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys