Hacking Official [Source Release] ReiNand CFW

  • Thread starter Thread starter Reisyukaku
  • Start date Start date
  • Views Views 986,179
  • Replies Replies 6,480
  • Likes Likes 115
Getting

sh.exe": make: command not found

Not finding a solution through google, or at least not finding anything relevant to windows.

Make is a command that doesn't exist natively within Windows. To add it, follow these steps:

1) Download MinGW-get-setup.

2) Once you've installed it, open MinGw Installer and select 'mingw-developer-toolkit'.

3) Click Installation and then Apply Changes.

4) Now you need to set it so that Windows Command Prompt will recognise 'Make' as a command, to do this you need to add the directory you just installed to your Environmental Variables. If you are on Windows 8/10 this is in Control Panel/System/Advanced System Settings/Environmental Variables.

5) Once here you will see two boxes. One labelled 'User Variables' and the other 'System Variables'. DO NOT TOUCH ANYTHING IN SYSTEM VARIABLES! Under 'User Variables', Add a new variable called 'PATH' (If it already exists, just edit it) and put in the two directory bin folders you just installed, separating each directory with a ';' (Default is 'C:\MinGW\bin;C:\MinGW\msys\1.0\bin').

6) Click OK to save everything.

Now if you enter cmd and type in 'Make' it should recognise the command
 
Make is a command that doesn't exist natively within Windows. To add it, follow these steps:

1) Download MinGW-get-setup.

2) Once you've installed it, open MinGw Installer and select 'mingw-developer-toolkit'.

3) Click Installation and then Apply Changes.

4) Now you need to set it so that Windows Command Prompt will recognise 'Make' as a command, to do this you need to add the directory you just installed to your Environmental Variables. If you are on Windows 8/10 this is in Control Panel/System/Advanced System Settings/Environmental Variables.

5) Once here you will see two boxes. One labelled 'User Variables' and the other 'System Variables'. DO NOT TOUCH ANYTHING IN SYSTEM VARIABLES! Under 'User Variables', Add a new variable called 'PATH' (If it already exists, just edit it) and put in the two directory bin folders you just installed, separating each directory with a ';' (Default is 'C:\MinGW\bin;C:\MinGW\msys\1.0\bin').

6) Click OK to save everything.

Now if you enter cmd and type in 'Make' it should recognise the command

After entering

cd Reinand -> make - It just hangs after that. Nothing I can do but close the program. xD
 
I get this when compiling. I'm assuming it has to do with failing to properly add armips to my PATH variable or something.
Code:
arm-none-eabi-gcc -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

make: arm-none-eabi-gcc: Command not found
make: *** [build/draw.o] Error 127
 
I get this when compiling. I'm assuming it has to do with failing to properly add armips to my PATH variable or something.
Code:
arm-none-eabi-gcc -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

make: arm-none-eabi-gcc: Command not found
make: *** [build/draw.o] Error 127
That error has nothing to do with armips.
as it says, it isn't finding arm-none-eabi-gcc so that path obviously isn't setup correctly.
 
That error has nothing to do with armips.
as it says, it isn't finding arm-none-eabi-gcc so that path obviously isn't setup correctly.
Ah, okay. I've been trying to troubleshoot, but I'm a rather out of my league with this. In that case, it sounds like that is part of DevKitPro. I haven't tried doing anything with that yet.
 
anyone know what this error means thanks

make[1]: Entering directory `/d/ReiNand/mset'
make[1]: *** No rule to make target `launcher'. Stop.
make[1]: Leaving directory `/d/ReiNand/mset'
make: *** [out/ReiNand.dat] Error 2
 
anyone know what this error means thanks

make[1]: Entering directory `/d/ReiNand/mset'
make[1]: *** No rule to make target `launcher'. Stop.
make[1]: Leaving directory `/d/ReiNand/mset'
make: *** [out/ReiNand.dat] Error 2
means you did not clone the submodules when you cloned the repo

This should fix it, just run in the ReiNand repo folder you cloned:
Code:
git submodule update --init
 
  • Like
Reactions: Serphirot
I'm... supposed to have DevKitPro installed aren't I. Well, I do now in any case. However, I still can't get it to recognize that all of that stuff exists after putting it in the PATH variable.
 
Okay heres a quick guide I've just made on how to compile ReiNand in Windows 8/10.

Download the following files:
GitHub
devkitPro
Python
gcc-arm-none-eab
MinGW-get-setup
firmware.bin & armips.exe (Linked on the Git).

Install GitHub.
Install devkitPro.
Install Python.
Install gcc-arm-none-eab (At the end of setup make sure you tick the 'Environmental Variables' option).
Install MinGW-get-setup, open the MinGw Installer and select 'mingw-developer-toolkit'. Then select Installation and Apply Changes.
Copy armips.exe to it's own folder (e.g. 'C:\CommandPrograms').

Navigate to Control Panel/System/Advanced System Settings/Environmental Variables.

You will see two boxes. One labelled 'User Variables' and the other 'System Variables'. DO NOT TOUCH ANYTHING IN SYSTEM VARIABLES!

