System Watchdog (Linux)

(available in Software Version 4.10 and newer)

The iam camera supports a system watchdog. It can recognize a system hang due for example by a segmentation fault and reboot the system automantically.

A way to enable the watchdog is to uncomment the following line in the autostart (etc/iam/autostart.sh):

watchdog -t 5 -T 20 /dev/watchdog0

A short description of the watchdog function is also available in the autostart script:

########################################################################## # Usage: watchdog [-t N[ms]] [-T N[ms]] [-F] DEV # # # # Periodically write to watchdog device DEV # # # # -T N Reboot after N seconds if not reset (default 60) # # -t N Reset every N seconds (default 30) # # -F Run in foreground # # # # Use 500ms to specify period in milliseconds # # # # Command to crash the system with a kernel panic for watchdog test: # # echo c > /proc/sysrq-trigger # ##########################################################################

Or enter the following command in the linux console:

root@iam_lvds:~# watchdog --help

The watchdog can be configured individually. In our configuration the system recognize a system hang between 15 and 20 seconds.


Useful Links

Cadence WDT Driver

Zynq UltraScale+ MPSoC Restart solution


References

 

 

related content

contact NET

 

© Copyright 2020 NET GmbH. Privacy Statement