1.CONFIG_DW_WATCHDOG=y
打开驱动
2.配置dts okay
+++ b/arch/arm64/boot/dts/rockchip/rk3326-863-lp3-v10.dtsi
@@ -785,3 +785,7 @@
&vpu_combo {
status = "okay";
};
+
+&wdt {
+ status = "okay";
+};
3. 上层使能wdt
+++ b/init.rockchip.rc
@@ -14,7 +14,7 @@ on early-init
restorecon_recursive /sys/kernel/debug/tracing/
on init
- # start watchdogd
+ start watchdogd
service watchdogd /sbin/watchdogd 10 20
class core
disabled
seclabel u:r:watchdogd:s0