libkernel: support kern.sdk_version in sysctlbyname (Capy Mobile PPSA92280) #2701
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-10T11:31:52Z.
Capy Mobile (
PPSA92280) loads with 0 absent imports on Windows on currentmain(b5f5362d) but stops at start-up with:The title queries
sysctlbyname("kern.sdk_version", ...)insrc/ps5/platform.c:64-71to inspect firmware/SDK version. Incore/libs/prx/libkernel/System/src/SystemConfiguration.cpp,sysctlbynamepreviously only handledhw.ncpuand threw for all other names.Fix:
pushkarreddyy/AnyPS5:feat/libkernel-sysctl-sdk-version(commitbc53426e, onmainb5f5362d).kern.sdk_versionreturning 4-byteuint32_t0x01000000(1.00) matching PS5 baseline launch SDK formatting.newValue != nullptr) witherrno = 1(EPERM), preserving read-only MIB semantics.ENOMEM).core/libs/tests/GuestSystemConfiguration.cppvalidating length queries, value retrieval, buffer truncation, and write rejection.docs/dev/TechnicalDebt.md.python tools/check_conventions.py --base b5f5362d(100% passed).Details in #2697 (closed by the intake pause).
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T12:09:43Z.
Revisé el cambio de #2697 contra
mainactual (197ffac9, 2026-10-10).kern.sdk_versionsigue sin estar implementado enSystemConfiguration.cpp; no encontré otro PR abierto que cubrasysctlbynamepara ese nombre.b5f5362d, dos commits antes demain. Esos commits posteriores afectan gráficos y documentación, no los tres archivos del cambio. Comparé el parche con la base actual: son los mismos tres archivos ygit diff --checkno reporta errores.CopyOut, cuya lógica ya soporta consulta de longitud, copias limitadas yENOMEM. Los tests añadidos cubren esos casos y que los writes fallen conEPERM.0x01000000: el PR lo documenta como SDK 1.00, pero no hay evidencia de consola en el issue. Conviene validar ese supuesto en hardware o con una fuente primaria antes de darlo por exacto.El PR #2697 fue cerrado automáticamente por la pausa de intake, no por una revisión técnica.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-10T12:40:19Z.
¡Gracias por la revisión y por verificar el parche contra
mainactual, @MarcZX100!Respecto al valor
0x01000000:(major << 24) | (minor << 16) | (patch << 8)), que también es el patrón de referencia usado en emuladores como shadPS4 y homebrew de PS4/PS5.kern.sdk_versionensrc/ps5/platform.c:64-71para formatear y mostrar la cadena de versión del SDK.docs/dev/TechnicalDebt.mdbajo### Unknown function info, de modo que pueda refinarse en cuanto se disponga de capturas de hardware o telemetría desceKernelGetSystemSwVersion.Ya he rebaseado la rama
pushkarreddyy:feat/libkernel-sysctl-sdk-versiondirectamente sobre elmainactual con todos los checks de convenciones pasando al 100%. ¡Agradezco mucho que alguien con acceso de intake pueda llevarlo al merge train!Thank you for the review and for testing the patch against current
main, @MarcZX100!Regarding the
0x01000000value:(major << 24) | (minor << 16) | (patch << 8)), which matches the convention used in emulators like shadPS4 and PS4/PS5 toolchains.kern.sdk_versioninsrc/ps5/platform.c:64-71to format and display the SDK version string.docs/dev/TechnicalDebt.mdunder### Unknown function info, so it can be refined once hardware telemetry orsceKernelGetSystemSwVersioncaptures become available.I have rebased the branch
pushkarreddyy:feat/libkernel-sysctl-sdk-versiononto currentmainwith all convention checks passing 100%. Happy for anyone with intake access to carry it into a merge train!Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T13:01:03Z.
I refreshed pushkarreddyy’s author-attributed
kern.sdk_versionimplementation onto upstreammain(5edae353). The fork branch iscodex/sysctl-sdk-version-2701, at6699f7a93.libkernelandguest_system_configuration_testsguest_system_configurationtools/check_conventions.py --base upstream/maingit diff --check upstream/main...HEADThe tests cover the size query, value retrieval, preserved errno, short-buffer
ENOMEM, and write rejection withEPERM. The reported value0x01000000is the documented SDK 1.00 baseline assumption; it has not been measured on retail PS5 hardware. Windows, macOS and title startup were not tested here.I found no open PR for this issue and have not opened one because the repository intake workflow still requires 20 merged PRs; my live merged count is 15. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-10T13:05:53Z.
Por cierto @MarcZX100, también acabo de implementar las dos exportaciones ausentes donde se detiene The Last of Us Part II Remastered (
PPSA15508 v02.001.010) al inicio enmain:sceSslUnloadCert(NIDUQ+3Qu7v3cA) enlibSceSsl(donde se detiene el cargador)sceVoiceGetMuteFlag(NIDPc4z1QjForU) enlibSceVoiceAmbas incluyen pruebas unitarias en
core/libs/tests/, soporte de desenrollado DWARF para MinGW y registro enTechnicalDebt.md, pasando todas las convenciones al 100%.Acabo de abrir el PR aquí:
👉 PR #2753: https://github.com/boykopovar/AnyPS5/pull/2753
Rama:
pushkarreddyy:feat/tlou2-missing-exportsBy the way @MarcZX100, I also just implemented the two absent exports where The Last of Us Part II Remastered (
PPSA15508 v02.001.010) halts at startup onmain:sceSslUnloadCert(NIDUQ+3Qu7v3cA) inlibSceSsl(where the loader currently stops)sceVoiceGetMuteFlag(NIDPc4z1QjForU) inlibSceVoiceBoth include unit test coverage in
core/libs/tests/, MinGW DWARF unwind support, and tracking inTechnicalDebt.md, passing all convention checks 100%.I just opened the PR here:
👉 PR #2753: https://github.com/boykopovar/AnyPS5/pull/2753
Branch:
pushkarreddyy:feat/tlou2-missing-exportsImported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-10T18:11:39Z.
hey @MarcZX100 can u merge into main now
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T21:24:43Z.
Thanks for asking. I cannot merge commits into upstream main. PR #2753 was automatically closed by the intake workflow while intake was paused; its passing checks do not authorize merging. Please leave your branch intact and ask an upstream maintainer whether they want the PR reopened or resubmitted.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T11:55:51Z.
Update: Carried in #2902 by @oneandonlydean with authorship preserved. All CI checks on #2902 are passing. Calling on maintainers @oneandonlydean, @adriadam10, and @MarcZX100 to review and merge when convenient!
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T06:16:48Z.
Closing: fixed by #2902.
sysctlbyname("kern.sdk_version")answers on main (System/src/SystemConfiguration.cpp:160). Reopen if PPSA92280 still stops there on current main.