A Device Tree–enabled Linux watchdog driver with a user-space health monitoring daemon for OpenWrt-based embedded platforms.
- Platform watchdog driver
- Linux watchdog framework
- Panic + automatic reboot
- Device Tree configuration
- User-space health daemon
DTS → Kernel Watchdog → /dev/watchdog → Health Daemon → System Recovery
cp dts/mt7981-smart-watchdog.dtso
target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/
make target/linux/compile V=s
make package/kernel/kmod-smart-watchdog/compile V=s
opkg install kmod-smart-watchdog*.ipk
gcc userspace/watchdog_healthd.c -o watchdog_healthd ./watchdog_healthd