Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: SlyCom on October 24, 2013, 02:02:23 PM

Title: Watchdog
Post by: SlyCom on October 24, 2013, 02:02:23 PM
Hi,

During my work with A13 WiFi board I noticed that the board hangs sometimes after 1, 2 hours. I have no idea where is the problem but I'm thinking about watchdog. How I can implement watchdog? Maybe there is any linux distribution with watchdog support or is it better use hardware watchdog connected to the reset pin of the A13?
Title: Re: Watchdog
Post by: vinifr on November 17, 2013, 04:58:48 PM
There is a watchdog inside A13 and the driver: https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.4/drivers/watchdog/sunxi_wdt.c

Enable it in .config kernel.
Title: Re: Watchdog
Post by: SlyCom on November 18, 2013, 12:15:06 PM
Thanks vinifr,

I already noticed this functionality and recompiled the kernel with watchdog.
Title: Re: Watchdog
Post by: SlyCom on November 19, 2013, 02:36:47 PM
Unfortunately the board still sometimes hangs even with watchdog. Obviously it trying to reboot but hangs at adding swap file.