Skip to content

build(watchdog): build watchdog kmods as packages - #2021

Open
filippocarletti wants to merge 1 commit into
release-8.9.0from
feat/watchdog-kmods
Open

filippocarletti wants to merge 1 commit into
release-8.9.0from
feat/watchdog-kmods

Conversation

@filippocarletti

@filippocarletti filippocarletti commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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.conf builds kmod-itco-wdt, kmod-i6300esb-wdt, kmod-sp5100-tco, kmod-it87-wdt, kmod-w83627hf-wdt, kmod-f71808e-wdt, kmod-ib700-wdt and kmod-softdog as packages.
  • docs/design/watchdog.md explains 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, and ib700wdt registers 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

  • Check that the image size is unchanged and that no watchdog module is loaded at boot.
  • On a KVM VM with an i6300esb watchdog device: apk add kmod-i6300esb-wdt, reboot, ubus call system watchdog reports running.
  • On a PC Engines APU: apk add kmod-sp5100-tco, reboot, same check.
  • ubus call system watchdog '{"stop":true}': the machine resets after about 30 seconds.
  • apk del the package and reboot: no /dev/watchdog.

See also

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 gsanchietti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick cleanup, but it looks good to me

Comment thread config/watchdog.conf
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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Tbaile changed the base branch from main to release-8.9.0 November 19, 2026 14:51

@Tbaile Tbaile left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the ubus calls, when merged i'll try them on our lab machines

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants