[OpenWrt-Devel] [PATCH] om-watchdog: Add support for GL-X1200 (GL.iNet)
guilin.wang
guilin.wang at gl-inet.com
Mon Apr 13 23:05:50 EDT 2020
Hi, Paul
Thanks for your answers.
How often do you really need to feed the watchdog?
>> 10s a falling edge triggers dog feeding
Why do you have an additional MCU taking care of capturing the level change, what else isit doing?
>>MCU is also responsible for other functions, external RTC, and some indicators
Can this MCU firmware be upgraded without external hardware?
>>No,
With gpio_wdt driver when you're using LEVEL mode the GPIO will be
pulsed (high level for 1 us (microsecond!)) each time the watchdog is
pinged. With TOGGLE mode the GPIO will be toggled each ping.
>> Thank you for your explanation, I should use TOGGLE mode,
------------------ Original ------------------From: "Paul Fertser"<fercerpav at gmail.com>;Date: Sat, Apr 11, 2020 07:07 PMTo: "guilin.wang"<guilin.wang at gl-inet.com>; Cc: "Martin Blumenstingl"<martin.blumenstingl at googlemail.com>; "openwrt-devel"<openwrt-devel at lists.openwrt.org>; Subject: Re: [OpenWrt-Devel] [PATCH] om-watchdog: Add support for GL-X1200 (GL.iNet) Hi,
On Fri, Apr 10, 2020 at 07:23:44PM +0800, guilin.wang wrote:
> now the external single-chip cannot detect the level change of GPIO
How often do you really need to feed the watchdog? Why do you have an
additional MCU taking care of capturing the level change, what else is
it doing? Can this MCU firmware be upgraded without external hardware?
> I now suspect that the wdt-gpio delay is too short and the
> microcontroller part has not detected a falling edge change. I tried
> both toggle and level,
With gpio_wdt driver when you're using LEVEL mode the GPIO will be
pulsed (high level for 1 us (microsecond!)) each time the watchdog is
pinged. With TOGGLE mode the GPIO will be toggled each ping.
Default watchdog ping frequency in procd is 5 seconds.
You can see more info on [0].
> but unfortunately both failed, and I will continue to test.
It's not a matter of testing, it's a matter of understanding what's
really going on.
HTH
[0] https://openwrt.org/docs/guide-user/hardware/watchdog
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav at gmail.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list