FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
2,439 views 2 comments
by anonymous
Hello,

I didn't find in the user manual information on the watchdog capability of the RUT955.

How to automatically restart a hung RUT955 ?

1 Answer

+2 votes
by
Hi,

This watchdog is implemented in SoC (it seems RUT955 is using atheros AR9334). This watchdog, when it is set up, has to be pinged in certain period of time.

You can check its parameters in ubus: ubus call system watchdog '{"stop": false}'

ubus call system watchdog '{"stop": true}' WILL STOP watchdog pinging, and system will restart in about 30 seconds.

If watchdog has not been pinged in "timeout" time (Userspace process does this every "frequency" seconds), that means system is in bad state, and it restarts. It has to be very major system crash, to watchdog to restart the system. If some of the processeses  are hung, but watchdog process is still working, system will not restart.
by anonymous
Is it possible to ping this watchdog from outside and/or generate an alarm ?
by

Without changes in sdk - no, you have to make changes in sdk sources, and build executable

procd opens watchdog device file in /dev/watchdog, and no other process can open it, even if it is stopped by ubus command. Procd is in charge of pinging it. 

Here is a useful link to custom watchdog project on similar SoC: https://github.com/sudomesh/watchpuppy

However, modified version of procd is needed, which you have to build from sdk