This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7-Q1: Watchdog: board doesn't reset when using /dev/watchdog1

Part Number: AM62A7-Q1
Other Parts Discussed in Thread: AM62A7

Tool/software:

Hi ,

I have a custom board with an AM62A7 SoC. We use the kernel/u-boot from SDK 10.1.0 (with modifications from phytec and ourself).

My problem is as follows:

  1. systemd is servicing /dev/watchdog0. It's used mostly for checking a reboot actually works, and I would like to keep that functionality.
    If I stop servicing /dev/watchdog0 (by for instance calling gdb -p 1), the board reboots correctly.
  2. I would like to use /dev/watchdog1 to /dev/watchdog3 (main_rti1 to main_rti3) to force a watchdog reset in some circumstances.
    When I try this, the watchdog counts down, but does not trigger a reset in the ESM
    root@4kcam-protoa:~# wdctl /dev/watchdog1 ; sleep 61 ; wdctl /dev/watchdog1
    [  106.551789] watchdog: watchdog1: nowayout prevents watchdog being stopped!
    [  106.558816] watchdog: watchdog1: watchdog did not stop!
    Device:        /dev/watchdog1
    Identity:      K3 RTI Watchdog [version 0]
    Timeout:       60 seconds
    Timeleft:      33 seconds
    Pre-timeout:    0 seconds
    FLAG           DESCRIPTION           STATUS BOOT-STATUS
    KEEPALIVEPING  Keep alive ping reply      1           0
    [  167.582200] watchdog: watchdog1: nowayout prevents watchdog being stopped!
    [  167.589160] watchdog: watchdog1: watchdog did not stop!
    Device:        /dev/watchdog1
    Identity:      K3 RTI Watchdog [version 0]
    Timeout:       60 seconds
    Timeleft:       0 seconds
    Pre-timeout:    0 seconds
    FLAG           DESCRIPTION           STATUS BOOT-STATUS
    KEEPALIVEPING  Keep alive ping reply      1           0

My questions:

  1. Are the watchdog devices /dev/watchdog1 to /dev/watchdog4 supposed to work?
  2. How can I make /dev/watchdog1 to /dev/watchdog4 reset my board?

Thanks,

Bas Vermeulen