Hacking Official [Source Release] ReiNand CFW

  • Thread starter Thread starter Reisyukaku
  • Start date Start date
  • Views Views 989,184
  • Replies Replies 6,480
  • Likes Likes 115
@Reisyukaku

Code:
arm-none-eabi-gcc -g source/_start.s source/FS.S -I source -c -mcpu=arm946e-s -march=armv5te -mlittle-endian -fshort-wchar
arm-none-eabi-gcc: error: source/FS.S: No such file or directory
Makefile:11: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/hle/src/ReiNand/thread'
Makefile:70: recipe for target 'out/rei/thread/arm9.bin' failed
make: *** [out/rei/thread/arm9.bin] Error 2

I fixed this by renaming:

ReiNand/thread/source/FS.s
to
ReiNand/thread/source/FS.S

Now it compiles fine with my Linux setup using an armips linux binary.
 
  • Like
Reactions: kactusss
@Reisyukaku

Code:
arm-none-eabi-gcc -g source/_start.s source/FS.S -I source -c -mcpu=arm946e-s -march=armv5te -mlittle-endian -fshort-wchar
arm-none-eabi-gcc: error: source/FS.S: No such file or directory
Makefile:11: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/hle/src/ReiNand/thread'
Makefile:70: recipe for target 'out/rei/thread/arm9.bin' failed
make: *** [out/rei/thread/arm9.bin] Error 2

I fixed this by renaming:

ReiNand/thread/source/FS.s
to
ReiNand/thread/source/FS.S

Now it compiles fine with my Linux setup using an armips linux binary.
That error doesnt happen here.. im supprised, lol. I'll add that for my next commit.

did you fix ReiNand emunand for N3ds?

It was never broken tho...?
 
That error doesnt happen here.. im supprised, lol. I'll add that for my next commit.
It was never broken tho...?
The error is caused by a hand written Makefile, and the spelling in it.
Windows takes UpperCase "A" as the same as LowerCase "a" for the file names.
However on UNIX-like systems, Linux, OSX, the OS treats "A" different as "a" in names.
So then he gets a "file not found" error when compiling.

Line marked out using comment on github.
 
The error is caused by a hand written Makefile, and the spelling in it.
Windows takes UpperCase "A" as the same as LowerCase "a" for the file names.
However on UNIX-like systems, Linux, OSX, the OS treats "A" different as "a" in names.
So then he gets a "file not found" error when compiling.

Line marked out using comment on github.
Yea i know how that works, but I thought that'd be up to the compiler to decide, and I use MinGW, which I assumed is as close to GCC as im getting on windows.. Either way, I'll throw it in when i steal add crypto libs for this.
 
Could you add file restructuring to your to-do list? :rolleyes:

/root
+/Reinand
++/cfw files and directories here...
What's wrong with the current setup? Anyways, if you wanna do it from source, all you'd have to do is edit the strings in the firm.c thats where all the file reading is done, as far as i remember.
 
What's wrong with the current setup? Anyways, if you wanna do it from source, all you'd have to do is edit the strings in the firm.c thats where all the file reading is done, as far as i remember.

Thanks.

My SD card looks like a mess because of files from other homebrew that need its crap on the root of the card.
 
Could you add file restructuring to your to-do list? :rolleyes:

/root
+/Reinand
++/cfw files and directories here...

For anyone else who's interested in doing something similar, here are the files and strings that I needed to edit:

ReiNand/source/draw.c
Code:
fileRead(fb->top_left, "/3ds/ReiNand/cfw/rei/splash.bin", 0x46500);

ReiNand/source/firm.c
Code:
fileRead((u8*)firmLocation, "/3ds/ReiNand/cfw/rei/firmware.bin", firmSize);
fileRead((u8*)emuCode, "/3ds/ReiNand/cfw/rei/emunand/emunand.bin", 0);
fileRead((u8*)threadCode, "/3ds/ReiNand/cfw/rei/thread/arm9.bin", 0);

ReiNand/ninjhax/source/main.c
Code:
FILE *fp = fopen("/3ds/ReiNand/cfw/reiNand.dat", "r");
 
I keep getting a error 2 when running make. Here is the last line of the error:

Code:
'data/firmware.bin' -> 'out/rei/firmware.bin'
'data/splash.bin' -> 'out/rei/splash.bin'
make[1]: Entering directory '/c/Users/Extra Account/000 compile cfw/Downloads/ReiNand-master/ReiNand-master/mset'
make[1]: *** No rule to make target 'Account/Downloads/000'. Stop.
make[1]: Leaving directory '/c/Users/Extra Account/000 compile cfw/Downloads/ReiNand-master/ReiNand-master/mset'
make: *** [out/Reinand.dat] Error 2

