User Tools

Site Tools

한국어

comfilepi:enable_the_internal_watchdog_timer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
comfilepi:enable_the_internal_watchdog_timer [2023/06/19 09:45]
COMFILE Technology
comfilepi:enable_the_internal_watchdog_timer [2023/06/19 09:56]
COMFILE Technology
Line 11: Line 11:
 </​code>​ </​code>​
  
-Get more information about the watchdog configuration with `sudo wdctl`: +Uncomment the following lines in the file ///​etc/​systemd/​system.conf// ​and then reboot. ​ See [[https://​manpages.debian.org/​bullseye/​systemd/​systemd-system.conf.5.en.html | the system.conf documentation]] for more information about these settings:
- +
-<​code>​ +
-pi@raspberrypi:​~ $ sudo wdctl +
-Device: ​       /​dev/​watchdog0 +
-Identity: ​     Broadcom BCM2835 Watchdog timer [version 0] +
-Timeout: ​      15 seconds +
-Pre-timeout: ​   0 seconds +
-Timeleft: ​     14 seconds +
-FLAG           ​DESCRIPTION ​              ​STATUS BOOT-STATUS +
-KEEPALIVEPING ​ Keep alive ping reply          1           0 +
-MAGICCLOSE ​    ​Supports magic close char      0           0 +
-SETTIMEOUT ​    Set timeout (in seconds) ​      ​0 ​          0 +
-</​code>​ +
- +
-Uncomment the following lines in the file ///​etc/​systemd/​system.conf//:​+
  
 <​code>​ <​code>​
Line 33: Line 18:
 </​code>​ </​code>​
  
-Install the watchdog service with the following commands: +To test if the watchdog service is working, obtain root privilegesand then create a kernel panic with the following:
-<​code>​ +
-sudo apt update +
-sudo apt install watchdog +
-</​code>​ +
- +
-Check if the watchdog service is running with the following command: +
- +
-<​code>​ +
-pi@raspberrypi:​~ $ systemctl | grep watchdog +
-watchdog.service ​        ​loaded active running ​  ​watchdog daemon  +
-</​code>​ +
- +
-If the //​watchdog.service//​ is not running, start it with the following command: +
- +
-<​code>​ +
-sudo systemctl start watchdog.service +
-</​code>​ +
- +
-If you want the service to run automatically on each boot run the following command: +
- +
-<​code>​ +
-sudo systemctl enable watchdog.service +
-</​code>​ +
- +
-To test if the watchdog service is working, first, obtain root privileges and create a kernel panic with the following:+
  
 <​code>​ <​code>​
comfilepi/enable_the_internal_watchdog_timer.txt · Last modified: 2023/06/19 10:04 by COMFILE Technology