Repository navigation
build(watchdog): build watchdog kmods as packages - #2021
Open
filippocarletti wants to merge 1 commit into
Open
filippocarletti wants to merge 1 commit into
filippocarletti wants to merge 1 commit into
Conversation
Build the x86 watchdog drivers as packages, not included in the image. Only the first registered device owns /dev/watchdog, and ib700wdt registers one on any hardware, so the admin installs the single driver that matches the hardware. Document how to pick the driver, enable, check and disable the watchdog, and what happens on upgrade. Assisted-by: Claude Code:Claude Opus 5.5
gsanchietti
approved these changes
Nov 18, 2026
gsanchietti
left a comment
Member
There was a problem hiding this comment.
Just a quick cleanup, but it looks good to me
Comment on lines
+1
to
+2
| # Hardware watchdog drivers, built as packages and not included in the image. | ||
| # See docs/design/watchdog.md to pick the one matching the hardware. |
Member
There was a problem hiding this comment.
Not needed, the info is inside the commit message and the dev doc
Suggested change
| # Hardware watchdog drivers, built as packages and not included in the image. | |
| # See docs/design/watchdog.md to pick the one matching the hardware. |
Tbaile
approved these changes
Nov 19, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I want to try a simpler alternative to #2019 for hardware watchdog support on x86. Instead of selecting the driver at boot, I only build the watchdog drivers as packages and let the admin install the one that matches the hardware.
The image does not change: no driver is included and the watchdog stays off by default. The drivers are published in the package repository and are loaded at boot by their own package once installed.
config/watchdog.confbuildskmod-itco-wdt,kmod-i6300esb-wdt,kmod-sp5100-tco,kmod-it87-wdt,kmod-w83627hf-wdt,kmod-f71808e-wdt,kmod-ib700-wdtandkmod-softdogas packages.docs/design/watchdog.mdexplains which driver to install for each hardware, and how to enable, check and disable the watchdog.Only one driver should be installed: the first device that registers owns
/dev/watchdog, andib700wdtregisters one on any hardware.I tested the image on a KVM VM and on a PC Engines APU: the packages are published and the instructions in the manual work.
How to test
i6300esbwatchdog device:apk add kmod-i6300esb-wdt, reboot,ubus call system watchdogreportsrunning.apk add kmod-sp5100-tco, reboot, same check.ubus call system watchdog '{"stop":true}': the machine resets after about 30 seconds.apk delthe package and reboot: no/dev/watchdog.See also