Anyone can help what may be wrong?
 
I keep getting a error 2 when running make. Here is the last line of the error:

Code:
'data/firmware.bin' -> 'out/rei/firmware.bin'
'data/splash.bin' -> 'out/rei/splash.bin'
make[1]: Entering directory '/c/Users/Extra Account/000 compile cfw/Downloads/ReiNand-master/ReiNand-master/mset'
make[1]: *** No rule to make target 'Account/Downloads/000'. Stop.
make[1]: Leaving directory '/c/Users/Extra Account/000 compile cfw/Downloads/ReiNand-master/ReiNand-master/mset'
make: *** [out/Reinand.dat] Error 2

Anyone can help what may be wrong?
Just a guess, but try moving it to a folder that doesnt have spaces in the path or doesnt have such a long path.
 
  • Like
Reactions: Zidapi
Just a guess, but try moving it to a folder that doesnt have spaces in the path or doesnt have such a long path.

I moved it but now getting the same error:

Code:
'data/firmware.bin' -> 'out/rei/firmware.bin'
'data/splash.bin' -> 'out/rei/splash.bin'
make[1]: Entering directory 'C:/ReiNand-master/mset'
make[1]: *** No rule to make target 'launcher'. Stop.
make[1]: Leaving directory 'C:/ReiNand-master/mset'
make: *** [out/Reinand.dat] Error 2
 
I moved it but now getting the same error:

Code:
'data/firmware.bin' -> 'out/rei/firmware.bin'
'data/splash.bin' -> 'out/rei/splash.bin'
make[1]: Entering directory 'C:/ReiNand-master/mset'
make[1]: *** No rule to make target 'launcher'. Stop.
make[1]: Leaving directory 'C:/ReiNand-master/mset'
make: *** [out/Reinand.dat] Error 2
It says its failing on the step for compiling the actual .dat, but it isnt very informative.
 
Yea, I released Mset for N3DS some time ago.
nice! ill go try!..
Yea, I released Mset for N3DS some time ago.
WOW Nice! downloaded and it works!
for some icing on the cake it would be awesome if in your menu to launch up ReiNand there was a option to also boot into gateway mode.
And if someone could make a launch to gateway.cia to run from inside ReiNand mode. but one step at a time:yay:
 
Hello, I'm clueless about all this stuff- I downloaded the precompiled version off the pastebin, and put the files (minus the .nds file) on the root of my sd card. But when I load it from the homebrew channel (cubic ninja on n3ds 9.0.0 pal) it just goes to a black screen. I'd like to be able to get to a higher firmware to play smash bros., so i figured a 9.5 emunand through this would do the trick, but I'm too stupid to get this to work in the first place...
 
Hello, I'm clueless about all this stuff- I downloaded the precompiled version off the pastebin, and put the files (minus the .nds file) on the root of my sd card. But when I load it from the homebrew channel (cubic ninja on n3ds 9.0.0 pal) it just goes to a black screen. I'd like to be able to get to a higher firmware to play smash bros., so i figured a 9.5 emunand through this would do the trick, but I'm too stupid to get this to work in the first place...

Make sure that you use "ReiNand.dat" and not "reiNand.dat" for ninjhax. I think the lowercase file is used for mset.

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

Try my modified build of ReiNand. See attachment.
https://github.com/3xkrazy/ReiNand

Extract and copy firmware.bin to:
ReiNand/cfw/rei/

Copy ReiNand/ to your 3ds/ folder.

Boot ReiNand from Ninjhax
 

Attachments

Last edited by 3xkrazy,
Make sure that you use "ReiNand.dat" and not "reiNand.dat" for ninjhax. I think the lowercase file is used for mset.

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

Try my modified build of ReiNand. See attachment.
https://github.com/3xkrazy/ReiNand

Extract and copy firmware.bin to:
ReiNand/cfw/rei/

Copy ReiNand/ to your 3ds/ folder.

Boot ReiNand from Ninjhax
That worked, thank you! Now as far as updating the firmware (still on 9.0.0) I assume I can't use any official channels? Also in Reinand mode there's no way I could accidentally update my actual sysnand firmware, right? Never used an emunand before.
 

Site & Scene News

Popular threads in this forum