If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:watchdog (device)

From BoxMatrix


BoxMatrix >> System >> watchdog (device) @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Devices Filesystems Partitions Sockets Netlink Pipes Interfaces Bridges Ports Events Sources Sinks AVMIPC Processes Watchdogs Memory Slab Vmalloc ProcFS SysFS Research

Info
  
Name-Collision - multiple objects in this wiki use the name watchdog!
watchdog (bbcmd) Periodically write to the specified watchdog device.
watchdog (device) Userspace device for controlling AVM-Watchdogs.
watchdog (initscr) TODO
watchdog (process) TODO

Linux-Device

Goto:   Commands  -  Dependencies   -   Model-Matrix   -   SMW-Browser

Details

watchdog is the userspace device for controlling AVM-Watchdogs. See the supported Commands below.
It is typically only accessed directly in scripts. Executables access it through libwdt.so.
Since fw 7.08 there is also the avm_watchdog command to access it from scripts.

watchdog is provided by ar7wdt_file.ko. Since fw 7.19 it is set up in watchdog (initscr) at boot time:

mknod -m 0660 /dev/watchdog c "${major}" 0
chown root:watchdog /dev/watchdog

The major is gathered by the major_nr script before.

AVM-Watchdogs:

Commands

The watchdog device can be used by one of these methods;

echo <command> [<arg>] > /dev/watchdog

avm_watchdog <command> [<arg>]

Registering

A watchdog is registered at start time of a process and released when it terminates gracefully

register <wdname>             # Register a new watchdog, def. timeout is 10-40s platf. dep.
release <wdname>              # Release a watchdog gracefully

Triggering

A watchdog needs to be triggered before the timeout expired to avoid a reboot.

trigger <wdname>              # Trigger the named watchdog
timeout <wdname> <timeout>    # Change the timeout of a watchdog with triggering it
time <wdname> <timeout>       # Change the timeout of a watchdog with triggering it

Disabling

For debugging purposes and during updates all watchdogs could be disabled:

disable                       # Disable all watchdogs
start                         # Start all watchdogs (again)

Init-Monitor

The System Init Monitor handles an anonymous watchdog to supervise the boot process of FRITZ!OS.

init-start [<timeout>]        # Start System Init Monitor - default 120 secs
init-done                     # End System Init Monitor 

In older fw these were called by scripts, 7272 fw 6.83:

S05-watchdog:   echo init-start 120 >/dev/watchdog
rc.tail.sh:     echo init-done >/dev/watchdog

Recent supervisor equipped firmware uses a different approach:

watchdog.service:   ExecStart=/sbin/avm_watchdog init-start 120

The init-done is passed by the watchdog_init_done function of libwdt.so which is called by the libsupervisor.so
function watchdog_all_loaded which is called by supervisor once all services are running.

Model-Matrix

