The Nexcom NISE50 has an Embedded Controller Watchdog Timer (WDT), that is able to power cycle the whole machine, even when the OS has frozen. The WDT works by setting a timeout. Then the WDT has to be periodically reset by software before it reaches the timeout. If it ever reaches that timeout, the EC will force a hard reboot on the whole system. This characteristic is specially useful to recover from unforseen catastrophic errors, without the need of human intervention.
This article describes how to set up and use the WDT on the Nexcom NISE50
Necessary files:
- NISE50 Control: nise50_control.tar.gz
- WDT Script: watchdog.sh
- WDT Template: watchdog.template.xml
Step-by-step guide
To install and configure the WD follow the next steps
- Transfer and unpack the NISE 50 control files:
- Transfer the nise50_control.tar.gz file to the NISE50 using a tool like SCP or WinSCP
Uncompress package:
tar -xvf nise50_control.tar.gz
Two folders will be created:
Kernel module driver access
\kernelModule\wdt
(The driver includes led+wdt driver)User mode APP access
\userMode
Build the driver
cd kernelModule\wdt make
Install the driver
Edit the /etc/rc.local file
sudo vim /etc/rc.local
Add the following at the end of the file:
# Enable the Nexcom NISE50 Kernel module insmod /lib/modules/$(uname -r)/kernel/drivers/control.ko exit 0
Related articles