ns9750 kernel watchdog timer
Wednesday, October 11, 2006
Softgun is a very nice emulator that can be used to pre-test arm-based embedded setups.
Amongst the implemented features there is also a hardware watchdog timer. The softgun developers also provided a sample user space
program that whistles the watchdog at regular intervals. However it just mmaps some memory and does some writes to that.
This works but it doesn’t use the watchdog infrastructure in the kernel.
Today i hacked up a small patch (additional to the kernel patch provided by sofgtun) that adds an ns9750wdt module. Using that
module the watchdog timer can be used by opening /dev/watchdog and writing to it at regular intervals, which is much cleaner imho.
Patch is here