apart from all the hype about FreeBSD 6.1 for m0n0wall, I'm working
on a project based on the WRAP platform where the 4.11 based m0n0wall
software is more than adequate. I was looking though for LED and HW
watchdog support but couldn't find it, so I ported it back from more
recent BSD versions.
I've attached the required kernel changes as a patch and also provide
a test program wdtest.c, which simply activates the watchdog and lets
the WRAP box die after 8 seconds. The actual 'kick the dog' part in
form of a watchdog daemon is still missing though. I'm still looking
into how to do this best. Any feedback is of course welcome. This is
a first shot at the problem and it seems to work for me, but of
course limited to WRAP boards only.
The other little program, led.c, allows the 3 LED's of the WRAP board
(from PC Engines) to be turned off or on individually.
You'll need to create the character device special file for the
watchdog and LED's to be set:
mknod $MWROOT/dev/fido c 200 0
Any feedback is of course welcome.