https://github.com/noraworld/pi-misc-conf
https://github.com/noraworld/pi-misc-conf
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/noraworld/pi-misc-conf
- Owner: noraworld
- License: mit
- Created: 2022-08-17T12:47:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T04:04:37.000Z (about 3 years ago)
- Last Synced: 2025-06-19T12:45:14.993Z (4 months ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# pi-misc-conf
## Setup
```shell
sudo ln -s $PWD/boot/config.txt /boot
sudo ln -s $PWD/etc/modprobe.d/bcm2835-wdt.conf /etc/modprobe.d
```## How to see if a watchdog timer works properly
First, check the logs.```shell
sudo dmesg | grep bcm2835-wdt
sudo dmesg | grep systemd | grep watchdog
``````
[ 1.949143] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
``````
[ 9.389119] systemd[1]: Using hardware watchdog 'Broadcom BCM2835 Watchdog timer', version 0, device /dev/watchdog
[ 9.401138] systemd[1]: Set hardware watchdog to 5s.
```Then, try dropping a fork bomb.
```shell
:(){ :|:& };:
```If the watchdog timer works fine, the system should reboot automatically in a couple of minutes.