Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,601
    /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 HA
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •