Changes

Jump to: navigation, search

Linux Mint: Watchdog configuration

1,004 bytes added, 11:35, 27 June 2018
== Main ===== List of tested devices ===
* The guide was tested on a systems with the specs listed below, but should be easily adaptable
<br>
=== Usage example ===
* The following usage example represented on fitlet2 with kernel module iTCO_wdt
* As a result, the watchdog mechanism should reboot the system within 30 seconds.
 
=== Hardware BIOS configuration ===
* if the iTCO BIOS does not reset the HW Watchdog timer, you may need to disable the BIOS configuration
BIOS --> South bridge --> Watchdog
 
Get super-user permissions:
$ su
Password:
 
$ apt install ioport
 
And then run the following command:
$ outl 0x1854 0x2000
 
To read it for validation please run (also as super-user):
$ printf "0x%x\n" $(inl 0x1854)
0x2000
 
To run this command automatically on each boot add it to file named /etc/rc.local.
If you do not have such file, create it.
 
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
outl 0x1854 0x2000
exit 0
 
Make it executable
 
$ sudo chmod +x /etc/rc.local
1,586
edits