system/ppp watchdog
Home › Forums › MultiConnect OCG › system/ppp watchdog
Tagged: watchdog
- This topic has 5 replies, 4 voices, and was last updated 10 years ago by
Herraiz Stéphane.
-
AuthorPosts
-
November 10, 2011 at 8:10 am #2664
Brandon Pedersen
ParticipantI am wondering if there is any sort of watchdog available that will reset the system automatically if it freezes?
I am also wondering if there is some way of detecting if the ppp link goes down and resetting the device as well (or possibly retrying the connection until the link comes back up).
November 10, 2011 at 3:49 pm #3515Jesse Gilles
BlockedRegarding watchdog, there is a hardware watchdog in the processor, but it is disabled by default. Enabling it requires a minor modification to the at91bootstrap code and passing the proper parameters to the linux watchdog driver (at91sam9_wdt). There is currently no support in the U-Boot version we are using the for the watchdog, however. This means anything done in U-Boot has to be done quickly before the watchdog resets (16 seconds by default).
If you are interested in this, I can provide more detailed information. The U-Boot lack of support is the biggest limitation currently. Hopefully this can be resolved in a future update.
Regarding ppp, you have two options that come to mind:
1. You can use ppp with the ‘persist’ option. This makes pppd try to keep the connection up even if it goes down periodically.
2. You can use ppp without the persist option and write your own script to act as a ppp watchdog. When the connection goes down, pppd will no longer be running. You could check for the existence of pppd and if it is down, reset the modem (if desired) and then start pppd again.
October 13, 2015 at 7:50 pm #9599Samuel Chen
ParticipantHi Jesse,
I am interested in learning more about how to enable the watchdog. How can I contact you to get more information ?
Thanks,
SamuelOctober 14, 2015 at 9:10 am #9615Jesse Gilles
BlockedIf you want to enable the hardware watchdog, you can edit the following bbappend file and uncomment the line that brings in the watchdog patch. Then build the new bootstrap and flash it in.
# uncomment to enable watchdog in bootstrap
#SRC_URI += ” file://at91bootstrap-2.13-enable-watchdog.patch”November 9, 2015 at 4:05 am #9836Herraiz Stéphane
ParticipantHi,
Is it possible to increase the watchdog reset timeout (12s by default) and how?
ThanksNovember 30, 2015 at 10:44 am #10162Herraiz Stéphane
ParticipantI check this Watchdog U-Boot driver on github:
https://github.com/lentinj/u-boot/blob/master/drivers/watchdog/at91sam9_wdt.cAny idea how implement this?
-
This reply was modified 10 years ago by
Herraiz Stéphane.
-
This reply was modified 10 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.