Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: marvin on March 25, 2013, 06:52:45 PM

Title: sunxi_wdt
Post by: marvin on March 25, 2013, 06:52:45 PM
Hi,
I have problem with sunxi watchdog driver. When I run  watchdog program from busybox it's pool /dev/watchdog.
When I kill it, it unexpectly closes device kernel prints info about it but board doesn't reset. A must open and unexpectly close watchdog second time to board reboots. Have anybody  the same experience ?

Thanks Dan

Title: Re: sunxi_wdt
Post by: murerten on May 20, 2013, 12:34:10 PM
Hello,

I experienced the same thing. I execute:

echo "M" > /dev/watchdog

First nothing happens. When I execute it again system reboots after ~15-16 seconds. However once it rebooted the first time I tried. I cannot trust it. I saw other sunxi_wdt drivers on the net. I'll try them and if they work reliably I'll tell you.

The dmesg messages are:

<2>[   59.690138] sunxi_wdt: unexpected close, not stopping watchdog!
<2>[  106.816497] sunxi_wdt: unexpected close, not stopping watchdog!
Title: Re: sunxi_wdt
Post by: JohnS on May 20, 2013, 03:12:18 PM
Maybe this helps
https://groups.google.com/forum/?fromgroups=#!topic/linux-sunxi/FwQTfpWw_zg

John
Title: Re: sunxi_wdt
Post by: murerten on May 21, 2013, 11:42:23 AM
There are different drivers out there. Some say his driver has DT-support (I don't know what that is). I want a driver that works for 3.0 kernel.

I don't know what is the problem with HNO's sunxi_wdt driver really? I open the device, keep sending, then close unexpectedly. And it says unexpectedly. Nothings wrong here. But system doesn't restarts... until I try it for a second time. Does it stop it when I close the device? Does any of these driver implementers tested it?