LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 02-24-2009, 04:49 PM   #1
anitemp
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Rep: Reputation: 0
2.6.x kernel debugging over ethernet (without serial connection) and reboot


Hi,

I am trying to debug my USB Gadget driver. I have two machines connected to the LAN and the driver is running on one of them. However, there is no serial or ethernet null-modem connection between them.

At some point in time, the kernel freezes due to my buggy driver (I am suspecting unreleased lock) In this situation I need to be able to reboot the frozen host remotely from the other host.

I searched on the net and on the forum but did not find material which would serve this purpose, although I found a few useful tutorials on KGDB:


http://linux.derkeiler.com/pdf/Newsg...6/msg00137.pdf

http://www.dumbare.com/kgdb

Please let me know if there any way of doing this.

Thanks for your time!

-Aniruddha
 
Old 02-25-2009, 03:17 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
Maybe something like User Mode Linux? http://user-mode-linux.sourceforge.net/
Running the kernel in a virtual machine should help you finding the bug, because you'll be able to find out where it is.
 
Old 02-25-2009, 07:23 PM   #3
anitemp
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for responding.

I thought of UML as a way out but the issue is I am using PCI based Net2280 USB device controller on top of which I have written the USB gadget driver. UML doesn't support PCI emulation (I guess, please correct me if I am wrong). Same is the case with virtual machines - VMWare and Virtual Box. So I need to be able to debug it on the host itself.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debugging an ethernet driver.....help requested kapsikum Linux - Networking 0 06-06-2008 05:45 PM
Difference between kernel - debugging and application debugging topworld Linux - Software 2 03-30-2006 12:50 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
remote kernel debugging over a serial line swaroop Linux - Software 0 03-24-2005 12:58 AM
questions on use of serial port when debugging kernel by vmware+kgdb sunzen.w Linux - Software 0 08-05-2004 01:31 AM


All times are GMT -5. The time now is 07:44 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration