How ps5dev/ps5sdk works
PS5SDK is a work-in-progress C SDK for building PS5 ELF payloads and simple homebrew. The documented runtime flow begins when the WebKit ELF loader supplies payload arguments; the CRT resolves symbols before calling the payload entry routine. Payloads can then use kernel helpers for arbitrary kernel read/write, with firmware-specific offsets available for supported versions. The repository also provides a broad set of system and library headers, including Readline API declarations. Source excerpts are limited, so links beyond documented behavior and visible header dependencies are omitted.
Main entry points: readline.h Readline API · keymaps.h Readline keymaps · crt.c CRT startup · dlsym.c Symbol resolution
Components 14
Payload runtime
- CRT startup
crt/crt.c - Symbol resolution
crt/dlsym.c - Payload entry
crt/crt.c - libkernel bindings
crt/libkernel.c
Kernel support
- Kernel read/write
crt/kernel_helpers.c - Firmware offsets
ps5/kernel_offsets/offsets_300.h
SDK headers
- System and library headers
include - Readline API
include/readline/readline.h - Readline keymaps
include/readline/keymaps.h - Readline char defs
include/readline/chardefs.h - Readline C macros
include/readline/rlstdc.h - Readline types
include/readline/rltypedefs.h - Tilde expansion API
include/readline/tilde.h
Other components
- WebKit ELF loader
Connections 13
- WebKit ELF loader → CRT startup: supplies arguments
- CRT startup → Symbol resolution: resolves symbols
- CRT startup → Payload entry: calls entry
- Symbol resolution → libkernel bindings: resolves from
- Payload entry → Kernel read/write: uses helpers
- Kernel read/write → Firmware offsets: uses firmware offsets
- Readline API → Readline keymaps: includes
include/readline/readline.h - Readline API → Readline C macros: includes
include/readline/readline.h - Readline API → Readline types: includes
include/readline/readline.h - Readline API → Tilde expansion API: includes
include/readline/readline.h - Readline keymaps → Readline C macros: includes
include/readline/keymaps.h - Readline keymaps → Readline char defs: includes
include/readline/keymaps.h - Readline keymaps → Readline types: includes
include/readline/keymaps.h