Daily updated index of the presence, path and size of this device for each model. Last update: 2024-04-19 05:50 GMT.
Showing all models using this device. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmw Path Maj/Min
FRITZ!Box 2110 4.52 /dev* 242/0
FRITZ!Box 2170 4.31 - 4.57 /dev* 242/0
FRITZ!Box SL WLAN 4.33 - 4.34 /dev, /dev* 242/0
FRITZ!Box WLAN 3020 4.33 - 4.34 /dev, /dev* 242/0
FRITZ!Box WLAN 3030 4.33 - 4.34 /dev* 242/0
FRITZ!Box WLAN 3050 4.07 /dev 254/0
FRITZ!Box WLAN 3070 4.15 /dev 254/0
FRITZ!Box WLAN 3130 4.34 /dev* 242/0
FRITZ!Box WLAN 3131 4.29 - 4.57 /dev* 242/0
FRITZ!Box WLAN 3170 4.31 - 4.58 /dev* 242/0
FRITZ!Box WLAN 3270 4.57 - 4.86 /dev* 242/0
FRITZ!Box WLAN 3270 v3 4.77 - 4.87 /dev* 242/0
FRITZ!Box 4020 7.01 /dev 253/0
FRITZ!Box 4060 7.30 - 7.39 /dev 244/0, 249/0
FRITZ!Box Fon 4.30 - 4.49 /dev* 242/0
FRITZ!Box Fon 5010 4.43 /dev* 242/0
FRITZ!Box Fon 5050 4.30 - 4.31 /dev* 242/0
FRITZ!Box Fon 5113 4.82 - 4.83 /dev* 242/0
FRITZ!Box Fon 5124 4.47 - 4.77 /dev* 242/0
FRITZ!Box Fon 5140 4.37 - 4.67 /dev* 242/0
VoIP Gateway 5188 4.28 - 4.81 /dev* 242/0
FRITZ!Box 6360 Cable 4.85 - 5.25 /dev, /dev* 242/0, 253/0
FRITZ!Box 6850 LTE 7.39 /dev 245/0
FRITZ!Box 6850 5G 7.39 /dev 245/0
FRITZ!Box Fon WLAN 4.33 - 4.49 /dev* 242/0
FRITZ!Box Fon WLAN 7050 4.30 - 4.50 /dev, /dev* 242/0
FRITZ!Box Fon WLAN 7112 4.76 - 4.88 /dev* 242/0
FRITZ!Box Fon WLAN 7113 4.40 - 4.86 /dev* 242/0
FRITZ!Box Fon WLAN 7113 DE 4.40 - 4.77 /dev* 242/0
FRITZ!Box Fon WLAN 7113 INT 4.82 - 4.86 /dev* 242/0
FRITZ!Box Fon WLAN 7140 4.30 - 4.77 /dev, /dev* 242/0
FRITZ!Box Fon WLAN 7141 4.14 - 4.77 /dev* 242/0
FRITZ!Fon 7150 4.30 - 4.77 /dev, /dev* 242/0
FRITZ!Box Fon WLAN 7170 4.22 - 4.99 /dev* 242/0
FRITZ!Box Fon WLAN 7170 v1 4.22 - 4.99 /dev* 242/0
FRITZ!Box Fon WLAN 7170 v2 4.22 - 4.99 /dev* 242/0
FRITZ!Box Fon WLAN 7240 4.65 - 6.06 /dev, /dev* 242/0, 252/0
FRITZ!Box Fon WLAN 7270 v1 4.44 - 4.99 /dev* 242/0
FRITZ!Box Fon WLAN 7270 v2 4.67 - 4.94 /dev* 242/0
FRITZ!Box Fon WLAN 7270 v3 4.76 - 4.99 /dev* 242/0
FRITZ!Box 7272 6.88 /dev 252/0
FRITZ!Box Fon WLAN 7320 6.55 /dev 251/0
FRITZ!Box Fon WLAN 7340 4.83 - 4.90 /dev* 242/0
FRITZ!Box 7362 SL 7.12 /dev 251/0
FRITZ!Box Fon WLAN 7390 4.81 - 6.04 /dev, /dev* 242/0, 254/0
FRITZ!Box 7412 6.87 /dev 251/0
FRITZ!Box 7430 7.29 /dev 251/0
FRITZ!Box 7510 7.30 /dev 243/0
FRITZ!Box 7520 7.29 - 7.50 /dev 245/0, 250/0
FRITZ!Box 7530 7.39 /dev 245/0
FRITZ!Box 7530 AX 7.31 - 7.51 /dev 248/0, 251/0
FRITZ!Box Fon WLAN 7570 vDSL 4.70 - 4.94 /dev* 242/0
FRITZ!Box 7581 7.17 /dev 252/0
FRITZ!Box 7590 7.57 - 7.90 /dev 248/0
FRITZ!Box 7590 AX 7.31 - 7.39 /dev 248/0, 249/0
FRITZ!Smart Gateway 7.57 - 7.58 /dev 241/0
FRITZ!WLAN Repeater N/G 4.65 - 4.88 /dev* 242/0
FRITZ!Repeater 1200 AX 7.30 - 7.39 /dev 241/0, 243/0
FRITZ!WLAN Repeater 1750E 7.29 /dev 253/0
FRITZ!Repeater 6000 7.29 - 7.39 /dev 244/0, 249/0
congstar DSL-Box 4.25 - 4.81 /dev* 242/0
congstar komplett Box 4.68 - 4.81 /dev* 242/0
Speedport W 501V 4.38 /dev* 242/0
Speedport W 503V 4.68 - 4.81 /dev* 242/0
Speedport W 503V MK 4.79 /dev* 242/0
Speedport W 701V 4.25 - 4.81 /dev* 242/0
Speedport W 721V 4.74 - 4.75 /dev* 242/0
Speedport W 722V 4.76 - 4.79 /dev* 242/0
Speedport W 900V 4.21 - 4.57 /dev* 242/0
Speedport W 920V 4.78 - 4.79 /dev* 242/0
Speedport W 101 Bridge 4.68 /dev* 242/0
Eumex 300 IP 4.44 /dev* 242/0
Alice IAD 5130 4.65 - 4.71 /dev* 242/0
Alice IAD WLAN 3331 4.90 /dev* 242/0
Alice IAD 7570 vDSL 4.86 - 5.09 /dev* 242/0
75 models use this device

SMW-Browser

Information is currently being retrieved from the backend.