Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This guide outlines the steps to configure and test the sp5100_tco watchdog on your system.

Step 1: Remove the Watchdog Module from Modprobe Blacklists

  1. Search for the sp5100_tco entry in the modprobe configuration:

    Code Block
    grep -r sp5100_tco /lib/modprobe.d/
  2. For each returned result, open the file and comment out lines containing "blacklist sp5100_tco".

Step 2: Create a New Modprobe Entry

Enter the following command to add a new configuration for sp5100_tco:

Code Block
echo "options sp5100_tco heartbeat=30 nowayout=1" > /etc/modprobe.d/sp5100_tco.conf

Step 3: Install the Watchdog Package

Use the package manager to install the watchdog package:

Code Block
apt install -y watchdog

Step 4: Update the Watchdog Configuration

  1. Open the watchdog configuration file:

    Code Block
    nano /etc/watchdog.conf
  2. Locate and uncomment the line:

    Code Block
    #watchdog-device = /dev/watchdog
  3. Find the line:

    Code Block
    #watchdog-timeout = 60

    Uncomment it and change its value to 30:

    Code Block
    watchdog-timeout = 30

Step 5: Reboot the System

To apply the changes, reboot your system:

Code Block
reboot

Testing the Configuration

To test if the watchdog is working correctly, you can intentionally trigger a kernel crash:

...