Skip to content

Instantly share code, notes, and snippets.

@stableversion
stableversion / oneway-linux-debugging.md
Last active April 7, 2025 15:26
One way linux debugging method for mainlining android devices

With only simple-framebuffer, qrcon, and a minimal alpine initramfs you could do some one-way debugging to figure out what's wrong with your usb, ufs, clk, etc. Similar to postmarketos debug shell, but much more robust.

Preferably set

CONFIG_INITRAMFS_SOURCE="/linux/dir/alpine"

CONFIG_INITRAMFS_FORCE=y

Alpine setup

You could use any distro, but alpine is small and preferred.