Skip to content
Skill

analyze-oops

by sebastianbiallas

AI Summary

Use to extract and analyze the Oops. 1. Extract the Oops: 2. Decode pt_regs (use the REGS address from the Oops output):

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "analyze-oops" skill in my project.

Please run this command in my terminal:
# Install skill into your project
mkdir -p .claude/skills/analyze-oops && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/analyze-oops/SKILL.md "https://raw.githubusercontent.com/sebastianbiallas/pearpc/master/.claude/skills/analyze-oops/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Analyze a kernel Oops from the printk buffer in a PearPC memory dump

Analyze Kernel Oops

Use scripts/debug/memdump.py to extract and analyze the Oops.

Steps

• Extract the Oops: ` python3 scripts/debug/memdump.py oops ${ARGUMENTS:-memdump_jit.bin} ` • Decode pt_regs (use the REGS address from the Oops output): ` python3 scripts/debug/memdump.py regs DUMP_FILE REGS_ADDRESS ` • Disassemble around NIP and LR (convert VA to PA: PA = VA - 0xC0000000): ` python3 scripts/debug/disasm_ppc.py DUMP_FILE PA_OF_NIP 16 python3 scripts/debug/disasm_ppc.py DUMP_FILE PA_OF_LR 16 ` • Search for the NIP value in both dumps: ` python3 scripts/debug/memdump.py find memdump_generic.bin NIP_VALUE python3 scripts/debug/memdump.py find memdump_jit.bin NIP_VALUE ` • Check if NIP is a valid address: • 0xC0xxxxxx = kernel code • 0xBFxxxxxx = PROM virtual address (prom_mem_phys_to_virt) • 0xFDxxxxxx = PCI I/O space (not executable) Report: exception type, faulting address, caller, what the code was trying to do.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted Yesterday
Active
Adoption100+ stars on GitHub
434 ★ · Growing
DocsMissing or thin
Undocumented

GitHub Signals

Stars434
Forks74
Issues16
UpdatedYesterday
View on GitHub
GPL-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code