Switch-OC-Suite

  • Thread starter meha
  • Start date
  • Views 132,662
  • Replies 744
  • Likes 32

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,270
Country
Chile
@meha I'm following your instructions to compile Atmosphere and include your OC module, my goal is build Atmosphere that includes my own changes (I already compiled my build and it's working correctly) and fuse it with your OC module, this is what I'm doing:
  • Download Switch-OC-Suite as zip from your source.
  • Extract the zip and copy over the oc folder and patch.py and paste into my local Atmosphere build C:\Users\cucho\Atmosphere\stratosphere\loader\source
  • Double click on patch.py, it will show the process in percentage of patching around 3000 files, it reaches 100% and the window closes.
  • I proceed to edit my own Atmosphere files in order to create a custom Atmosphere build.
  • I compile Atmosphere.
  • Extract the resulting loader.kip and uncompress with hactool.
  • The resulting loader.kip is 242kb (there's a difference in size respect the loader.kip from the online configurator)
  • I load my loader.kip in the online configurator and it displays a pop-up message indicating "Error: invalid loader.kip"
I should add that I'm working with atmosphere 1.5.4 (pre-release) source, however it works correctly.
 
Last edited by cucholix,

huyincai

Member
Newcomer
Joined
Apr 2, 2023
Messages
18
Trophies
0
Age
21
XP
195
Country
China
@meha I'm following your instructions to compile Atmosphere and include your OC module, my goal is build Atmosphere that includes my own changes (I already compiled my build and it's working correctly) and fuse it with your OC module, this is what I'm doing:
  • Download Switch-OC-Suite as zip from your source.
  • Extract the zip and copy over the oc folder and patch.py and paste into my local Atmosphere build C:\Users\cucho\Atmosphere\stratosphere\loader\source
  • Double click on patch.py, it will show the process in percentage of patching around 3000 files, it reaches 100% and the window closes.
  • I proceed to edit my own Atmosphere files in order to create a custom Atmosphere build.
  • I compile Atmosphere.
  • Extract the resulting loader.kip and uncompress with hactool.
  • The resulting loader.kip is 242kb (there's a difference in size respect the loader.kip from the online configurator)
  • I load my loader.kip in the online configurator and it displays a pop-up message indicating "Error: invalid loader.kip"
I should add that I'm working with atmosphere 1.5.4 (pre-release) source, however it works correctly.
You need to run makefile twice.First run the makefile in oc,then run makefile in loader.
 

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,270
Country
Chile
You need to run makefile twice.First run the makefile in oc,then run makefile in loader.
Thanks for your reply, I get this error when trying to compile the makefile in oc:
Code:
cucho@DESKTOP-C8H5KJR MSYS ~/Atmosphere/stratosphere/loader/source/oc
$ make
oc_test.cpp
oc_test.cpp: In function ‘Result Test_PcvDvfsTable()’:
oc_test.cpp:68:5: error: ‘assert’ was not declared in this scope
   68 |     assert(GetDvfsTableEntryCount((cvb_entry_t *)(&mariko::CpuCvbTableDefault)) == 18);
      |     ^~~~~~
oc_test.cpp:20:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
   19 | #include "oc_loader.hpp"
  +++ |+#include <cassert>
   20 |
oc_test.cpp:87:23: error: comparison of integer expressions of different signedness: ‘int’ and ‘const size_t’ {aka ‘const long unsigned int’} [-Werror=sign-compare]
   87 |     for (int i = 0; i < limit; i++) {
      |                     ~~^~~~~~~
oc_test.cpp:88:57: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
   88 |         assert(GetDvfsTableEntryCount(customized_table) == i);
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
oc_test.cpp:91:28: error: comparison of integer expressions of different signedness: ‘u64’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
   91 |             assert(p->freq == i);
      |                    ~~~~~~~~^~~~
oc_test.cpp: In function ‘int main(int, char**)’:
oc_test.cpp:163:17: error: ‘strlcpy’ was not declared in this scope; did you mean ‘strncpy’?
  163 |                 strlcpy(exec_path_erista, exec_path, exec_path_patched_len);
      |                 ^~~~~~~
      |                 strncpy
oc_test.cpp:164:17: error: ‘strlcat’ was not declared in this scope; did you mean ‘strncat’?
  164 |                 strlcat(exec_path_erista, erista_ext, exec_path_patched_len);
      |                 ^~~~~~~
      |                 strncat
oc_test.cpp:179:17: error: ‘strlcpy’ was not declared in this scope; did you mean ‘strncpy’?
  179 |                 strlcpy(exec_path_mariko, exec_path, exec_path_patched_len);
      |                 ^~~~~~~
      |                 strncpy
oc_test.cpp:180:17: error: ‘strlcat’ was not declared in this scope; did you mean ‘strncat’?
  180 |                 strlcat(exec_path_mariko, mariko_ext, exec_path_patched_len);
      |                 ^~~~~~~
      |                 strncat
oc_test.cpp:196:13: error: ‘strlcpy’ was not declared in this scope; did you mean ‘strncpy’?
  196 |             strlcpy(exec_path_mariko, exec_path, exec_path_patched_len);
      |             ^~~~~~~
      |             strncpy
oc_test.cpp:197:13: error: ‘strlcat’ was not declared in this scope; did you mean ‘strncat’?
  197 |             strlcat(exec_path_mariko, mariko_ext, exec_path_patched_len);
      |             ^~~~~~~
      |             strncat
cc1plus: all warnings being treated as errors
make: *** [Makefile:42: build/./oc_test.cpp.o] Error 1
Edit: Fixed compilation issues using @masagrator PR
 
Last edited by cucholix,

meha

Well-Known Member
OP
Member
Joined
Feb 12, 2023
Messages
216
Trophies
0
Age
29
XP
854
Country
Korea, South
@meha I'm following your instructions to compile Atmosphere and include your OC module, my goal is build Atmosphere that includes my own changes (I already compiled my build and it's working correctly) and fuse it with your OC module, this is what I'm doing:
  • Download Switch-OC-Suite as zip from your source.
  • Extract the zip and copy over the oc folder and patch.py and paste into my local Atmosphere build C:\Users\cucho\Atmosphere\stratosphere\loader\source
  • Double click on patch.py, it will show the process in percentage of patching around 3000 files, it reaches 100% and the window closes.
  • I proceed to edit my own Atmosphere files in order to create a custom Atmosphere build.
  • I compile Atmosphere.
  • Extract the resulting loader.kip and uncompress with hactool.
  • The resulting loader.kip is 242kb (there's a difference in size respect the loader.kip from the online configurator)
  • I load my loader.kip in the online configurator and it displays a pop-up message indicating "Error: invalid loader.kip"
I should add that I'm working with atmosphere 1.5.4 (pre-release) source, however it works correctly.
you missed running patch.py (python3)
oh wait nvm i misread.
thanks to masa for fixing
 

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,270
Country
Chile
you missed running patch.py (python3)
oh wait nvm i misread.
thanks to masa for fixing
Completed building the loader.kip but the online configurator keeps throwing "Error: invalid loader.kip", will wait until 1.5.4 support, I guess it's not going to work with pre-release.
 

huyincai

Member
Newcomer
Joined
Apr 2, 2023
Messages
18
Trophies
0
Age
21
XP
195
Country
China
Completed building the loader.kip but the online configurator keeps throwing "Error: invalid loader.kip", will wait until 1.5.4 support, I guess it's not going to work with pre-release.
I tried yesterday and it works.Is your kip file 272 KB?
 

krakotay

Member
Newcomer
Joined
Aug 11, 2022
Messages
6
Trophies
0
Age
24
Location
Moscow
XP
74
Country
Russia
For anyone asking, he can't share his Telegram channel since he still haven't release the source code for 4fir as asked previously.

Also hi people on his telegram! This will probably be uploaded there as well since he likes to lie :3

Ok, so, that's screenshot. That's development product of Cooler3D with release date 15 may, not from meha
Снимок экрана 2023-05-28 в 09.56.30.png
 
Last edited by krakotay,

meha

Well-Known Member
OP
Member
Joined
Feb 12, 2023
Messages
216
Trophies
0
Age
29
XP
854
Country
Korea, South
Where can I find that tool? I’d like to do some comparisons.

Thank you!
it's micromembench, which is fork of tinymembench(by KazuhiMe) by Cooler.

You can compile tinymembench yourself from OC-Suite source code, or I believe you can find precompiled one in old OC-Suite thread
Post automatically merged:

then you fail to patch oc module to loader.Try python3 patch.py .
yes you actually need to use python3 for that.
btw someone already tested and confirmed 1.5.3 version working with 1.5.4 prelease
 
Last edited by meha,
  • Like
Reactions: linuxares

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,270
Country
Chile
I tried yesterday and it works.Is your kip file 272 KB?
The compressed file is 127 KB (130.324 bytes)
When uncompressing now I got a 270kb kip now but in the online configurator appears Error: Unsupported custRev, expected: 4 or 6, got 5
I'm using msys, do you uncompress through it too? Because when trying to invoke hactool in msys it says
"-bash: hactool: command not found"
 
Last edited by cucholix,

meha

Well-Known Member
OP
Member
Joined
Feb 12, 2023
Messages
216
Trophies
0
Age
29
XP
854
Country
Korea, South
The compressed file is 127 KB (130.324 bytes)
When uncompressing now I got a 270kb kip now but in the online configurator appears Error: Unsupported custRev, expected: 4 or 6, got 5
I'm using msys, do you uncompress through it too? Because when trying to invoke hactool in msys it says
"-bash: hactool: command not found"
oc suite was updated today. cust_rev was changed because compatibility breaks. build with new sources.
I use linux not windows
if you don't uncompress, it will not work with sys-clk-oc
 

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,270
Country
Chile
oc suite was updated today. cust_rev was changed because compatibility breaks. build with new sources.
I use linux not windows
if you don't uncompress, it will not work with sys-clk-oc
It's working now, I’m able to load the kip in the online configurator, I set it to 1862…

However when I set RAM OC to 1862 in the overlay the real OC is 1996.
Already updated switch-oc-suite source, and binaries (SD out)

Edit: when I set 1996, the mem displays 1862

Inked2023052812002500-57B4628D2267231D57E0FC1078C0596D.jpg

Went back to 1.5.3-v1.30 but the issue persist


Edit2: It was my fault, I left both kips (1862/1996) in the kips folder but renamed, it seems ams still can read loader.kip regardless the name.
 
Last edited by cucholix,
  • Like
Reactions: linuxares

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.timeextension.com/news/2024/04/new-konami-code-discovered-in-castlevania-game-25-year...