AnsweredAssumed Answered

Watchdog disabled during uClinux boot?

Question asked by Vens on Dec 21, 2011
Latest reply on Dec 22, 2011 by Aaronwu

Hi,

 

I have enabled the h/w watchdog in U-Boot by setting the defines,
#define CONFIG_HW_WATCHDOG
#define CONFIG_HW_WATCHDOG_TIMEOUT_START 10000

 

In U-Boot the watchdog is working and resets the processor when it hangs. I also checked that the watchdog is activated with the md.w ffc00200 command.
bfin> md.w ffc00200 1
ffc00200: 0000    ..

 

In linux the watchdog is also configurated and gets enabled when a main app opens /dev/watchdog. If the main app stops triggering /dev/watchdog I get a reboot just as I expected.
Here is the part that confuses me, when I don't start the main app in linux I still would expect a timeout on the watchdog because it is enabled in U-Boot. But the system never reboots and keeps running.

 

Therefore my question: Is the watchdog disabled again during the linux boot? Is this normal or am I missing a configure option?

 

My setup:
- BF537
- U-Boot 2010.06-00000-gc88c633-dirty (ADI-2010R1)
- Linux version 2.6.34.7-ADI-2010R2-vanbreda (ADI-2010R1-RC4)

Outcomes