RK3368 看门狗 Watchdog 调测

2019-03-05 18:18:18

1. 开驱动CONFIG

./arch/arm64/configs/rockchip_defconfig
CONFIG_WATCHDOG=y

   驱动源码:

kernel/drivers/watchdog/rk29_wdt.c

2. 修改dts

arch/arm64/boot/dts/rk3368.dtsi

watchdog: wdt@ff800000 {
status = "disabled"; 改为 "okay"

3. 可选步骤:start watchdogd

    这一步骤是修改timeout和while循环喂狗,其实在驱动里面已经有配置timeout(60s),并且驱动也会在irq响应中喂狗。

device/rockchip/common/init.rockchip.rc
start watchdogd

    watchdogd 源码位置:

system/core/init/watchdogd.cpp

 

你可能感兴趣的:(linux,Android)