ejtagd is one of the most powerful debug tools for MIPS embedded systems. Unlike software debuggers, it works even when the kernel has crashed or interrupts are disabled – because it controls the CPU directly through EJTAG hardware. Keep a copy in your firmware recovery toolkit.
which ejtagd # /usr/sbin/ejtagd (common) ejtagd -v # print version