emcyfra/notes
2025-02-19 14:23:20 +00:00

23 lines
830 B
Plaintext

pmemsave 0x20000000 0x00800000 x.bin
00000030 17 00 16 00 f2 d0 da 88 10 00 00 00 f3 d0 da 88 |................|
00000040 00 00 00 00>04 b0 2d e5 00 b0 8d e2 1c 30 9f e5 |......-......0..|
00000050 03 30 8f e0 00 20 93 e5 14 30 9f e5 03 30 82 e0 |.0... ...0...0..|
00000060 03 00 a0 e1 00 d0 8b e2 04 b0 9d e4 1e ff 2f e1 |............../.|
# Use nc -U /tmp/file to connect and dump section of the memory, when qemu
# runs in monitor "-monitor unix:/tmp/qemu-monitor,server,nowait"
pmemsave 0x20000000 0x00800000 x.bin
# disassemble
arm-none-eabi-objdump -d -j .text libpqscheme_test.elf > text_dump.bin
# dump section
arm-none-eabi-objcopy -O binary --only-section=.text libpqscheme_test.elf text_section.bin
# Addresses
arm-none-arm-none-eabi-objdump -h libpqscheme_test.elf
# When in GDB "-S -gdb tcp::1234"