Watchdog not working

Hello,

I’m using a Rock Pi S 512, with Ubuntu 22.04.2 LTS kernel version 6.1.32-rockchip64.
I don’t seem to get the watchdog working, there is no watchdog device in the /dev directory. Are there any solutions ?

Thank you,
Alex

The solution is to activate the watchdog in the device tree.

  1. Decompile dtb file:
    dtc -I dtb -O dts -o /boot/dtb/rockchip/rk3308-rock-pi-s.dts /boot/dtb/rockchip/rk3308-rock-pi-s.dtb
  2. Find the watchdog node in the device tree file (dts).
  3. Change the status property from “disabled” to “okay”.
  4. Save and close the device tree file.
  5. Recompile file to dtb:
    dtc -I dts -O dtb -o /boot/dtb/rockchip/rk3308-rock-pi-s.dtb /boot/dtb/rockchip/rk3308-rock-pi-s.dts
  6. Reboot your board.
  7. The watchdog will appear in the /dev directory now but it will be inactive. In order to activate it you need to install the watchdog service and configure it to use /dev/watchdog