Wdtctl; Wdtstat - Hitachi CE50-10 Instruction Manual

Table of Contents

Advertisement

5. Configuring Software Environment
<Diagnosis>
For the exit code, 0 is returned if the status is normal and 1 is returned if an error is detected.
5.18.13 wdtctl
<Name>
wdtctl - Enable and disable hardware WDT.
<Format>

wdtctl

<Description>
Running this command with root privileges enables or disables hardware WDT (OS in-loop monitoring). Even
after hardware WDT (OS in-loop monitoring) is disabled, restarting the unit enables hardware WDT (OS in-loop
monitoring) again.
<Options>
• -s
Disables (temporarily stops) hardware WDT (OS in-loop monitoring).
• -r
Enables (restarts) hardware WDT (OS in-loop monitoring).
<Diagnosis>
For the exit code, 0 is returned if the status is normal and 1 is returned if an error is detected. Table 5‒39: List of
wdtctl command error messages below shows error messages that are output when an error is detected.
Table 5‒39: List of wdtctl command error messages
No.
usage: wdtctl -s | -r
1
2
wdtctl: device is not found.
3
wdtctl: not a super-user.
4
wdtctl: wdtctl library error.
(errno=XX)
5.18.14 wdtstat
<Name>
wdtstat - Check the current monitoring state of the hardware WDT.
<Format>

wdtstat

<Description>
This command displays the current operation state of hardware WDT (OS in-loop monitoring).
<Display example>
• If monitoring is running
Hard-WDT is running.
• If monitoring has stopped
Hard-WDT is stopping.
122
Error message
Description
No option is specified, or the specified option is invalid.
The driver for hardware WDT has not started or the device file
for accessing the driver cannot be opened.
The command is not run with root privileges.
An error other than above occurred in the wdtctl library.
XX: Relevant error number

Advertisement

Table of Contents
loading

Table of Contents