Under 'User Variables', edit the variable called 'PATH' (create it if it's not there) and ADD armips, Python and the MinGW bin directories to the list, separating each directory with a ';'.

(Default is 'C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\CommandPrograms;C:\Python34;').

(NOTE: If GNU Tools isn't mentioned at all in your PATH, then you must have missed the tick box earlier when installing the program. If this is the case; just add the bin folder of the location it's installed in to the list. E.g. 'C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2015q2\bin;').

Click OK to save the changes.

In Git Shell, type in 'git clone --recursive https://github.com/Reisyukaku/ReiNand.git'. This will add ReiNand source to your GitHub directory.

Copy the firmware.bin file into the ReiNand\data directory.

(For some reason if I try to build ReiNand in Git Shell, it crashes on my system. Not sure if this is Windows 10 related, but for the rest of the tutorial I used the normal command prompt).

Type in 'cd (wherever ReiNand is)'.

Type in 'make'.

As long as this was successful, it should compile the source code to the ReiNand\Out directory.

Enjoy, and thanks to Reisyukaku for providing the source code!
 
Last edited by Spong92,
That would explain all the trouble I was having! I didn't realize all of the mini-guides were aimed at people who were already developing and as such had a proper general setup! Thank you so much! :yay:

Still can't quite make it, as when I try to download the source code I get this error:
Code:
Submodule 'mset' ([email protected]:Reisyukaku/mset.git) registered for path 'mset

Cloning into 'mset'...
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to
he list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:Reisyukaku/mset.git' into submodule path 'mset' failed

I'm assuming there is just something else I don't know at this point. =P
 
That would explain all the trouble I was having! I didn't realize all of the mini-guides were aimed at people who were already developing and as such had a proper general setup! Thank you so much! :yay:

Still can't quite make it, as when I try to download the source code I get this error:
Code:
Submodule 'mset' ([email protected]:Reisyukaku/mset.git) registered for path 'mset

Cloning into 'mset'...
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to
he list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:Reisyukaku/mset.git' into submodule path 'mset' failed

I'm assuming there is just something else I don't know at this point. =P

No worries! Happy to give back to the community in some way haha.

I suspect your error is to do with an update Reisyukaku is doing to the mset code. Try it again later after he's finished updating :)
 
  • Like
Reactions: ChaosEternal

Yeah, Git Bash was also crashing for me. Using cmd seems to actually attempt to get something done :P

Still getting an error with the creation though. Also couldn't download the mSet file since Rei is editing it (Didn't think much of it though.)
This is what I got from the command prompt

Code:
C:\Users\Anonymous\ReiNand>make
arm-none-eabi-gcc -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 -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -march=armv5te
-fno-builtin -fshort-wchar -std=c11 -Wno-main  -c -o build/emunand.o source/emu
nand.c
arm-none-eabi-gcc -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -march=armv5te
-fno-builtin -fshort-wchar -std=c11 -Wno-main  -c -o build/fatfs/diskio.o sourc
e/fatfs/diskio.c
arm-none-eabi-gcc -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/fa
tfs/ff.c
arm-none-eabi-gcc -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 -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
arm-none-eabi-gcc -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -march=armv5te
-fno-builtin -fshort-wchar -std=c11 -Wno-main  -c -o build/firm.o source/firm.c

arm-none-eabi-gcc -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -march=armv5te
-fno-builtin -fshort-wchar -std=c11 -Wno-main  -c -o build/fs.o source/fs.c
source/fs.c: In function 'fileReadOffset':
source/fs.c:45:34: warning: passing argument 4 of 'f_read' from incompatible poi
nter type
  fr = f_read(&fp, dest, size, &br);
  ^
In file included from source/fs.c:7:0:
source/fatfs/ff.h:214:9: note: expected 'UINT *' but argument is of type 'u32 *'

FRESULT f_read (FIL* fp, void* buff, UINT btr, UINT* br);  /* Read data from a
file */
  ^
source/fs.c: In function 'fileWrite':
source/fs.c:67:41: warning: passing argument 4 of 'f_write' from incompatible po
inter type
  fr = f_write(&fp, buffer, size, &br);
  ^
In file included from source/fs.c:7:0:
source/fatfs/ff.h:215:9: note: expected 'UINT *' but argument is of type 'u32 *'

FRESULT f_write (FIL* fp, const void* buff, UINT btw, UINT* bw); /* Write data
to a file */
  ^
arm-none-eabi-gcc -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -march=armv5te
-fno-builtin -fshort-wchar -std=c11 -Wno-main  -c -o build/main.o source/main.c

arm-none-eabi-gcc -MMD -MP -marm -mlittle-endian -mcpu=arm946e-s -march=armv5te
-fno-builtin -fshort-wchar -std=c11 -Wno-main  -c -o build/memory.o source/memo
ry.c
arm-none-eabi-as -mlittle-endian -mcpu=arm946e-s -march=armv5te  -o build/start.
o source/start.s
# FatFs requires libgcc for __aeabi_uidiv
arm-none-eabi-gcc -nostartfiles  -T linker.ld -o build/main.elf build/draw.o bui
ld/emunand.o build/fatfs/diskio.o build/fatfs/ff.o build/fatfs/option/syscall.o
build/fatfs/sdmmc/delay.o build/fatfs/sdmmc/sdmmc.o build/firm.o build/fs.o buil
d/main.o build/memory.o build/start.o
arm-none-eabi-objcopy -S -O binary build/main.elf build/main.bin
`data/firmware.bin' -> `out/rei/firmware.bin'
`data/splash.bin' -> `out/rei/splash.bin'
make: *** mset: No such file or directory.  Stop.
make: *** [out/ReiNand.dat] Error 2
 

Site & Scene News

Popular threads in this forum