How to Use DevkitPro to Build CFW in Windows

A video tutorial can be found here:


Steps:

Grab devkitpro here: https://github.com/devkitPro/installer/releases

Grab Cygwin here: https://cygwin.com/install.html

Go to PC properties > Advanced system settings > Environment variables > add ;C:\devkitPro\devkitA64\bin and press OK


Now download ReiNX here: https://github.com/Reisyukaku/ReiNX

Extract the zip to your desktop

Open cmd and run the following commands:


cd desktop

cd ReiNX-master

make

Now open the ReiNX-master folder you extracted to your desktop and you'll find an 'out' folder which contains the compiled files you need on your SD card

You will need a way to inject the ReiNX.bin to your Switch. In my case I use TegraRCM which can be downloaded here:
https://gbatemp.net/threads/tegrarcmgui-simple-gui-for-tegrarcmsmash.503510/

Now all you have to do is open the TegraRCMGUI.exe and locate the ReiNX.bin file, connect your Switch to your PC (RCM Mode) and inject the payload to your Switch.

If TegraRCM doesn't detect your Switch you may need to install the APX drivers from here and make sure to install the libusk 3.0.7.0 drivers:
https://zadig.akeo.ie/

After you injected the .bin file your Switch should boot the CFW :)



Included in the attachment is a compiled version of ReiNX for those that don't want to compile :)
 

Attachments

  • rei.zip
    542.8 KB · Views: 299

natinusala

Win32 error 31 is not an error
Member
Joined
Dec 1, 2012
Messages
1,032
Trophies
0
Age
44
XP
2,914
Country
France
Let people use what they want. If you know so much why don't you make a tut instead of going around criticising everything

Because it's so simple it doesn't require a tutorial ? If you don't know how to download devkitpro and run "make", I don't think you should be compiling a WIP CFW anyway.

edit : you as in people, not you in particular
 

jakkal

Well-Known Member
Member
Joined
Apr 27, 2018
Messages
2,303
Trophies
1
Age
44
XP
3,982
Country
United States
Because it's so simple it doesn't require a tutorial ? If you don't know how to download devkitpro and run "make", I don't think you should be compiling a WIP CFW anyway.

edit : you as in people, not you in particular
love the elitist attitude
let people compile what they want. they have to start learning somewhere

also "downloading devkit pro and running make" doesnt just work as you claim
 

k3rizz3k

Well-Known Member
Member
Joined
Oct 16, 2008
Messages
334
Trophies
0
XP
801
Country
United States
love the elitist attitude
let people compile what they want. they have to start learning somewhere

also "downloading devkit pro and running make" doesnt just work as you claim
Correct. Even with this tut my pc is throwing errors when I try to make
 

slaphappygamer

Well-Known Member
Member
Joined
Nov 30, 2008
Messages
4,163
Trophies
2
Age
46
Location
California
XP
7,874
Country
United States
I’ve never compiled anything. I’ve always wanted to, but I wasn’t sure how to even start. I’ll try this guide so I can apply it in the future. Maybe I’ll try this cfw, at least just boot it to see if I can compile it properly. Thanks!
 
  • Like
Reactions: Nevercholt

k3rizz3k

Well-Known Member
Member
Joined
Oct 16, 2008
Messages
334
Trophies
0
XP
801
Country
United States
This is all I ever get when trying to compile in different environments
c:\devkitpro\devkitARM/bin/arm-none-eabi-gcc -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork -Os -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -c src/fs.c -o build/fs.o
make: *** [Makefile:50: build/fs.o] Error 1
 

Moquedami

Well-Known Member
Member
Joined
Nov 16, 2006
Messages
436
Trophies
1
XP
1,824
Country
Argentina
This is all I ever get when trying to compile in different environments
c:\devkitpro\devkitARM/bin/arm-none-eabi-gcc -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork -Os -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -c src/fs.c -o build/fs.o
make: *** [Makefile:50: build/fs.o] Error 1

Im getting the same error.
Something is missing in the guide.
Anyone can help?
(in my case i placed the unzipped in C:

C:\ReiNX-master>make
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -march=armv4t -mtune=arm7tdmi -mt
humb -mthumb-interwork -Os -nostdlib -ffunction-sections -fdata-sections -fomit-
frame-pointer -fno-inline -std=gnu11 -c src/fs.c -o build/fs.o
make: *** [Makefile:50: build/fs.o] Error 1
 
Last edited by Moquedami,

k3rizz3k

Well-Known Member
Member
Joined
Oct 16, 2008
Messages
334
Trophies
0
XP
801
Country
United States
Im getting the same error.
Something is missing in the guide.
Anyone can help?
(in my case i placed the unzipped in C:

C:\ReiNX-master>make
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -march=armv4t -mtune=arm7tdmi -mt
humb -mthumb-interwork -Os -nostdlib -ffunction-sections -fdata-sections -fomit-
frame-pointer -fno-inline -std=gnu11 -c src/fs.c -o build/fs.o
make: *** [Makefile:50: build/fs.o] Error 1
I actually pulled out my old linux laptop and compiled with that, since windows wasn't cooperating with me.
 

masterzed

Well-Known Member
Member
Joined
Oct 31, 2015
Messages
108
Trophies
0
Age
43
XP
246
Country
Gambia, The
Im getting the same error.
Something is missing in the guide.
Anyone can help?
(in my case i placed the unzipped in C:

C:\ReiNX-master>make
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -march=armv4t -mtune=arm7tdmi -mt
humb -mthumb-interwork -Os -nostdlib -ffunction-sections -fdata-sections -fomit-
frame-pointer -fno-inline -std=gnu11 -c src/fs.c -o build/fs.o
make: *** [Makefile:50: build/fs.o] Error 1

same error on windows. any solution ? thanks alot
 

dj_skual

Code & Mix
Member
Joined
Mar 9, 2008
Messages
1,014
Trophies
1
Website
sourceforge.net
XP
2,639
Country
France
This is all I ever get when trying to compile in different environments
c:\devkitpro\devkitARM/bin/arm-none-eabi-gcc -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork -Os -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -c src/fs.c -o build/fs.o
make: *** [Makefile:50: build/fs.o] Error 1

Same error here on Windows 10 :(
 

carstene1ns

Well-Known Member
Newcomer
Joined
Apr 1, 2018
Messages
72
Trophies
0
Website
f4ke.de
XP
588
Country
Germany
My two cents:
  • You need devkitARM, not devkitA64 for ReiNX.
  • You do not need to tinker with environment variables, the installer will do this already.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Dude just shat himself.