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
32
XP
51
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
30
Location
???
XP
11,248
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
3,005
Trophies
2
XP
7,372
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
30
Location
???
XP
11,248
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,550
Trophies
3
XP
4,519
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
38
Location
Doha
XP
3,071
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,758
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
30
Location
???
XP
11,248
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
26
XP
53
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,550
Trophies
3
XP
4,519
Country
Italy

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
30
Location
???
XP
11,248
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
394
Trophies
1
XP
2,162
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.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Cause I maybe, maybe clicked like a few times.
  • K3Nv2 @ K3Nv2:
    You're as loved as much as Juan now enjoy it
    +1
  • K3Nv2 @ K3Nv2:
    I'm sorry for the insult
  • BakerMan @ BakerMan:
    the difference is i like wario and samus and he likes muscle mommies and feet
    +1
  • BakerMan @ BakerMan:
    wait, i forgot wizards too
  • BigOnYa @ BigOnYa:
    I have a buddy that has a moonshine still and he makes his own shine. He brought me a jar of some peach shine/brandy, shit is damn good. Gonna have to see if can get more.
    +1
  • BakerMan @ BakerMan:
    careful that shit don't make you go blind
  • BigOnYa @ BigOnYa:
    Nuh that's only if you drink what first comes out when distilling, you must throw out the first part of it when it starts running. (Its called the "head(s)" of the run) Or use it for fuel or a general purpose cleaner
    +1
  • K3Nv2 @ K3Nv2:
    If alcohol would've made @BigOnYa blind by now it would have
    +2
  • BigOnYa @ BigOnYa:
    So True.
    +1
  • K3Nv2 @ K3Nv2:
    I should make a poll for bigonya to change his username to DrunkOnYa
    +1
  • BigOnYa @ BigOnYa:
    That's my alt
    +1
  • K3Nv2 @ K3Nv2:
    I don't wanna go to the store someone go for me
  • BigOnYa @ BigOnYa:
    Call my wifey, tell her pick up stuff on her way over.
  • K3Nv2 @ K3Nv2:
    Pick up my door dash meat me in the allyway
    +1
  • BigOnYa @ BigOnYa:
    Wifey is busy, so ill send my buddy @AncientBoi , in his gimp outfit. "who ordered the 6" sausage?""
  • K3Nv2 @ K3Nv2:
    Like subway it's false advertising
    +1
  • BigOnYa @ BigOnYa:
    Ok "who ordered the Vienna sausage?"
  • K3Nv2 @ K3Nv2:
    Uremum
    +1
  • BigOnYa @ BigOnYa:
    My buddy convince me to download and play poker game with him yesterday, called Four Kings Casino, its pretty fun actually, you create a avatar and walk around in a virtual casino, and play any table, or slots with others online.There's even a dance club and bowling alley.
  • SylverReZ @ SylverReZ:
    They should bring advertisements like this back LOL.
  • BakerMan @ BakerMan:
    or that german ninja turtle commercial
    +1
  • K3Nv2 @ K3Nv2:
    Forgot to buy BBQ sauce at the store so made my own ffs
  • RedColoredStars @ RedColoredStars:
    Blues Hog BBQ sauces are pretty good.
    RedColoredStars @ RedColoredStars: Blues Hog BBQ sauces are pretty good.