Skip to contentSkip to conversation

how to debug a driver remotely?

DISCUSSION Om. 2 participants 2 messages Aug 11, 2006

lore
Share & tools
lore

Om.

author
#0 lore raw

Recently a friend of mine asked me to port a PCI driver from 2.4 to 2.6, which I tried. But I learned that the device is custom made and not commercially available. Since it is not available anywhere else, he suggested me that I do remote debugging using telnet/ssh.

For all driver development efforts I have carried out so far, I had free access to the device, the target machine and a serial port. Now in this case, without a serial port and remote power off/on facilities, I would like to ask the list about the options I have.

(I do not have a remote power on/off switch. The driver panics so often that somebody has to babysit the machine to switch it off and on.)

Regards,
Om.

--

Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/
#1 lore raw
Quoted 3 lines

(I do not have a remote power on/off switch. The driver panics so often that somebody has to babysit the machine to switch it off and on.)

why not try user-mode-linux
user-mode-linux.sourceforge.net

It will allow you to run kernel from usermode, and if the kernel panics you can always restart it.

Signature · 6 lines
wbr, Alex

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/