Results 1 to 2 of 2
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 ...
- 02-25-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 1
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 in general.
Please let me know if there any way of doing this.
Thanks for your time!
-Aniruddha
- 04-16-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,499
/proc/sys/kernel/panic
gives read/write access to the kernel variable panic_timeout. If this
is zero, the kernel will loop on a panic; if non-zero it indicates
that the kernel should autoreboot after this number of seconds. When
you use the software watchdog device driver, the recommended setting
is 60.
According to Wikipedia: In the 2.6 kernel the softdog driver is located in drivers/char/watchdog/softdog.c
See softdog: Linux HASometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!



