4.7.11. hrut_resetreason
hrut_resetreason is a tool used to obtain the reset reason upon system boot. It reads the boot parameters from the /proc/cmdline file, extracts the string related to the system reset reason, and prints the output.
4.7.11.1. Syntax Description
The following is the command format for executing hrut_resetreason:
hrut_resetreason
This tool does not accept any arguments; simply run it to retrieve the reset reason at system startup.
4.7.11.2. Command Options and Function Descriptions
Default Usage
Command:
root@buildroot:~# hrut_resetreason
Function:
Extracts the system reset reason from the /proc/cmdline file and prints the output.
Output:
reset reason is: COLD_BOOT
Result Analysis:
reset reason is: indicates the extracted reset reason.
COLD_BOOT: indicates the specific reset reason. COLD_BOOT typically means the system was reset due to a cold boot (powering off and then on again).
Other possible reset reasons:
REBOOT_CMD: reboot triggered by a software command (e.g., reboot).
WARM_BOOT: warm boot (system resumes from hibernation or sleep state).
WATCHDOG: reboot caused by watchdog timer timeout.
POWER_FAILURE: reboot due to power failure.
HARDWARE_FAILURE: reboot due to hardware failure.