Is there a command like
vi > out vi | out
That I could use to cause a watchdog reset of my embedded linux device?
If you have a watchdog on your system and a driver that uses
You also might be interested in resetting the device using the "magic sysrq" way. If you have a kernel with the
If you think the watchdog is running OK, and want to test that it really is capable of recovering a crashed system, then you can do one better than Shawn's answer by using the "magic sysrq" to crash the system with a kernel panic. Syncing your file system first is a good idea, so do something like this as root:
That should cause a kernel panic if the sysrq is enabled. Then if you wait around 60 seconds (typical time-out for the watchdog module) you should see the machine reboot. Please note this will only work with hardware watchdogs and not the 'softdog' module.