This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:applications:watchdog [2022/07/14 21:15] nick |
products:sbc:common:applications:watchdog [2022/12/05 01:43] (current) nick |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This document mainly | + | This page introduces the internal Watchdog. You will learn how to enable the watchdog and test it. |
===== Enable Internal Watchdog ===== | ===== Enable Internal Watchdog ===== | ||
Line 11: | Line 11: | ||
<tabbox Ubuntu 18.04> | <tabbox Ubuntu 18.04> | ||
```shell | ```shell | ||
- | khadas@Khadas: | + | sudo ln -s / |
- | khadas@Khadas: | + | sudo systemctl enable watchdog.service |
- | khadas@Khadas: | + | sudo systemctl start watchdog.service |
``` | ``` | ||
Line 21: | Line 21: | ||
<tabbox Ubuntu 20.04> | <tabbox Ubuntu 20.04> | ||
- | + | ```shell | |
- | khadas@Khadas: | + | sudo systemctl enable watchdog.service |
- | khadas@Khadas: | + | sudo systemctl start watchdog.service |
+ | ``` | ||
</ | </ | ||
Line 63: | Line 63: | ||
```shell | ```shell | ||
- | $ sudo systemctl restart watchdog | + | sudo systemctl restart watchdog |
``` | ``` | ||
Line 71: | Line 71: | ||
```shell | ```shell | ||
- | khadas@Khadas: | + | echo 0 | sudo tee / |
+ | echo c | sudo tee / | ||
``` | ``` | ||
Line 79: | Line 80: | ||
```shell | ```shell | ||
- | khadas@Khadas: | + | $ sudo pkill -9 watchdog |
- | khadas@Khadas: | + | $ sudo pkill -9 wd_keepalive |
- | khadas@Khadas: | + | $ |
- | khadas@Khadas: | + | $ |
- | khadas@Khadas: | + | $ G12B: |
bl2_stage_init 0x01 | bl2_stage_init 0x01 | ||
bl2_stage_init 0x81 | bl2_stage_init 0x81 | ||
Line 110: | Line 111: | ||
```shell | ```shell | ||
- | khadas@Khadas: | + | sudo systemctl disable watchdog |
- | khadas@Khadas: | + | sudo reboot |
``` | ``` | ||