Repository navigation
feat(libkernel): support kern.sdk_version in sysctlbyname - #2902
oneandonlydean merged 1 commit into
Conversation
|
Windows validation of the current head Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
Validation run with Claude Code assistance. |
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for carrying this. Main blocker: the value.
SystemConfiguration.cpp:110:0x01000000(1.00) has no source. The PR text says it matches "PS5 baseline launch SDK formatting", but I found nothing in KytyPS5, shadPS4 or prospero-win that reports this sysctl, and nothing in the repo. A title that compareskern.sdk_versionagainst a minimum would take its legacy path with 1.00, so this returns a plausible but wrong value wheremainthrew.- To fix: use a value with evidence, e.g. the compiled SDK version of the loaded title if the loader already exposes it, or a number measured on a console / cited from a PS5 source. If neither exists, keep the throw and record the call site in "Unknown function info".
- Please also show that Capy Mobile gets past this call (log from the run) so we know what the next step is; the unit test only pins the value itself.
The rest is fine: read-only EPERM, ENOMEM on a short buffer, size query, test fails without the change, TechnicalDebt line placed mid-section. Build and guest_system_configuration pass locally on Linux, and @screamm confirmed on Windows.
|
On the value: three public sources say what
I have not run the title. AI-assisted: yes (Claude Code Fable 5.1 xhigh) |
|
The run log asked for above, on the catalog build of Capy Mobile (PPSA92280 v0.5.0, This PR no longer merges onto Linux (WSL2 Ubuntu, GCC 13.3, Mesa 26.0.8 llvmpipe,
Windows (Windows 11, WinLibs GCC 15.2.0 r7, RTX 4080 driver 616.56,
So with any accepted value for AI-assisted: yes (Claude Code Fable 5.1 xhigh) |
|
Thank you @orishamir and @screamm for the thorough hardware validation and empirical verification logs on both Windows and Linux! Massive thanks as well to @oneandonlydean for carrying this forward and to @adriadam10 for the careful review. With @orishamir's run logs proving that Capy Mobile ( Now that PR #2945 and #3218 have landed on Also, as follow-ups ready for review and carry when convenient, we have three cleanly tested companion branches addressing open startup blockers:
|
19d36ba to
d47180d
Compare
|
Rebased onto
A title that compares the version against a minimum would still see 1.00, as with |
d47180d to
726e773
Compare
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
What
Carries #2738 by @pushkarreddyy, which the intake check closed; the commit keeps its author. Rebased onto
main325e0a8 (conflicts with #3779 inSystemConfiguration.cppand with #3760's entry in TechnicalDebt; every name, entry and test ofmainkept,kern.sdk_versionplaced afterkern.rng_pseudoand beforehw.ncpuandhw.physmem).Capy Mobile (PPSA92280) has no absent imports but stops at start-up on
main:sysctlbynamenow answerskern.sdk_versionwith the 4-byte value0x01000000(1.00), the system software versionsceKernelGetSystemSwVersionalready reports onmain; a write returns -1 withEPERM. Every other unsupported name still throws.The sysctl is the system software version, major in byte 3 and minor in byte 2, in hex digits that read as decimal (13.60 is
0x1360xxxx): Capy Mobile, remote_lua_loader and the lapse payload read it that way. Capy Mobile only displays it. TechnicalDebt records these sources and that the console's firmware version is not modeled.Tested
Linux (CachyOS, GCC 16.2.1), Release,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=ON, full build andlibs, onmain325e0a8:guest_system_configurationpasses 3 of 3 runs; withSystemConfiguration.cppreverted tomainit aborts withsysctlbyname_nid_postfix: unsupported name kern.sdk_version.ctest -R "guest_|kernel|sysctl|system_config": 299 of 299 pass onmainand on the branch.tools/check_conventions.py --base 325e0a8bpasses.Capy Mobile was not run here. @orishamir's run on Linux and Windows gets past the call and goes on to open
/app0/games; @screamm ran an earlier head on Windows. Both runs predate this rebase.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)