I have a .ko file which I grabbed from a router (MSB MIPS), and I'm trying to debug a specific function inside it with IDA.
Since i can't just "run" the ko file with QEmu, I tried to change its header to make QEmu think It's an ELF executable. By doing this, I was able to run and connect with IDA (with warnings of course) but when I do the first step inside the function I get "SIGSEGV" signal.
My setup is:
Ubuntu host with statically compiled qemu-mips
VM with IDA PRO
BTW, the function I'm trying to debug is not using any hardware.
I hope you can point me to the right direction.