Hi.
I tried to compile the R4itool for from @lifehackerhansol to get rid off the timebomb from the original kernel from my r4i-sdhc,com card.
unfortunately i get a warning during the compiling and the resulting binary seems to work, but when it is done with patching the r4.dat the "fixed" r4.dat doesn't boot the kernel.
following is the commandline from my test environment (linux mint):
1st error (fixed by renaming DES.h to des.h):
2nd error/warning:
I tried to compile the R4itool for from @lifehackerhansol to get rid off the timebomb from the original kernel from my r4i-sdhc,com card.
unfortunately i get a warning during the compiling and the resulting binary seems to work, but when it is done with patching the r4.dat the "fixed" r4.dat doesn't boot the kernel.
following is the commandline from my test environment (linux mint):
1st error (fixed by renaming DES.h to des.h):
Code:
test@test-VirtualBox:~/r4itool-lifehackerhansol$ make
CC source/DES.c
source/DES.c:27:10: fatal error: des.h: No such file or directory
27 | #include "des.h"
| ^~~~~~~
compilation terminated.
make: *** [Makefile:151: build/source/DES.c.o] Error 1
2nd error/warning:
Code:
test@test-VirtualBox:~/r4itool-lifehackerhansol$ make
CC source/DES.c
CXX source/Main.cpp
In file included from source/Main.cpp:1:
include/R4i.hpp:18:43: warning: attribute ignored in declaration of ‘struct r4i::SecretArea’ [-Wattributes]
18 | alignas(2) struct __attribute__((packed)) SecretArea {
| ^~~~~~~~~~
include/R4i.hpp:18:43: note: attribute for ‘struct r4i::SecretArea’ must follow the ‘struct’ keyword
CXX source/R4i.cpp
In file included from source/R4i.cpp:5:
include/R4i.hpp:18:43: warning: attribute ignored in declaration of ‘struct r4i::SecretArea’ [-Wattributes]
18 | alignas(2) struct __attribute__((packed)) SecretArea {
| ^~~~~~~~~~
include/R4i.hpp:18:43: note: attribute for ‘struct r4i::SecretArea’ must follow the ‘struct’ keyword
source/R4i.cpp: In function ‘r4i::u32 r4i::genAreaChk(r4i::u16, r4i::u16, r4i::u16)’:
source/R4i.cpp:205:24: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘r4i::u32’ {aka ‘unsigned int’} [-Wformat=]
205 | sprintf(buffer, "%08lx", (static_cast<u32>(arm7chk) << 16) | arm9chk);
| ~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long unsigned int r4i::u32 {aka unsigned int}
| %08x
LD r4itool-lifehackerhansol