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: 298

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,304
Trophies
3
XP
12,091
Country
Poland
can anyone help me fix this error

x0): multiple definition of `sd_power_cycle_time_start'; build/bootloader.o:(.bss.sd_power_cycle_time_start+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:93: build/ReiNX.elf] Error 1
Why can't you just ask ReinX about their stuff?
They need to fix their stuff to make it work with newest gcc, so you won't compile it without downgrading devkit. And how to do that - i don't know.
 

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
530
Trophies
0
XP
929
Country
Bulgaria
Why can't you just ask ReinX about their stuff?
They need to fix their stuff to make it work with newest gcc, so you won't compile it without downgrading devkit. And how to do that - i don't know.

you are sure this is the issue the new gcc version and not something else
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,304
Trophies
3
XP
12,091
Country
Poland
you are sure this is the issue the new gcc version and not something else
Yes, I'm sure. Many repos broke after last devkit update. Mainly ones that have shitton of repeated includes that need to be handled more pretty. :P

You won't even compile Atmosphere 0.12.0 now.
 

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
530
Trophies
0
XP
929
Country
Bulgaria
Yes, I'm sure. Many repos broke after last devkit update. Mainly ones that have shitton of repeated includes that need to be handled more pretty. :P

You won't even compile Atmosphere 0.12.0 now.

Thanks i will try installing an older version if i can

EDIT: tried lots of old builds devkitarm devkita64 libnx and so on all the and still dosnt work
 
Last edited by LyuboA,

scandal_uk

Not Really There
Member
Joined
Oct 3, 2005
Messages
322
Trophies
0
Location
UK
XP
580
Country
United Kingdom
With the latest devkitarm build I have found that I have had to add the flag --allow-multiple-definition to a few different makefiles to get them to compile
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    WPiso @ WPiso: m