Hacking Official [Source Release] ReiNand CFW

Queno138

Ravens
Member
Joined
Sep 18, 2010
Messages
2,425
Trophies
0
Location
Luigi's Dark Mansion
XP
1,070
Country
Senegal
If you update emunand to 9.7 or higher it will always check the whitelist's installed version and if it is below the latest it will prompt for an update and will overwrite it with the newest one. To avoid this just use 3DNUS to download the v0 but spoof it to something like v65535 then install the spoofed version. ONLY install the spoofed version to emunand since the spoofing breaks the signature.

Alright, I understand! thanks a lot once again. that helped a lot.
Like, I had no idea why it wasn't working ><
 

Aroth

Well-Known Member
Member
Joined
Apr 14, 2015
Messages
2,066
Trophies
0
Age
37
XP
891
Country
United States
Alright, I understand! thanks a lot once again. that helped a lot.
Like, I had no idea why it wasn't working ><

Since it works on your O3DS, I am guessing it was either on 4.5 sysnand or you had installed the bluecardfix.cia to it's sysnand at some point.
 

B3DDO3

Active Member
Newcomer
Joined
Apr 21, 2015
Messages
31
Trophies
0
Age
33
XP
89
Country
United States
Hey all, wondering if anyone could help me I am a long time console modder, now I have never been into the 3ds game. Always used flashcarts, I own a new 3ds and currently its on 10.1.0-27U. I currently own a sky3ds 2 cart but would prefer to have a cfw and some homebrew etc. What are my options?

If you could let me know what the possibilities are I will search into them if you don't want to go into detail, can I downgrade to fw 9.2 then install cfw? I don't own a gateway cart just sky3ds.
 

nic0lette

Well-Known Member
Newcomer
Joined
Feb 5, 2016
Messages
70
Trophies
0
Age
40
XP
100
Country
United States
Hey! So I've stumbled into 3DS CFW Land and I've been reading through ReiNAND, but I'm a bit curious where you got some of the values for things? Like, FS.s has hard coded addresses for fopen9, fread9, etc... (Sorry, just trying to wrap my mind around everything in here =) I've been using 3dbrew as a reference? Good or is there somewhere else that would be better for CFW stuff?)
 

Aurora Wright

Well-Known Member
Member
Joined
Aug 13, 2006
Messages
1,550
Trophies
3
XP
4,492
Country
Italy
Yea it's safe. I wouldnt push broken code. I just have stuff hard coded till i fix the parsing logic.
I don't know if this could be of any use, but this way all the offsets are calculated reliably, at least in the 4 FIRMs I've tried (2 on o3ds and 2 on n3ds). The "emucode" in the emunand.S is still hardcoded, as I'm not sure which changes it goes through when armips compiles it...).
http://pastebin.com/fHjCQrys
 
  • Like
Reactions: peteruk

Supster131

(づ。◕‿‿◕。)づ *:・゚✧
Member
Joined
Jan 19, 2016
Messages
3,315
Trophies
1
Location
My Computer
XP
2,758
Country
United States
Hey all, wondering if anyone could help me I am a long time console modder, now I have never been into the 3ds game. Always used flashcarts, I own a new 3ds and currently its on 10.1.0-27U. I currently own a sky3ds 2 cart but would prefer to have a cfw and some homebrew etc. What are my options?

If you could let me know what the possibilities are I will search into them if you don't want to go into detail, can I downgrade to fw 9.2 then install cfw? I don't own a gateway cart just sky3ds.
First things first, have you gotten the update nag yet? If not, do this: https://gbatemp.net/threads/blocking-browserhax-update-message.401280/
 

Sammand

New Member
Newbie
Joined
Jan 27, 2016
Messages
4
Trophies
0
Age
28
XP
53
Country
United States
I've been trying to compile the latest build for a couple hours now, to no avail. I'm completely new to compiling stuff from Github so please bear with my ignorance. I'm on a Windows machine, following Spong92's guide from page 2 of this thread. I've followed the directions to a T, and I'm getting this whenever I run 'make' in cmd from inside the ReiNand-master folder:

arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -
march=armv5te -fno-builtin -fshort-wchar -std=c11 -Wno-main -c -o build/crypto
.o source/crypto.c
source/crypto.c: In function 'xor':
source/crypto.c:357:25: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
int i; for(i = 0; i < size; i++) *(dest+i) = *(data1+i) ^ *(data2+i);
^
source/crypto.c: In function 'arm9loader':
source/crypto.c:381:21: warning: passing argument 3 of 'xor' discards 'const' qu
alifier from pointer target type [-Wdiscarded-qualifiers]
xor(key2, key2, memeKey, 0x10);
^
source/crypto.c:356:6: note: expected 'u8 * {aka unsigned char *}' but argument
is of type 'const u8 * {aka const unsigned char *}'
void xor(u8 *dest, u8 *data1, u8 *data2, u32 size){
^
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -
march=armv5te -fno-builtin -fshort-wchar -std=c11 -Wno-main -c -o build/draw.o
source/draw.c
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -
march=armv5te -fno-builtin -fshort-wchar -std=c11 -Wno-main -c -o build/emunan
d.o source/emunand.c
source/emunand.c: In function 'getSDMMC':
source/emunand.c:27:10: warning: assignment makes integer from pointer without a
cast [-Wint-conversion]
*off = memsearch(pos, pattern, size, 4);
^
source/emunand.c: In function 'getEmuRW':
source/emunand.c:47:14: warning: assignment makes integer from pointer without a
cast [-Wint-conversion]
*readOff = memsearch(pos, pattern, size, 4);
^
source/emunand.c:48:15: warning: assignment makes integer from pointer without a
cast [-Wint-conversion]
*writeOff = memsearch(readOff, pattern, 0x1000, 4);
^
source/emunand.c: In function 'getMPU':
source/emunand.c:54:19: warning: unused parameter 'pos' [-Wunused-parameter]
void getMPU(void *pos, u32 *off){
^
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -
march=armv5te -fno-builtin -fshort-wchar -std=c11 -Wno-main -c -o build/fatfs/
diskio.o source/fatfs/diskio.c
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -
march=armv5te -fno-builtin -fshort-wchar -std=c11 -Wno-main -c -o build/fatfs/
ff.o source/fatfs/ff.c
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -
march=armv5te -fno-builtin -fshort-wchar -std=c11 -Wno-main -c -o build/fatfs/
option/syscall.o source/fatfs/option/syscall.c
arm-none-eabi-as -mlittle-endian -mcpu=arm946e-s -march=armv5te -o build/fatfs/
sdmmc/delay.o source/fatfs/sdmmc/delay.s
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -
march=armv5te -fno-builtin -fshort-wchar -std=c11 -Wno-main -c -o build/fatfs/
sdmmc/sdmmc.o source/fatfs/sdmmc/sdmmc.c
In file included from c:\program files (x86)\gnu tools arm embedded\5.2 2015q4\a
rm-none-eabi\include\dirent.h:6:0,
from source/fatfs/sdmmc/sdmmc.c:32:
c:\program files (x86)\gnu tools arm embedded\5.2 2015q4\arm-none-eabi\include\s
ys\dirent.h:10:2: error: #error "<dirent.h> not supported"
#error "<dirent.h> not supported"
^
make: *** [build/fatfs/sdmmc/sdmmc.o] Error 1

Anything I can do to fix this? Is there something I've missed? I have a strong feeling it's gonna be a "duh" moment if I did :toot:
 

Aroth

Well-Known Member
Member
Joined
Apr 14, 2015
Messages
2,066
Trophies
0
Age
37
XP
891
Country
United States

3.3? I assume you mean you compiled the code directly yourself from the latest commit, or used what Supster131 posted?

How are you loading the cfw? MSET, .3dsx or loading the .dat file directly with a boot manager (like ctrbootmanager)?

nvm
 

Bonovox40

Well-Known Member
Member
Joined
Apr 2, 2003
Messages
578
Trophies
2
XP
1,340
Country
United States
Can someone tell me if there's any benefit to running Retroarch through Reinand vs. Just running the .3ds version of it on a Gateway card in Emunand? I just have a N3ds running Gateway and no CFW or anything.
Wasn't sure if it was worth the trouble to get Reinand on there just for running Retroarch for GBA games, if it works fine on GW natively. Thanks!
 

Reisyukaku

Onii-sama~
OP
Developer
Joined
Feb 11, 2014
Messages
1,534
Trophies
2
Website
reisyukaku.org
XP
5,422
Country
United States
I don't know if this could be of any use, but this way all the offsets are calculated reliably, at least in the 4 FIRMs I've tried (2 on o3ds and 2 on n3ds). The "emucode" in the emunand.S is still hardcoded, as I'm not sure which changes it goes through when armips compiles it...).
http://pastebin.com/fHjCQrys
Yea, I was having pointer issues with some of the functions so i hard coded them to stub them. But now its fixed ^^

I pushed code and a release. Everything you need is already in the zip.
 

ScarletDreamz

[Debug Mode]
Member
Joined
Feb 16, 2015
Messages
3,967
Trophies
1
Location
/dev/sda1
XP
4,380
Country
United States
Yea, I was having pointer issues with some of the functions so i hard coded them to stub them. But now its fixed ^^

I pushed code and a release. Everything you need is already in the zip.
Hey rei, mind sending me a pm or sharing where in the code should be modified in order to display Rei on the top screen in order to distinguish cfw and reinand? O:
 

tom2199

Well-Known Member
Member
Joined
Apr 23, 2015
Messages
256
Trophies
0
XP
540
Country
Germany
Yea, I was having pointer issues with some of the functions so i hard coded them to stub them. But now its fixed ^^

I pushed code and a release. Everything you need is already in the zip.
I updated and now my nds-flashcard can not boot from emunand anymore, it was working with 3.2b
 

Aurora Wright

Well-Known Member
Member
Joined
Aug 13, 2006
Messages
1,550
Trophies
3
XP
4,492
Country
Italy
I updated and now my nds-flashcard can not boot from emunand anymore, it was working with 3.2b
Just tested my DSTWO on my n3DS (I'm using my build which has that code as well) and it works. Must be on your end.
Also, the FIRM that is produced with this autodetection is *binary-identical* to the one produced with the hardcoded offsets.
 
Last edited by Aurora Wright,

tom2199

Well-Known Member
Member
Joined
Apr 23, 2015
Messages
256
Trophies
0
XP
540
Country
Germany
Just tested my DSTWO on my n3DS (I'm using my build which has that code as well) and it works. Must be on your end.
Well, thats strange, i just tried cakes and it's working there. I'll try to go back to 3.2b.
btw, why the firmware.bin file changed?

EDIT: in 3.2b, it's working again, so it must be an bug in the 3.2 release.
 
Last edited by tom2199,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BakerMan @ BakerMan:
    fuck ubisoft, and fuck activision
    +1
  • realtimesave @ realtimesave:
    Nintendo needs to release a new console, switch is getting such shitty little games lately lol it's pathetic
  • Purple_Heart @ Purple_Heart:
    Lmao a new flashcart... The Unlock Switch... I knew it's not fake xD
    +1
  • NinStar @ NinStar:
    A new consoles won't solve that problem
  • NinStar @ NinStar:
    It will actually make it worse
  • The Real Jdbye @ The Real Jdbye:
    well actually
    a new console won't do anything right now, because the games are still in development, that's why there are few games being released
  • The Real Jdbye @ The Real Jdbye:
    it won't make the games finish any faster
  • Veho @ Veho:
    2/3rds of launch titles for the Switch 2 will just be lazy ports of Switch games anyway.
  • The Real Jdbye @ The Real Jdbye:
    probably
  • The Real Jdbye @ The Real Jdbye:
    maybe mario kart 9 will be a launch title
  • The Real Jdbye @ The Real Jdbye:
    i really want a new mario kart
  • Veho @ Veho:
    What, you mean the endless stream of DLCs doesn't count?
  • Veho @ Veho:
    Why develop a new game when you can just sell season passes forever?
  • Veho @ Veho:
    I'm still on MKDS so I'm not bothered :tpi:
  • The Real Jdbye @ The Real Jdbye:
    i like the dlc tbh, i'd like a new game more
  • ZeroT21 @ ZeroT21:
    but the current version is still selling fine at full price
  • SylverReZ @ SylverReZ:
    Hello
  • ZeroT21 @ ZeroT21:
    sup
    +1
  • SylverReZ @ SylverReZ:
    @realtimesave, You seen the Unlock Switch flashcart yet?
  • K3Nv2 @ K3Nv2:
    I'll see the 19.0 update that blocks use ability to it
    +1
  • K3Nv2 @ K3Nv2:
    Lol newegg+
    Screenshot-20240423-053504-Gmail.jpg
  • S @ salazarcosplay:
    does update 19 really block it
  • SylverReZ @ SylverReZ:
    Update 19 never came out yet. Just the 18.1.
    SylverReZ @ SylverReZ: Update 19 never came out yet. Just the 18.1.