Skip to content

Instantly share code, notes, and snippets.

@psxdev
psxdev / gist:f7a935d82bea88db75d6430d757f5099
Created May 7, 2022 19:47
prospero proc,vmap and modules from Native SELF SceNKWebProcess pid on retail
address and pid will change in each execution in browser. Output redirected to debugnet using clasic udp port 18194
% ./debug.sh
[HOST] debugnet listener up
[HOST] ready to have a lot of fun!!!
[PROSPERO][DEBUG] debugnet initialized
[PROSPERO][DEBUG] sys___sysctl with mib[0]=CTL_KERN mib[1]=KERN_PROC mib[2]=KERN_PROC_PID mib[3]=pid:4b return 0 size 1096
[PROSPERO][DEBUG] sys___sysctl with pid=4b and buffer size 1096 return 0 ki_emul Native SELF ki_comm SceNKWebProcess ki_tdname SceNKWebProcessM
[PROSPERO][DEBUG] sys___sysctl with mib[0]=CTL_KERN mib[1]=KERN_PROC mib[2]=KERN_PROC_VMMAP mib[3]=pid:4b return 0 vmap size: 24256
[PROSPERO][DEBUG] sys___sysctl return 0 vmap num rounded: 166
[PROSPERO][DEBUG] pid: 4b vmap id: 0 start: 0x5dd84000 end: 0x5dd8c000 size: 32768 prot: 4: --x structsize: 144 type:9 path:
@psxdev
psxdev / gist:d9d43db2f7b4439b238eb6ce4bc65778
Last active January 30, 2022 00:12
Modules loaded in prospero when you use web browser after a fresh boot
Process NKWebProcess.self
Module ID | Module name
0x2001 libkernel_web.sprx
0x02 libSceLibcInternal.sprx
0x10 libSceSysmodule.sprx
0x12 libScePosixForWebKit.sprx
0x13 libSceIpmi.sprx
0x14 libSceMediaFrameworkInterface.sprx
0x53 libSceSysCore.sprx
0x54 libSceNet.sprx
@psxdev
psxdev / gist:209937d0472d359a9eca3d15f9382b2a
Created October 28, 2021 18:34
giving some love to raylib on macos monterey m1 macport with orbisdev toolchain (clang13+binutils 2.36.1) and orbislink loading homebrew self from nfs
% uname -a
Darwin 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64 arm64 Macmini9,1 Darwin
% pwd
/usr/local/orbisdev/bin
% file *
analyze-build: Python script text executable, ASCII text
bugpoint: Mach-O 64-bit executable arm64
c-index-test: Mach-O 64-bit executable arm64
clang: Mach-O 64-bit executable arm64
clang++: Mach-O 64-bit executable arm64
@psxdev
psxdev / gist:939fc8f0b8ed4ca38b80e646b6b69112
Created September 24, 2021 14:29
pkg_pfs_tool on apple m1
changes needed for apple m1
stat64 structure is deprecated on macos. Use stat instead
stat64 function deprecated use stat instead
fstat64 function deprecated use fstat instead
O_LARGEFILE can't be used on macos is already embed by default in modern macos versions so delete it
delete or comment add_compile_options(-masm=intel -march=native) on CmakeList.txt -march=native is not a valid flag on clang and obviouly if you are on arm64....
compile and install mbedtls with CMAC support enabled i used macport enabling myself support (default is not enabled)
compile and install uthash i used macport
zlib already present on macport if you installed or compiled different playstation toolchains.
@psxdev
psxdev / gist:1c5d574cafa80579d2cf36b5f3dbb1fb
Created June 23, 2021 06:47
Giving some m1 love to pi (pico,baremetal, etc) and the whole arm family
bigboss@siliconmini local % uname -a
Darwin siliconmini.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 arm64
bigboss@siliconmini local % ls
bin pidev ps2dev share
orbisdev prosperodev ps2dev.old vitadev
bigboss@siliconmini local % ls pidev/bin
arm-none-eabi-addr2line arm-none-eabi-gdb
arm-none-eabi-ar arm-none-eabi-gdb-add-index
arm-none-eabi-as arm-none-eabi-gdb-add-index-py
arm-none-eabi-c++ arm-none-eabi-gdb-py
@psxdev
psxdev / gist:c7aa6060c34636631d6934ddeb340e8b
Created June 16, 2021 21:27
Giving some love to PlayStation Vita and apple m1 bigsur
bigboss@siliconmini build % uname -a
Darwin siliconmini.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 arm64 arm64 Macmini9,1 Darwin
bigboss@siliconmini bin % pwd
/usr/local/vitadev/bin
bigboss@siliconmini bin % ls
arm-vita-eabi-addr2line arm-vita-eabi-gcov-tool arm-vita-eabi-strings
arm-vita-eabi-ar arm-vita-eabi-gdb arm-vita-eabi-strip
arm-vita-eabi-as arm-vita-eabi-gdb-add-index include
arm-vita-eabi-c++ arm-vita-eabi-gprof libmakepkg
arm-vita-eabi-c++filt arm-vita-eabi-ld makepkg.conf
@psxdev
psxdev / gist:e755aba0b3269dc9c4cb8f258319bc4c
Created November 18, 2020 18:41
Model CUH-ZEY2 initialization with camera adaptor
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: Disable of device-initiated U1 failed.
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: Disable of device-initiated U2 failed.
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: reset SuperSpeed Gen 1 USB device number 12 using xhci_hcd
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: device firmware changed
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: USB disconnect, device number 12
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: new SuperSpeed Gen 1 USB device number 13 using xhci_hcd
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: New USB device found, idVendor=05a9, idProduct=058b, bcdDevice= 1.00
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: Product: USB Camera-OV580
Nov 18 18:37:02 pi64 kernel: usb 2-1.2: Manufacturer: Omnivision Technologies, Inc.
@psxdev
psxdev / gist:abcdc4eae361c993eea9ebc03dd21e90
Created November 18, 2020 18:34
Model CUH-ZEY1 initialization with camera adaptor
Nov 18 18:26:30 pi64 kernel: usb 2-1.2: USB disconnect, device number 9
Nov 18 18:26:31 pi64 kernel: usb 2-1.2: new SuperSpeed Gen 1 USB device number 10 using xhci_hcd
Nov 18 18:26:31 pi64 kernel: usb 2-1.2: New USB device found, idVendor=05a9, idProduct=058a, bcdDevice= 1.00
Nov 18 18:26:31 pi64 kernel: usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 18 18:26:31 pi64 kernel: usb 2-1.2: Product: USB Camera-OV580
Nov 18 18:26:31 pi64 kernel: usb 2-1.2: Manufacturer: Omnivision Technologies, Inc.
Nov 18 18:26:31 pi64 kernel: uvcvideo: Found UVC 1.00 device USB Camera-OV580 (05a9:058a)
Nov 18 18:26:31 pi64 kernel: uvcvideo 2-1.2:1.0: Entity type for entity USB Camera-OV580 was not initialized!
Nov 18 18:26:31 pi64 kernel: uvcvideo 2-1.2:1.0: Entity type for entity Camera 1 was not initialized!
Nov 18 18:26:31 pi64 kernel: uvcvideo 2-1.2:1.0: Entity type for entity USB Camera-OV580 was not initialized!
@psxdev
psxdev / gist:4b2b0ed1d6ac49ed443a3240f696392f
Created November 18, 2020 18:27
camera adaptor with Model CUH-ZEY1
Nov 18 18:18:22 pi64 kernel: usb 2-1: new SuperSpeed Gen 1 USB device number 8 using xhci_hcd
Nov 18 18:18:22 pi64 kernel: usb 2-1: New USB device found, idVendor=054c, idProduct=0d0b, bcdDevice= 1.54
Nov 18 18:18:22 pi64 kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 18 18:18:22 pi64 kernel: usb 2-1: Product: PlayStation(R)Camera adaptor
Nov 18 18:18:22 pi64 kernel: usb 2-1: Manufacturer: Sony Interactive Entertainment
Nov 18 18:18:22 pi64 kernel: hub 2-1:1.0: USB hub found
Nov 18 18:18:22 pi64 kernel: hub 2-1:1.0: 2 ports detected
Nov 18 18:18:22 pi64 kernel: usb 1-1.1: new high-speed USB device number 89 using xhci_hcd
Nov 18 18:18:22 pi64 kernel: usb 1-1.1: New USB device found, idVendor=054c, idProduct=0d0a, bcdDevice= 1.54
Nov 18 18:18:22 pi64 kernel: usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
@psxdev
psxdev / gist:651bd1905f9e69c2c115e4ffa3a203e5
Created November 18, 2020 17:06
PlayStation 4 Camera adaptor
ov 18 16:59:41 pi64 kernel: usb 2-1: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
Nov 18 16:59:41 pi64 kernel: usb 2-1: New USB device found, idVendor=054c, idProduct=0d0b, bcdDevice= 1.54
Nov 18 16:59:41 pi64 kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 18 16:59:41 pi64 kernel: usb 2-1: Product: PlayStation(R)Camera adaptor
Nov 18 16:59:41 pi64 kernel: usb 2-1: Manufacturer: Sony Interactive Entertainment
Nov 18 16:59:41 pi64 kernel: hub 2-1:1.0: USB hub found
Nov 18 16:59:41 pi64 kernel: hub 2-1:1.0: 2 ports detected
Nov 18 16:59:41 pi64 kernel: usb 1-1.1: new high-speed USB device number 87 using xhci_hcd
Nov 18 16:59:41 pi64 kernel: usb 1-1.1: New USB device found, idVendor=054c, idProduct=0d0a, bcdDevice= 1.54
Nov 18 16:59:41 pi64 kernel: usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0