sleirsgoevy / ps4jb-payloads

Extracted payloads from the main repo
110 stars 28 forks source link

FW 2.50 GDB connection timeout error #26

Open elated-emu opened 1 month ago

elated-emu commented 1 month ago

I have attempted this on my main machine running NixOS, as well as a virtual machine running Ubuntu 24.04. For some reason the debugger never connects. It is getting late now, so I can do some more troubleshooting tomorrow.

PS5 FW 2.50 Ubuntu 24.04 (VM) Python 3.11 (and Python 3.12) gcc 13.2.0 yasm 1.3.0 gdb 15.0.50.20240403-0ubuntu1

1 offsets currently known
63 offsets to be found
Probing offset `rootvnode`
rm -f payload.elf payload.bin r0run.o prosper0gdb.o
yasm -f elf64 -g dwarf2 r0run.asm -o r0run.o
gcc -O0 -g -isystem ../freebsd-headers -nostdinc -nostdlib -fno-stack-protector -r -Wl,--unique='*' -ffunction-sections -fdata-sections -DMEMRW_FALLBACK -DNO_BUILTIN_OFFSETS -DPS5KEK r0gdb.c r0run.o offsets.c -o prosper0gdb.o -fPIE -ffreestanding -fno-unwind-tables -fno-asynchronous-unwind-tables
/usr/bin/ld: warning: r0run.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
gcc -O0 -g -isystem ../freebsd-headers -nostdinc -nostdlib -fno-stack-protector -static ../lib/lib-elf-ps5.a -DMEMRW_FALLBACK -DNO_BUILTIN_OFFSETS main.c prosper0gdb.o -DPS5KEK dbg.c -o payload.elf -fPIE -ffreestanding -Wl,-no-pie -Wl,-zmax-page-size=16384 -Wl,-zcommon-page-size=16384
/usr/bin/ld: warning: ../lib/lib-elf-ps5.a: requires executable stack (because the .note.GNU-stack section is executable)
objcopy payload.elf --only-section .text --only-section .data --only-section .bss --only-section .rodata -O binary payload.bin
python3 ../lib/frankenelf.py payload.bin
Connecting to PS5... done
Connecting GDB... could not connect: Connection timed out.
done
dumping kdata...
sleirsgoevy commented 1 month ago

Looks like you may be using a loader that uses port 9021. These are currently not supported. Use this host instead.

elated-emu commented 1 month ago

Thank you, that fixed my issue