From f116005a63c165f7dce81f59b901efdee8d4c022 Mon Sep 17 00:00:00 2001 From: israpps <57065102+israpps@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:17:18 -0300 Subject: [PATCH 1/2] load SECRMAN twice Should help if for whatever reason, neither Special or Retail SECRMAN remain resident on ram --- .vscode/settings.json | 5 ++++- Makefile | 2 +- src/main.cpp | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index cd63bcd..eff126c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -79,5 +79,8 @@ "_576p", "_720p", "doesFileExist" - ] + ], + "files.associations": { + "typeinfo": "cpp" + } } diff --git a/Makefile b/Makefile index 1fa4b4a..8f24ca9 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ IOP_MODULES = iomanx.o filexio.o \ sio2man.o mcman.o mcserv.o padman.o libsd.o \ usbd.o bdm.o bdmfs_fatfs.o \ usbmass_bd.o cdfs.o ds34bt.o ds34usb.o \ - secrsif.o IOPRP.o secrman.o poweroff.o \ + secrsif.o secrman.o IOPRP.o poweroff.o \ ps2dev9_irx.o ps2atad_irx.o ps2hdd_irx.o ps2fs_irx.o EMBEDDED_RSC = boot.o \ diff --git a/src/main.cpp b/src/main.cpp index 3d9ef5c..7983530 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -309,6 +309,8 @@ int main(int argc, char *argv[]) ret = SifExecModuleBuffer(&poweroff_irx, size_poweroff_irx, 0, NULL, &STAT); EPRINTF("[POWEROFF]: ret=%d, stat=%d\n", ret, STAT); + ret = SifExecModuleBuffer(&secrman_irx, size_secrman_irx, 0, NULL, &STAT); + EPRINTF("[SECRMAN_ALT]: ret=%d, stat=%d\n", ret, STAT); ret = SifExecModuleBuffer(&secrsif_debug_irx, size_secrsif_debug_irx, 0, NULL, &STAT); EPRINTF("[SECRSIF]: ret=%d, stat=%d\n", ret, STAT); From 24cd7cfda874f692535716c8baf6dce7228f82eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Fri, 15 Mar 2024 12:22:08 -0300 Subject: [PATCH 2/2] move secrman alternative load right after reset I forgot SECRMAN needs to be there before MCMAN or it's startup will fail --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7983530..8ac4c6e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -238,6 +238,9 @@ int main(int argc, char *argv[]) sbv_patch_disable_prefix_check(); sbv_patch_fileio(); + ret = SifExecModuleBuffer(&secrman_irx, size_secrman_irx, 0, NULL, &STAT); + EPRINTF("[SECRMAN_ALT]: ret=%d, stat=%d\n", ret, STAT); + init_scr(); #ifdef UDPTTY if (loadDEV9()) @@ -309,8 +312,6 @@ int main(int argc, char *argv[]) ret = SifExecModuleBuffer(&poweroff_irx, size_poweroff_irx, 0, NULL, &STAT); EPRINTF("[POWEROFF]: ret=%d, stat=%d\n", ret, STAT); - ret = SifExecModuleBuffer(&secrman_irx, size_secrman_irx, 0, NULL, &STAT); - EPRINTF("[SECRMAN_ALT]: ret=%d, stat=%d\n", ret, STAT); ret = SifExecModuleBuffer(&secrsif_debug_irx, size_secrsif_debug_irx, 0, NULL, &STAT); EPRINTF("[SECRSIF]: ret=%d, stat=%d\n", ret, STAT);